Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/ctrl/ui-dispatcher.hpp"
Helper to dispatch code blocks into the UI event thread for execution.
Implementation of the actual dispatch is based on Glib::Dispatcher
Definition at line 102 of file ui-dispatcher.hpp.
Public Member Functions | |
template<class FUN > | |
UiDispatcher (FUN notification) | |
void | event (Operation &&op) |
move the given operation into our private dispatcher queue and then schedule dequeuing and invocation into the UI event thread. More... | |
Private Types | |
using | Operation = lib::CallQueue::Operation |
Private Attributes | |
Glib::Dispatcher | dispatcher_ |
lib::CallQueue | queue_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
|
inline |
move the given operation into our private dispatcher queue and then schedule dequeuing and invocation into the UI event thread.
op | a completely closed lambda or functor |
Definition at line 139 of file ui-dispatcher.hpp.