Looking for a synchronous GUI library without any event loops.

I'm writing a compiler that generates C code according to a GUI specification. The backend language is Lustre, which is a synchronous dataflow language, so the GUI library used should be completely synchronous.

This means the compiler will handle all the callback stuff, and no event loop should be in the library. To throw light on this idea, if I want to do something when the user click a button, I may write:

while (true) {
  bool clicked = get_clicked(&btn);

instead of writing

register_action(&btn, ACT_CLICK, do_something);


I'd like to write my own but I'm not good at computer graphics. It's also OK if I can disable the event loops in some kits.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.