Castor3D 0.16.0
Multiplatform 3D engine
|
#include <EventHandler.hpp>
Public Member Functions | |
MouseEventHandler (castor::String const &name) | |
Public Member Functions inherited from castor3d::EventHandler | |
void | pushEvent (MouseEvent const &event) |
Adds a mouse event to the events queue. | |
void | connect (MouseEventType event, ClientMouseFunction function) |
Connects a function to a mouse event. | |
bool | catchesMouseEvents () const |
Tells if the control catches mouse events. | |
void | setCatchesMouseEvents (bool value) |
Sets if the control can catch mouse events. | |
void | pushEvent (KeyboardEvent const &event) |
Adds a keyboard event to the events queue. | |
void | connect (KeyboardEventType event, ClientKeyboardFunction function) |
Connects a function to a keyboard event. | |
bool | catchesTabKey () const |
Tells if the control catches 'tab' key. | |
bool | catchesReturnKey () const |
Tells if the control catches 'return' key. | |
EventHandler (castor::String const &name, bool catchMouseEvents) | |
Constructor. | |
virtual | ~EventHandler () noexcept |
Destructor. | |
void | processEvents () |
Processes all queued events. | |
bool | isEnabled () const |
void | enable () |
Sets if the control is enabled. | |
void | disable () |
Sets if the control is disabled. | |
void | pushEvent (HandlerEvent const &event) |
Adds a handler event to the events queue. | |
void | connect (HandlerEventType event, ClientHandlerFunction function) |
Connects a function to a handler event. | |
Public Member Functions inherited from castor::NamedBaseT< T > | |
NamedBaseT (T name) noexcept | |
Constructor. | |
T const & | getName () const noexcept |
Retrieves the name. | |
void | rename (T name) noexcept |
|
inlineexplicit |