Visual Computing Library
|
Special EventDrawer class for the case where the drawer can request to block the event propagation. More...
#include <vclib/render/drawers/blocker_event_drawer.h>
Public Member Functions | |
BlockerEventDrawer (uint, uint) | |
virtual bool | onKeyPress (Key::Enum key, const KeyModifiers &modifiers) |
virtual bool | onKeyRelease (Key::Enum key, const KeyModifiers &modifiers) |
virtual bool | onMouseMove (double x, double y, const KeyModifiers &modifiers) |
virtual bool | onMousePress (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual bool | onMouseRelease (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual bool | onMouseDoubleClick (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) |
virtual bool | 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 = true |
Additional Inherited Members | |
![]() | |
using | DRT = DerivedRenderApp |
![]() | |
auto * | derived () |
const auto * | derived () const |
Special EventDrawer class for the case where the drawer can request to block the event propagation.
A drawer that inherits from this class can request to block the event propagation, and (if requested) the event will not be propagated to the other drawer arguments of the RenderApp class.
All the event functions of this class return a boolean value. If the function returns true, the DerivedRenderApp will block event propagation to other drawers; otherwise, the event is propagated to the other drawers.
DerivedRenderApp | The type of the derived RenderApp class. |