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

The EventDrawer class is a base class for drawers that can handle events. More...

#include <vclib/render/drawers/event_drawer.h>

Inheritance diagram for vcl::EventDrawer< DerivedRenderApp >:

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)
 
- 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 = false
 

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::EventDrawer< DerivedRenderApp >

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.

Template Parameters
DerivedRenderAppThe type of the derived RenderApp class.

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