![]() |
SARibbon 2.5.2
SARibbon wiki
|
计算鼠标是否位于左、上、右、下、左上角、左下角、右上角、右下角。 更多...
Public 成员函数 | |
| void | reset () |
| 重置鼠标位置状态。 | |
| void | recalculate (const QPoint &globalMousePos, const QRect &frameRect) |
| 根据全局鼠标位置和窗口矩形重新计算鼠标位置状态。 | |
静态 Public 属性 | |
| static int | s_borderWidth = 5 |
| static int | s_titleHeight = 30 |
计算鼠标是否位于左、上、右、下、左上角、左下角、右上角、右下角。
该类用于计算鼠标相对于窗口边框的位置,以便确定是否可以进行缩放操作。
| void SAPrivateFramelessCursorPosCalculator::recalculate | ( | const QPoint & | gMousePos, |
| const QRect & | frameRect | ||
| ) |
根据全局鼠标位置和窗口矩形重新计算鼠标位置状态。
| globalMousePos | 全局鼠标位置。 |
| frameRect | 窗口的矩形区域。 |
| void SAPrivateFramelessCursorPosCalculator::reset | ( | ) |
重置鼠标位置状态。
将所有鼠标位置标志重置为false。