|
|
castor::Position const & | getMousePosition () const |
|
EventHandlerSPtr | getActiveControl () const |
|
EventHandlerSPtr | getFocusedControl () const |
|
FrameListener & | getFrameListener () const |
|
|
C3D_API void | registerMouseMoveAction (castor::String const &handler, OnMouseMoveActionFunction function) |
|
C3D_API void | registerClickAction (castor::String const &handler, OnClickActionFunction function) |
|
C3D_API void | registerSelectAction (castor::String const &handler, OnSelectActionFunction function) |
|
C3D_API void | registerTextAction (castor::String const &handler, OnTextActionFunction function) |
|
C3D_API void | unregisterMouseMoveAction (castor::String const &handler) |
|
C3D_API void | unregisterClickAction (castor::String const &handler) |
|
C3D_API void | unregisterSelectAction (castor::String const &handler) |
|
C3D_API void | unregisterTextAction (castor::String const &handler) |
|
C3D_API void | onMouseMoveAction (castor::String const &handler) |
|
C3D_API void | onClickAction (castor::String const &handler) |
|
C3D_API void | onSelectAction (castor::String const &handler, int index) |
|
C3D_API void | onTextAction (castor::String const &handler, castor::String const &text) |
|
|
C3D_API bool | fireMouseMove (castor::Position const &position) |
|
C3D_API bool | fireMouseButtonPushed (MouseButton button) |
|
C3D_API bool | fireMouseButtonReleased (MouseButton button) |
|
C3D_API bool | fireMouseWheel (castor::Position const &offsets) |
|
|
C3D_API bool | fireKeydown (KeyboardKey key, bool ctrl, bool alt, bool shift) |
|
C3D_API bool | fireKeyUp (KeyboardKey key, bool ctrl, bool alt, bool shift) |
|
C3D_API bool | fireChar (KeyboardKey key, castor::String const &c) |
|
|
virtual C3D_API bool | fireMaterialEvent (castor::String const &overlay, castor::String const &material) |
|
virtual C3D_API bool | fireTextEvent (castor::String const &overlay, castor::String const &caption) |
|
◆ OnClickActionFunction
◆ OnMouseMoveActionFunction
◆ OnSelectActionFunction
◆ OnTextActionFunction
◆ UserInputListener()
C3D_API castor3d::UserInputListener::UserInputListener |
( |
Engine & |
engine, |
|
|
castor::String const & |
name |
|
) |
| |
◆ ~UserInputListener()
virtual C3D_API castor3d::UserInputListener::~UserInputListener |
( |
| ) |
|
|
virtual |
◆ cleanup()
C3D_API void castor3d::UserInputListener::cleanup |
( |
| ) |
|
◆ doAddHandler()
void castor3d::UserInputListener::doAddHandler |
( |
EventHandlerSPtr |
handler | ) |
|
|
inlineprotected |
◆ doGetHandlers()
std::vector< EventHandlerSPtr > castor3d::UserInputListener::doGetHandlers |
( |
| ) |
const |
|
inlineprotected |
◆ doHasHandlers()
bool castor3d::UserInputListener::doHasHandlers |
( |
| ) |
const |
|
inlineprotected |
◆ doRemoveHandler()
void castor3d::UserInputListener::doRemoveHandler |
( |
EventHandlerSPtr |
handler | ) |
|
|
inlineprotected |
◆ fireChar()
C3D_API bool castor3d::UserInputListener::fireChar |
( |
KeyboardKey |
key, |
|
|
castor::String const & |
c |
|
) |
| |
◆ fireKeydown()
C3D_API bool castor3d::UserInputListener::fireKeydown |
( |
KeyboardKey |
key, |
|
|
bool |
ctrl, |
|
|
bool |
alt, |
|
|
bool |
shift |
|
) |
| |
◆ fireKeyUp()
C3D_API bool castor3d::UserInputListener::fireKeyUp |
( |
KeyboardKey |
key, |
|
|
bool |
ctrl, |
|
|
bool |
alt, |
|
|
bool |
shift |
|
) |
| |
◆ fireMaterialEvent()
virtual C3D_API bool castor3d::UserInputListener::fireMaterialEvent |
( |
castor::String const & |
overlay, |
|
|
castor::String const & |
material |
|
) |
| |
|
virtual |
◆ fireMouseButtonPushed()
◆ fireMouseButtonReleased()
◆ fireMouseMove()
C3D_API bool castor3d::UserInputListener::fireMouseMove |
( |
castor::Position const & |
position | ) |
|
◆ fireMouseWheel()
C3D_API bool castor3d::UserInputListener::fireMouseWheel |
( |
castor::Position const & |
offsets | ) |
|
◆ fireTextEvent()
virtual C3D_API bool castor3d::UserInputListener::fireTextEvent |
( |
castor::String const & |
overlay, |
|
|
castor::String const & |
caption |
|
) |
| |
|
virtual |
◆ getActiveControl()
EventHandlerSPtr castor3d::UserInputListener::getActiveControl |
( |
| ) |
const |
|
inline |
◆ getFocusedControl()
EventHandlerSPtr castor3d::UserInputListener::getFocusedControl |
( |
| ) |
const |
|
inline |
◆ getFrameListener()
FrameListener& castor3d::UserInputListener::getFrameListener |
( |
| ) |
const |
|
inline |
◆ getMousePosition()
castor::Position const& castor3d::UserInputListener::getMousePosition |
( |
| ) |
const |
|
inline |
◆ initialise()
C3D_API bool castor3d::UserInputListener::initialise |
( |
| ) |
|
◆ onClickAction()
C3D_API void castor3d::UserInputListener::onClickAction |
( |
castor::String const & |
handler | ) |
|
◆ onMouseMoveAction()
C3D_API void castor3d::UserInputListener::onMouseMoveAction |
( |
castor::String const & |
handler | ) |
|
◆ onSelectAction()
C3D_API void castor3d::UserInputListener::onSelectAction |
( |
castor::String const & |
handler, |
|
|
int |
index |
|
) |
| |
◆ onTextAction()
C3D_API void castor3d::UserInputListener::onTextAction |
( |
castor::String const & |
handler, |
|
|
castor::String const & |
text |
|
) |
| |
◆ processEvents()
C3D_API void castor3d::UserInputListener::processEvents |
( |
| ) |
|
◆ registerClickAction()
◆ registerMouseMoveAction()
◆ registerSelectAction()
◆ registerTextAction()
◆ unregisterClickAction()
C3D_API void castor3d::UserInputListener::unregisterClickAction |
( |
castor::String const & |
handler | ) |
|
◆ unregisterMouseMoveAction()
C3D_API void castor3d::UserInputListener::unregisterMouseMoveAction |
( |
castor::String const & |
handler | ) |
|
◆ unregisterSelectAction()
C3D_API void castor3d::UserInputListener::unregisterSelectAction |
( |
castor::String const & |
handler | ) |
|
◆ unregisterTextAction()
C3D_API void castor3d::UserInputListener::unregisterTextAction |
( |
castor::String const & |
handler | ) |
|
◆ m_frameListener
FrameListenerSPtr castor3d::UserInputListener::m_frameListener |
|
protected |
◆ m_handlers
std::vector< EventHandlerSPtr > castor3d::UserInputListener::m_handlers |
|
protected |
◆ m_mutexHandlers
std::mutex castor3d::UserInputListener::m_mutexHandlers |
|
mutableprotected |
La documentation de cette classe a été générée à partir du fichier suivant :