Visual Computing Library
|
The EventDrawer class is a base class for drawers that can handle events. More...
#include <vclib/render/drawers/event_drawer.h>
Public Member Functions | |
EventDrawer (uint, uint) | |
virtual void | onKeyPress (Key::Enum key, const KeyModifiers &modifiers) |
virtual void | onKeyRelease (Key::Enum key, const KeyModifiers &modifiers) |
virtual void | onMouseMove (double x, double y, const KeyModifiers &modifiers) |
virtual void | onMousePress (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual void | onMouseRelease (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual void | onMouseDoubleClick (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual void | onMouseScroll (double x, double y, const KeyModifiers &modifiers) |
![]() | |
PlainDrawer (uint, uint) | |
virtual void | onInit (uint viewId) |
virtual void | onResize (uint width, uint height) |
virtual void | onDraw (uint viewId) |
virtual void | onDrawContent (uint viewId) |
virtual void | onPostDraw () |
Static Public Attributes | |
static const bool | CAN_BLOCK_EVENT_PROPAGATION = false |
Additional Inherited Members | |
![]() | |
using | DRT = DerivedRenderApp |
![]() | |
auto * | derived () |
const auto * | derived () const |
The EventDrawer class is a base class for drawers that can handle events.
The EventDrawer class is a CRTP class that is templated on the derived RenderApp class. It provides the interface for handling events produced by the DerivedRenderApp class.
DerivedRenderApp | The type of the derived RenderApp class. |