#include <CallBackHandler.h>
|
using | LButtonDownCallBack = std::function<void(Window* wnd, int x, int y)> |
using | LButtonUpCallBack = std::function<void(Window* wnd, int x, int y)> |
using | RButtonDownCallBack = std::function<void(Window* wnd, int x, int y)> |
using | RButtonUpCallBack = std::function<void(Window* wnd, int x, int y)> |
using | MouseMoveCallBack = std::function<void(Window* wnd, int x, int y)> |
using | MouseWheelCallBack = std::function<void(Window* wnd, int delta)> |
using | KeyDownCallBack = std::function<void(Window* wnd, int key)> |
using | KeyUpCallBack = std::function<void(Window* wnd, int key)> |
using | CallbackId = size_t |
|
void | onResize (Window *wnd, int width, int height) override |
void | onMouseMove (Window *wnd, int x, int y) override |
void | onMouseWheel (Window *wnd, int delta) override |
void | onKeyDown (Window *wnd, int key) override |
void | onKeyUp (Window *wnd, int key) override |
void | onLButtonDown (Window *wnd, int x, int y) override |
void | onLButtonUp (Window *wnd, int x, int y) override |
void | onRButtonDown (Window *wnd, int x, int y) override |
void | onRButtonUp (Window *wnd, int x, int y) override |
CallbackId | addResizeCallback (const ResizeCallBack &cb) |
CallbackId | addLButtonDownCallback (const LButtonDownCallBack &cb) |
CallbackId | addLButtonUpCallback (const LButtonUpCallBack &cb) |
CallbackId | addRButtonDownCallback (const RButtonDownCallBack &cb) |
CallbackId | addRButtonUpCallback (const RButtonUpCallBack &cb) |
CallbackId | addMouseMoveCallback (const MouseMoveCallBack &cb) |
CallbackId | addMouseWheelCallback (const MouseWheelCallBack &cb) |
CallbackId | addKeyDownCallback (const KeyDownCallBack &cb) |
CallbackId | addKeyUpCallback (const KeyUpCallBack &cb) |
void | removeResizeCallback (CallbackId id) |
void | removeLButtonDownCallback (CallbackId id) |
void | removeLButtonUpCallback (CallbackId id) |
void | removeRButtonDownCallback (CallbackId id) |
void | removeRButtonUpCallback (CallbackId id) |
void | removeMouseMoveCallback (CallbackId id) |
void | removeMouseWheelCallback (CallbackId id) |
void | removeKeyDownCallback (CallbackId id) |
void | removeKeyUpCallback (CallbackId id) |
void | clearResizeCallbacks () |
void | clearLButtonDownCallbacks () |
void | clearLButtonUpCallbacks () |
void | clearRButtonDownCallbacks () |
void | clearRButtonUpCallbacks () |
void | clearMouseMoveCallbacks () |
void | clearMouseWheelCallbacks () |
void | clearKeyDownCallbacks () |
void | clearKeyUpCallbacks () |
void | invokeResizeCallbacks (Window *wnd, int width, int height) |
void | addRef () |
void | release () |
size_t | count () |
| operator bool () const |
◆ CallbackId
◆ KeyDownCallBack
◆ KeyUpCallBack
◆ LButtonDownCallBack
◆ LButtonUpCallBack
◆ MouseMoveCallBack
◆ MouseWheelCallBack
◆ RButtonDownCallBack
◆ RButtonUpCallBack
◆ addKeyDownCallback()
◆ addKeyUpCallback()
◆ addLButtonDownCallback()
◆ addLButtonUpCallback()
◆ addMouseMoveCallback()
◆ addMouseWheelCallback()
◆ addRButtonDownCallback()
◆ addRButtonUpCallback()
◆ addRef()
void FCT::RefCount::addRef |
( |
| ) |
|
|
inlineinherited |
◆ addResizeCallback()
◆ clearKeyDownCallbacks()
void FCT::CallBackEventHandler::clearKeyDownCallbacks |
( |
| ) |
|
|
inline |
◆ clearKeyUpCallbacks()
void FCT::CallBackEventHandler::clearKeyUpCallbacks |
( |
| ) |
|
|
inline |
◆ clearLButtonDownCallbacks()
void FCT::CallBackEventHandler::clearLButtonDownCallbacks |
( |
| ) |
|
|
inline |
◆ clearLButtonUpCallbacks()
void FCT::CallBackEventHandler::clearLButtonUpCallbacks |
( |
| ) |
|
|
inline |
◆ clearMouseMoveCallbacks()
void FCT::CallBackEventHandler::clearMouseMoveCallbacks |
( |
| ) |
|
|
inline |
◆ clearMouseWheelCallbacks()
void FCT::CallBackEventHandler::clearMouseWheelCallbacks |
( |
| ) |
|
|
inline |
◆ clearRButtonDownCallbacks()
void FCT::CallBackEventHandler::clearRButtonDownCallbacks |
( |
| ) |
|
|
inline |
◆ clearRButtonUpCallbacks()
void FCT::CallBackEventHandler::clearRButtonUpCallbacks |
( |
| ) |
|
|
inline |
◆ clearResizeCallbacks()
void FCT::CallBackEventHandler::clearResizeCallbacks |
( |
| ) |
|
|
inline |
◆ count()
size_t FCT::RefCount::count |
( |
| ) |
|
|
inlineinherited |
◆ deleteThis()
virtual void FCT::RefCount::deleteThis |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ invokeResizeCallbacks()
void FCT::CallBackEventHandler::invokeResizeCallbacks |
( |
Window * | wnd, |
|
|
int | width, |
|
|
int | height ) |
|
inline |
◆ onKeyDown()
void FCT::CallBackEventHandler::onKeyDown |
( |
Window * | wnd, |
|
|
int | key ) |
|
inlineoverridevirtual |
◆ onKeyUp()
void FCT::CallBackEventHandler::onKeyUp |
( |
Window * | wnd, |
|
|
int | key ) |
|
inlineoverridevirtual |
◆ onLButtonDown()
void FCT::CallBackEventHandler::onLButtonDown |
( |
Window * | wnd, |
|
|
int | x, |
|
|
int | y ) |
|
inlineoverridevirtual |
◆ onLButtonUp()
void FCT::CallBackEventHandler::onLButtonUp |
( |
Window * | wnd, |
|
|
int | x, |
|
|
int | y ) |
|
inlineoverridevirtual |
◆ onMouseMove()
void FCT::CallBackEventHandler::onMouseMove |
( |
Window * | wnd, |
|
|
int | x, |
|
|
int | y ) |
|
inlineoverridevirtual |
◆ onMouseWheel()
void FCT::CallBackEventHandler::onMouseWheel |
( |
Window * | wnd, |
|
|
int | delta ) |
|
inlineoverridevirtual |
◆ onRButtonDown()
void FCT::CallBackEventHandler::onRButtonDown |
( |
Window * | wnd, |
|
|
int | x, |
|
|
int | y ) |
|
inlineoverridevirtual |
◆ onRButtonUp()
void FCT::CallBackEventHandler::onRButtonUp |
( |
Window * | wnd, |
|
|
int | x, |
|
|
int | y ) |
|
inlineoverridevirtual |
◆ onResize()
void FCT::CallBackEventHandler::onResize |
( |
Window * | wnd, |
|
|
int | width, |
|
|
int | height ) |
|
inlineoverridevirtual |
◆ operator bool()
FCT::RefCount::operator bool |
( |
| ) |
const |
|
inlineinherited |
◆ release()
void FCT::RefCount::release |
( |
| ) |
|
|
inlineinherited |
◆ removeKeyDownCallback()
void FCT::CallBackEventHandler::removeKeyDownCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeKeyUpCallback()
void FCT::CallBackEventHandler::removeKeyUpCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeLButtonDownCallback()
void FCT::CallBackEventHandler::removeLButtonDownCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeLButtonUpCallback()
void FCT::CallBackEventHandler::removeLButtonUpCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeMouseMoveCallback()
void FCT::CallBackEventHandler::removeMouseMoveCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeMouseWheelCallback()
void FCT::CallBackEventHandler::removeMouseWheelCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeRButtonDownCallback()
void FCT::CallBackEventHandler::removeRButtonDownCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeRButtonUpCallback()
void FCT::CallBackEventHandler::removeRButtonUpCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ removeResizeCallback()
void FCT::CallBackEventHandler::removeResizeCallback |
( |
CallbackId | id | ) |
|
|
inline |
◆ m_keyDownCallbacks
◆ m_keyUpCallbacks
◆ m_lButtonDownCallbacks
◆ m_lButtonUpCallbacks
◆ m_mouseMoveCallbacks
◆ m_mouseWheelCallbacks
◆ m_nextId
CallbackId FCT::CallBackEventHandler::m_nextId = 1 |
|
private |
◆ m_rButtonDownCallbacks
◆ m_rButtonUpCallbacks
◆ m_refCount
std::atomic<size_t> FCT::RefCount::m_refCount |
|
protectedinherited |
◆ m_resizeCallbacks
该类的文档由以下文件生成: