Go to the source code of this file.
◆ ENQUEUE_VIEWER_METHOD
#define ENQUEUE_VIEWER_METHOD |
( |
| NAME, |
|
|
| METHOD ) |
Value:
MR::getViewerInstance() . METHOD (); \
} )
MRVIEWER_API void emplaceEvent(std::string name, ViewerEventCallback cb, bool skipable=false)
MRVIEWER_API Viewer & getViewerInstance()
helper macros to add an MR::Viewer
method call to the event queue
◆ ENQUEUE_VIEWER_METHOD_ARGS
#define ENQUEUE_VIEWER_METHOD_ARGS |
( |
| NAME, |
|
|
| METHOD, |
|
|
| ... ) |
Value:
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
} )
◆ ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE
#define ENQUEUE_VIEWER_METHOD_ARGS_SKIPABLE |
( |
| NAME, |
|
|
| METHOD, |
|
|
| ... ) |
Value:
MR::getViewerInstance() . METHOD ( __VA_ARGS__ ); \
}, true )
◆ MAKE_SLOT
◆ bindSlotCallback()
template<typename MemberFuncPtr , typename BaseClass >
auto bindSlotCallback |
( |
BaseClass * | base, |
|
|
MemberFuncPtr | func ) |