3#include "MRViewerFwd.h"
4#include "MRMesh/MRMeshFwd.h"
21 MRVIEWER_API
void emplace( std::string name, ViewerEventCallback cb,
bool skipable =
false );
25 MRVIEWER_API
void popByName(
const std::string& name );
26 MRVIEWER_API
bool empty()
const;
32 ViewerEventCallback
cb;
35 mutable std::recursive_mutex mutex_;
36 std::queue<NamedEvent> queue_;
37 bool lastSkipable_{
false};
queue to ignore multiple mouse moves in one frame
Definition MRViewerEventQueue.h:17
MRVIEWER_API bool empty() const
MRVIEWER_API void emplace(std::string name, ViewerEventCallback cb, bool skipable=false)
ViewerEventCallback cb
Definition MRViewerEventQueue.h:32
MRVIEWER_API void execute()
execute all events in queue
MRVIEWER_API void popByName(const std::string &name)
pop all events while they have this name
std::string name
Definition MRViewerEventQueue.h:31
only for bindings generation
Definition MRCameraOrientationPlugin.h:8