鼠标事件基类 更多...
#include <Event.h>
类 GFt::MouseEvent 继承关系图:Public 成员函数 | |
| const iPoint & | absolutePosition () const |
| 获取鼠标在屏幕上的绝对位置 | |
| const iPoint & | position () const |
| 获取鼠标位置 | |
Public 成员函数 继承自 GFt::Event | |
| void | accept () |
| 接受事件 | |
| bool | isAccepted () const |
| 事件是否已被接受 | |
| bool | isPropagationStopped () const |
| 事件是否已被终止传播 | |
| void | stopPropagation () |
| 终止事件传播 | |
鼠标事件基类
| const iPoint & GFt::MouseEvent::absolutePosition | ( | ) | const |
获取鼠标在屏幕上的绝对位置
鼠标位置以屏幕坐标为坐标系,屏幕左上角为坐标原点
Application::getAbsoluteMousePosition()函数或 Sys::getCursorPosition()函数获取鼠标的绝对位置, 它们会获取鼠标此刻在屏幕上的坐标,即使它不在窗口内 | const iPoint & GFt::MouseEvent::position | ( | ) | const |
获取鼠标位置
鼠标位置以屏幕坐标为坐标系,窗口左上角为坐标原点