66#ifndef STAGE_CTRL_UI_DISPATCHER_H
67#define STAGE_CTRL_UI_DISPATCHER_H
88 static _Fmt messageTemplate{
"asynchronous UI response failed: %s (error flag was: %s)"};
90 WARN (
stage,
"%s", response.c_str());
120 catch (std::exception& problem)
122 notification (generateErrorResponse(problem.what()));
126 notification (generateErrorResponse());
A Queue for function invocations, allowing them to be dispatched on demand.
A threadsafe queue for bound void(void) functors.
CallQueue & feed(Operation &&op)
std::function< void(void)> Operation
Helper to dispatch code blocks into the UI event thread for execution.
Glib::Dispatcher dispatcher_
void event(Operation &&op)
move the given operation into our private dispatcher queue and then schedule dequeuing and invocation...
UiDispatcher(FUN notification)
lib::CallQueue::Operation Operation
Any copy and copy construction prohibited.
A front-end for using printf-style formatting.
lumiera_err lumiera_error(void)
Get and clear current error state.
A set of basic GTK includes for the UI.
string generateErrorResponse(lib::Literal problem="unexpected problem")
Lumiera GTK UI implementation root.
Mix-Ins to allow or prohibit various degrees of copying and cloning.