Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::RenderWindow::EvtHandler Class Reference

#include <RenderWindow.hpp>

Inheritance diagram for castor3d::RenderWindow::EvtHandler:
Inheritance graph
[legend]
Collaboration diagram for castor3d::RenderWindow::EvtHandler:
Collaboration graph
[legend]

Public Member Functions

 EvtHandler (RenderWindow &window)
 
- Public Member Functions inherited from castor3d::MouseEventHandler
 MouseEventHandler ()
 
- Public Member Functions inherited from castor3d::EventHandler
 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
 

Additional Inherited Members

- Public Types inherited from castor3d::EventHandler
using ClientMouseFunction = std::function< void(MouseEvent const &) >
 
using ClientKeyboardFunction = std::function< void(KeyboardEvent const &) >
 
using ClientHandlerFunction = std::function< void(HandlerEvent const &) >
 
using OnClientMouseEvent = castor::SignalT< ClientMouseFunction >
 
using OnClientKeyboardEvent = castor::SignalT< ClientKeyboardFunction >
 
using OnClientHandlerEvent = castor::SignalT< ClientHandlerFunction >
 
using OnClientMouseEventConnection = OnClientMouseEvent::connection
 
using OnClientKeyboardEventConnection = OnClientKeyboardEvent::connection
 
using OnClientHandlerEventConnection = OnClientHandlerEvent::connection
 
- Protected Types inherited from castor3d::EventHandler
using EventHandlerFunction = std::function< void() >
 
using EventQueue = std::deque< std::pair< UserInputEventSPtr, EventHandlerFunction > >
 
- Protected Member Functions inherited from castor3d::EventHandler
void processMouseEvent (MouseEventSPtr event)
 
void processKeyboardEvent (KeyboardEventSPtr event)
 
void processHandlerEvent (HandlerEventSPtr event)
 
- Protected Attributes inherited from castor3d::EventHandler
std::array< OnClientMouseEvent, size_t(MouseEventType::eCount) > m_mouseSlots
 
std::array< std::vector< OnClientMouseEventConnection >, size_t(MouseEventType::eCount) > m_mouseSlotsConnections
 
std::array< OnClientKeyboardEvent, size_t(KeyboardEventType::eCount) > m_keyboardSlots
 
std::array< std::vector< OnClientKeyboardEventConnection >, size_t(KeyboardEventType::eCount) > m_keyboardSlotsConnections
 
std::array< OnClientHandlerEvent, size_t(HandlerEventType::eCount) > m_handlerSlots
 
std::array< std::vector< OnClientHandlerEventConnection >, size_t(HandlerEventType::eCount) > m_handlerSlotsConnections
 

Constructor & Destructor Documentation

◆ EvtHandler()

castor3d::RenderWindow::EvtHandler::EvtHandler ( RenderWindow window)
inlineexplicit

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