📄 inputevent.pkg
字号:
/***********************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -