inputevent.pkg
来自「cegui界面库」· PKG 代码 · 共 119 行
PKG
119 行
/***********************************************************************
EventArgs
***********************************************************************/
class EventArgs
{
bool handled;
EventArgs();
};
/***********************************************************************
MouseCursorEventArgs
***********************************************************************/
class MouseCursorEventArgs : public EventArgs
{
MouseCursor* mouseCursor;
const Image* image;
MouseCursorEventArgs(MouseCursor* cursor);
};
/***********************************************************************
WindowEventArgs
***********************************************************************/
class WindowEventArgs : public EventArgs
{
Window* window;
WindowEventArgs(Window* wnd);
};
/***********************************************************************
ActivationEventArgs
***********************************************************************/
class ActivationEventArgs : public WindowEventArgs
{
Window* otherWindow;
ActivationEventArgs(Window* wnd);
};
/***********************************************************************
HeaderSequenceEventArgs
***********************************************************************/
class HeaderSequenceEventArgs : public WindowEventArgs
{
// remove 'd_' member variable prefix
unsigned int d_oldIdx @ oldIdx;
unsigned int d_newIdx @ newIdx;
HeaderSequenceEventArgs(Window* wnd, unsigned int old_index, unsigned int new_index);
};
/***********************************************************************
MouseButton
***********************************************************************/
enum MouseButton
{
LeftButton,
RightButton,
MiddleButton,
X1Button,
X2Button,
MouseButtonCount,
NoButton
};
/***********************************************************************
MouseEventArgs
***********************************************************************/
class MouseEventArgs : public WindowEventArgs
{
Vector2 position;
Vector2 moveDelta;
MouseButton button;
unsigned int sysKeys;
float wheelChange;
MouseEventArgs(Window* wnd);
};
/***********************************************************************
KeyEventArgs
***********************************************************************/
class KeyEventArgs : public WindowEventArgs
{
unsigned long codepoint;
Key::Scan scancode;
unsigned int sysKeys;
KeyEventArgs(Window* wnd);
};
/************************************************************************
DragDropEventArgs
*************************************************************************/
class DragDropEventArgs : public WindowEventArgs
{
DragContainer* dragDropItem;
DragDropEventArgs(Window* wnd);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?