|
Visual Computing Library
devel
|
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 | onMouseDoubleClick (MouseButton::Enum button, double x, double y, 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 | onMouseScroll (double x, double y, const KeyModifiers &modifiers) |
Public Member Functions inherited from vcl::PlainDrawer< DerivedRenderApp > | |
| virtual void | onDraw (uint viewId) |
| virtual void | onDrawContent (uint viewId) |
| virtual void | onDrawId (uint viewId) |
| virtual void | onInit (uint viewId) |
| virtual void | onPostDraw () |
| virtual void | onResize (uint width, uint height) |
| PlainDrawer (uint, uint) | |
Static Public Attributes | |
| static const bool | CAN_BLOCK_EVENT_PROPAGATION = false |
Additional Inherited Members | |
Protected Types inherited from vcl::PlainDrawer< DerivedRenderApp > | |
| using | DRA = DerivedRenderApp |
Protected Member Functions inherited from vcl::PlainDrawer< 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. |