|
DtkGui
DTK Gui module
|
一个在指定区域内监视鼠标键盘动作的类. 更多...


Public 类型 | |
| enum | RegisterdFlag { Motion = 1 << 0 , Button = 1 << 1 , Key = 1 << 2 } |
| enum | WatchedFlags { Button_Left = 1 , Button_Middle , Button_Right , Wheel_Up , Wheel_Down } |
| enum | CoordinateType { ScaleRatio , Original } |
Public 成员函数 | |
| DRegionMonitor (QObject *parent=nullptr) | |
| bool | registered () const |
| QRegion | watchedRegion () const |
| RegisterdFlags | registerFlags () const |
| CoordinateType | coordinateType () const |
属性 | |
| CoordinateType | coordinateType |
| RegisterdFlags | registerdFlags |
| 监听模式属性. | |
一个在指定区域内监视鼠标键盘动作的类.
\inmodule dtkgui
|
readwrite |
监听模式属性.
监听模式,需要注意 DRegionMonitor::Motion 监听鼠标移动会影响性能,默认包含,如果 需要可通过此函数去掉 DRegionMonitor::Motion .
registerdFlagChanged 信号会在监听标志 registerdFlags 被改变的时候被触发.
flags 监听模式.