![]() |
ImFusion SDK 4.3
|
Free helper functions to work with InputEvents. More...
Free helper functions to work with InputEvents.
Functions | |
| MouseCursorShape | convertFromQtCursorShape (int qtCursorShape) |
| Converts a Qt::CursorShape to an ImFusion::MouseCursorShape. | |
| int | convertToQtCursorShape (MouseCursorShape shape) |
| Converts an ImFusion::MouseCursorShape to a Qt::CursorShape. | |
| std::unique_ptr< InputEvent > | convertFromQEvent (const QEvent *source, const DisplayWidget &display, bool flipY) |
| Converts a QEvent to a corresponding ImFusion::InputEvent where applicable. | |
| std::unique_ptr< InputEvent > | convertFromQEvent (const QEvent *source, const QtDisplayWrapperBase &display, bool flipY) |
| std::unique_ptr< QEvent > | convertToQEvent (const InputEvent &source) |
| Converts an InputEvent to a corresponding QEvent. | |
| EventResult | forwardAsQEventTo (const InputEvent &event, std::function< bool(QEvent *)> qEventHandler) |
| Transforms event into a corresponding QEvent and forwards it to qEventHandler. | |
| bool | handleWithQt (const EventResult &result, const void *handlerInstance) |
| std::unique_ptr< QMenu > | createQMenu (const Menu &menu) |
| Creates a new QMenu with the same structure as menu. | |