Visual Computing Library
Loading...
Searching...
No Matches
vcl::BlockerEventDrawer< DerivedRenderApp > Class Template Reference

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>

Inheritance diagram for vcl::BlockerEventDrawer< DerivedRenderApp >:

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)
 
- Public Member Functions inherited from vcl::PlainDrawer< DerivedRenderApp >
 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

- Protected Types inherited from vcl::PlainDrawer< DerivedRenderApp >
using DRT = DerivedRenderApp
 
- Protected Member Functions inherited from vcl::PlainDrawer< DerivedRenderApp >
autoderived ()
 
const autoderived () const
 

Detailed Description

template<typename DerivedRenderApp>
class vcl::BlockerEventDrawer< DerivedRenderApp >

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.

Template Parameters
DerivedRenderAppThe type of the derived RenderApp class.

The documentation for this class was generated from the following file: