指针杆设备类(小红点)
更多...
#include <dinputdevicetrackpoint.h>
|
DExpected< void > | reset () override |
| 重置指针杆的所有设置 更多...
|
|
virtual DExpected< void > | reset () |
| 重置设备的设置 更多...
|
|
|
| DInputDeviceTrackPoint (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) |
| 空参构造函数和指定父对象的构造函数 更多...
|
|
| DInputDevicePointer (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDevicePointer (DInputDevicePointerPrivate &dd, const DeviceInfo &info, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDeviceGeneric (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDeviceGeneric (DInputDeviceGenericPrivate &dd, const DeviceInfo &info, bool enabled, QObject *parent) |
|
void | setId (quint32 id) |
| 设置设备的id 更多...
|
|
void | setName (const QString &name) |
| 设置设备名 更多...
|
|
void | setType (DeviceType type) |
| 设置设备类型 更多...
|
|
void | setEnabled (bool enabled) |
| 设置设备是否启用 更多...
|
|
void | setDeviceInfo (const DeviceInfo &info) |
| 设置设备信息 更多...
|
|
|
class | DInputDeviceManager |
|
指针杆设备类(小红点)
指针杆设备包括小红点和相应的按键.
◆ DInputDeviceTrackPoint()
DInputDeviceTrackPoint::DInputDeviceTrackPoint |
( |
const DeviceInfo & |
info = DeviceInfoInitializer , |
|
|
bool |
enabled = true , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
protected |
空参构造函数和指定父对象的构造函数
初始化设备信息的构造函数
- 参数
-
[in] | parent | 父对象, 用于在对象树中管理生命周期 |
[in] | info | 设备信息 |
[in] | enabled | 设备是否启用 |
◆ accelerationProfile()
◆ accelerationSpeed()
double Dtk::Device::DInputDeviceTrackPoint::accelerationSpeed |
( |
| ) |
const |
|
overridevirtual |
◆ leftHanded()
bool Dtk::Device::DInputDeviceTrackPoint::leftHanded |
( |
| ) |
const |
|
overridevirtual |
◆ middleButtonEnabled()
bool DInputDeviceTrackPoint::middleButtonEnabled |
( |
| ) |
const |
获取是否启用中键模拟
- 参见
- middleButtonEnabled
◆ middleButtonEnabledChanged
void DInputDeviceTrackPoint::middleButtonEnabledChanged |
( |
bool |
enabled | ) |
|
|
signal |
是否启用中键模拟改变信号
- 参数
-
- 参见
- middleButtonEnabled
◆ middleButtonTimeout()
qint32 DInputDeviceTrackPoint::middleButtonTimeout |
( |
| ) |
const |
获取中键模拟超时时间
- 参见
- middleButtonTimeout
◆ middleButtonTimeoutChanged
void DInputDeviceTrackPoint::middleButtonTimeoutChanged |
( |
qint32 |
timeout | ) |
|
|
signal |
中键模拟超时时间改变信号
- 参数
-
- 参见
- middleButtonTimeout
◆ reset
DExpected< void > DInputDeviceTrackPoint::reset |
( |
| ) |
|
|
overrideslot |
重置指针杆的所有设置
- 返回
- 空DExpected对象, 无效表示操作失败
该函数会影响所有的指针杆设备.
◆ scrollMethod()
ScrollMethod Dtk::Device::DInputDeviceTrackPoint::scrollMethod |
( |
| ) |
const |
|
overridevirtual |
◆ setAccelerationProfile()
void Dtk::Device::DInputDeviceTrackPoint::setAccelerationProfile |
( |
AccelerationProfile |
accelerationProfile | ) |
|
|
overridevirtual |
◆ setAccelerationSpeed()
void Dtk::Device::DInputDeviceTrackPoint::setAccelerationSpeed |
( |
double |
accelerationSpeed | ) |
|
|
overridevirtual |
◆ setLeftHanded()
void Dtk::Device::DInputDeviceTrackPoint::setLeftHanded |
( |
bool |
leftHanded | ) |
|
|
overridevirtual |
◆ setMiddleButtonEnabled()
void DInputDeviceTrackPoint::setMiddleButtonEnabled |
( |
bool |
enabled | ) |
|
设置是否启用中键模拟
- 参数
-
- 参见
- middleButtonEnabled
◆ setMiddleButtonTimeout()
void DInputDeviceTrackPoint::setMiddleButtonTimeout |
( |
qint32 |
timeout | ) |
|
设置中键模拟超时时间
- 参数
-
- 参见
- middleButtonTimeout
◆ setScrollMethod()
void Dtk::Device::DInputDeviceTrackPoint::setScrollMethod |
( |
ScrollMethod |
scrollMethod | ) |
|
|
overridevirtual |
◆ setWheelEmulation()
void DInputDeviceTrackPoint::setWheelEmulation |
( |
bool |
emulation | ) |
|
设置是否开启滚轮模拟
- 参数
-
- 参见
- wheelEmulation
◆ setWheelEmulationButton()
void DInputDeviceTrackPoint::setWheelEmulationButton |
( |
qint32 |
button | ) |
|
设置滚轮模拟修饰键
- 参数
-
- 参见
- wheelEmulationButton
◆ setWheelEmulationTimeout()
void DInputDeviceTrackPoint::setWheelEmulationTimeout |
( |
qint32 |
timeout | ) |
|
设置滚轮模拟超时时间
- 参数
-
- 参见
- wheelEmulationTimeout
◆ setWheelHorizontalScroll()
void DInputDeviceTrackPoint::setWheelHorizontalScroll |
( |
bool |
horizontalScroll | ) |
|
设置是否开启水平滚动
- 参数
-
[in] | horizontalScroll | 是否水平滚动 |
- 参见
- wheelHorizontalScroll
◆ wheelEmulation()
bool DInputDeviceTrackPoint::wheelEmulation |
( |
| ) |
const |
获取是否开启滚轮模拟
- 参见
- wheelEmulation
◆ wheelEmulationButton()
qint32 DInputDeviceTrackPoint::wheelEmulationButton |
( |
| ) |
const |
获取滚轮模拟修饰键
- 参见
- wheelEmulationButton
◆ wheelEmulationButtonChanged
void DInputDeviceTrackPoint::wheelEmulationButtonChanged |
( |
qint32 |
button | ) |
|
|
signal |
滚轮模拟修饰键改变信号
- 参数
-
- 参见
- wheelEmulationButton
◆ wheelEmulationChanged
void DInputDeviceTrackPoint::wheelEmulationChanged |
( |
bool |
emulation | ) |
|
|
signal |
是否开启滚轮模拟改变信号
- 参数
-
- 参见
- wheelEmulation
◆ wheelEmulationTimeout()
qint32 DInputDeviceTrackPoint::wheelEmulationTimeout |
( |
| ) |
const |
获取滚轮模拟触发超时时间
- 参见
- wheelEmulationTimeout
◆ wheelEmulationTimeoutChanged
void DInputDeviceTrackPoint::wheelEmulationTimeoutChanged |
( |
qint32 |
timeout | ) |
|
|
signal |
滚轮模拟超时时间改变信号
- 参数
-
- 参见
- wheelEmulationTimeout
◆ wheelHorizontalScroll()
bool DInputDeviceTrackPoint::wheelHorizontalScroll |
( |
| ) |
const |
获取是否开启水平滚动
- 参见
- wheelHorizontalScroll
◆ wheelHorizontalScrollChanged
void DInputDeviceTrackPoint::wheelHorizontalScrollChanged |
( |
bool |
horizontalScroll | ) |
|
|
signal |
是否开启水平滚动改变信号
- 参数
-
[in] | horizontalScroll | 是否水平滚动 |
- 参见
- wheelHorizontalScroll
◆ middleButtonEnabled
Dtk::Device::DInputDeviceTrackPoint::middleButtonEnabled |
|
readwrite |
是否启用中键模拟
指针杆可以使用按键模拟鼠标中键.
◆ middleButtonTimeout
Dtk::Device::DInputDeviceTrackPoint::middleButtonTimeout |
|
readwrite |
中键模拟超时时间
保持按键按下超过该时间, 才会触发中键模拟事件.
◆ wheelEmulation
Dtk::Device::DInputDeviceTrackPoint::wheelEmulation |
|
readwrite |
是否启用滚轮模拟
指针杆可以通过按下按键超过某一时间并移动指针杆来模拟滚动事件.
◆ wheelEmulationButton
Dtk::Device::DInputDeviceTrackPoint::wheelEmulationButton |
|
readwrite |
滚动模拟修饰键
指针杆可以通过按下某一按键超过一定时间并移动指针杆来模拟滚动, 该属性定义哪一个按键作为触发该模拟机制的按键.
◆ wheelEmulationTimeout
Dtk::Device::DInputDeviceTrackPoint::wheelEmulationTimeout |
|
readwrite |
滚轮模拟触发时间
指针杆滚轮模拟机制触发之前的超时时间.
◆ wheelHorizontalScroll
Dtk::Device::DInputDeviceTrackPoint::wheelHorizontalScroll |
|
readwrite |
是否开启水平滚动
指针杆是否可以控制左右方向的滚动.
该类的文档由以下文件生成: