![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
Description of an event handler, class that can receive event. More...
#include <EventHandler.hpp>
Public Member Functions | |
CU_DeclareSmartPtr (Derived) | |
NonClientEventHandler (bool catchMouseEvents) | |
void | connectNC (MouseEventType event, NonClientMouseFunction function) |
void | connectNC (KeyboardEventType event, NonClientKeyboardFunction function) |
void | connectNC (HandlerEventType event, NonClientHandlerFunction function) |
![]() | |
EventHandler (bool catchMouseEvents) | |
virtual | ~EventHandler () |
void | processEvents () |
void | pushEvent (MouseEvent const &event) |
void | connect (MouseEventType event, ClientMouseFunction function) |
void | pushEvent (KeyboardEvent const &event) |
void | connect (KeyboardEventType event, ClientKeyboardFunction function) |
bool | catchesMouseEvents () const |
void | setCatchesMouseEvents (bool value) |
void | pushEvent (HandlerEvent const &event) |
void | connect (HandlerEventType event, ClientHandlerFunction function) |
bool | catchesTabKey () const |
bool | catchesReturnKey () const |
Protected Types | |
using | EventHandlerFunction = EventHandler::EventHandlerFunction |
using | EventQueue = EventHandler::EventQueue |
![]() | |
using | EventHandlerFunction = std::function< void() > |
using | EventQueue = std::deque< std::pair< UserInputEventSPtr, EventHandlerFunction > > |
Additional Inherited Members | |
![]() | |
void | processMouseEvent (MouseEventSPtr event) |
void | processKeyboardEvent (KeyboardEventSPtr event) |
void | processHandlerEvent (HandlerEventSPtr event) |
Description of an event handler, class that can receive event.
using castor3d::NonClientEventHandler< Derived >::ClientHandlerFunction = EventHandler::ClientHandlerFunction |
using castor3d::NonClientEventHandler< Derived >::ClientKeyboardFunction = EventHandler::ClientKeyboardFunction |
using castor3d::NonClientEventHandler< Derived >::ClientMouseFunction = EventHandler::ClientMouseFunction |
|
protected |
|
protected |
using castor3d::NonClientEventHandler< Derived >::NonClientHandlerFunction = std::function< void( DerivedSPtr, HandlerEvent const & ) > |
Catcher definition for non client handler events.
using castor3d::NonClientEventHandler< Derived >::NonClientKeyboardFunction = std::function< void( DerivedSPtr, KeyboardEvent const & ) > |
Catcher definition for non client keyboard events.
using castor3d::NonClientEventHandler< Derived >::NonClientMouseFunction = std::function< void( DerivedSPtr, MouseEvent const & ) > |
Catcher definition for non client mouse events.
using castor3d::NonClientEventHandler< Derived >::OnNonClientHandlerEvent = castor::SignalT< NonClientHandlerFunction > |
Non client handler event signal definition.
using castor3d::NonClientEventHandler< Derived >::OnNonClientHandlerEventConnection = typename OnNonClientHandlerEvent::connection |
Non client handler event signal connection definition.
using castor3d::NonClientEventHandler< Derived >::OnNonClientKeyboardEvent = castor::SignalT< NonClientKeyboardFunction > |
Non client keyboard event signal definition.
using castor3d::NonClientEventHandler< Derived >::OnNonClientKeyboardEventConnection = typename OnNonClientKeyboardEvent::connection |
Non client keyboard event signal connection definition.
using castor3d::NonClientEventHandler< Derived >::OnNonClientMouseEvent = castor::SignalT< NonClientMouseFunction > |
Non client mouse event signal definition.
using castor3d::NonClientEventHandler< Derived >::OnNonClientMouseEventConnection = typename OnNonClientMouseEvent::connection |
Non client mouse event signal connection definition.
|
inlineexplicit |
|
inline |
References castor3d::EventHandler::connect(), castor3d::NonClientEventHandler< Derived >::m_ncHandlerSlots, and castor3d::NonClientEventHandler< Derived >::m_ncHandlerSlotsConnections.
|
inline |
References castor3d::EventHandler::connect(), castor3d::NonClientEventHandler< Derived >::m_ncKeyboardSlots, and castor3d::NonClientEventHandler< Derived >::m_ncKeyboardSlotsConnections.
|
inline |
References castor3d::EventHandler::connect(), castor3d::NonClientEventHandler< Derived >::m_ncMouseSlots, and castor3d::NonClientEventHandler< Derived >::m_ncMouseSlotsConnections.
castor3d::NonClientEventHandler< Derived >::CU_DeclareSmartPtr | ( | Derived | ) |
|
protected |
The non client handler events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().
|
protected |
The non client handler events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().
|
protected |
The non client keyboard events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().
|
protected |
The non client keyboard events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().
|
protected |
The non client mouse events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().
|
protected |
The non client mouse events slots.
Referenced by castor3d::NonClientEventHandler< Derived >::connectNC().