鼠标设备类
更多...
#include <dinputdevicemouse.h>
|
| | DInputDeviceMouse (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 |
| |
◆ DInputDeviceMouse()
| DInputDeviceMouse::DInputDeviceMouse |
( |
const DeviceInfo & |
info = DeviceInfoInitializer, |
|
|
bool |
enabled = true, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicitprotected |
空参构造函数和指定父对象的构造函数
设备信息初始化构造函数
- 参数
-
| [in] | parent | 父对象, 用于在对象树中管理生命周期 |
该函数仅开放给子类和DInputDeviceManager使用
- 参数
-
| [in] | info | 设备信息 |
| [in] | enabled | 设备是否开启 |
该函数仅开放给子类和DInputDeviceManager使用
◆ accelerationProfile()
◆ accelerationSpeed()
| double Dtk::Device::DInputDeviceMouse::accelerationSpeed |
( |
| ) |
const |
|
overridevirtual |
◆ leftHanded()
| bool Dtk::Device::DInputDeviceMouse::leftHanded |
( |
| ) |
const |
|
overridevirtual |
◆ middleButtonEmulation()
| bool DInputDeviceMouse::middleButtonEmulation |
( |
| ) |
const |
◆ middleButtonEmulationChanged
| void DInputDeviceMouse::middleButtonEmulationChanged |
( |
bool |
emulation | ) |
|
|
signal |
◆ naturalScroll()
| bool DInputDeviceMouse::naturalScroll |
( |
| ) |
const |
◆ naturalScrollChanged
| void DInputDeviceMouse::naturalScrollChanged |
( |
bool |
naturalScroll | ) |
|
|
signal |
◆ reset
| DExpected< void > DInputDeviceMouse::reset |
( |
| ) |
|
|
overrideslot |
重置所有设置
该函数会重置鼠标相关的所有设置, 目前版本会重置所有鼠标设备的设置.
◆ scrollMethod()
| ScrollMethod Dtk::Device::DInputDeviceMouse::scrollMethod |
( |
| ) |
const |
|
overridevirtual |
◆ setAccelerationProfile()
| void Dtk::Device::DInputDeviceMouse::setAccelerationProfile |
( |
AccelerationProfile |
accelerationProfile | ) |
|
|
overridevirtual |
◆ setAccelerationSpeed()
| void Dtk::Device::DInputDeviceMouse::setAccelerationSpeed |
( |
double |
accelerationSpeed | ) |
|
|
overridevirtual |
◆ setLeftHanded()
| void Dtk::Device::DInputDeviceMouse::setLeftHanded |
( |
bool |
leftHanded | ) |
|
|
overridevirtual |
◆ setMiddleButtonEmulation()
| void DInputDeviceMouse::setMiddleButtonEmulation |
( |
bool |
middleButtonEmulation | ) |
|
◆ setNaturalScroll()
| void DInputDeviceMouse::setNaturalScroll |
( |
bool |
naturalScroll | ) |
|
◆ setScrollMethod()
| void Dtk::Device::DInputDeviceMouse::setScrollMethod |
( |
ScrollMethod |
scrollMethod | ) |
|
|
overridevirtual |
◆ middleButtonEmulation
| Dtk::Device::DInputDeviceMouse::middleButtonEmulation |
|
readwrite |
◆ naturalScroll
| Dtk::Device::DInputDeviceMouse::naturalScroll |
|
readwrite |
是否自然滚动
自然滚动指的是滚轮向上滚动, 屏幕向下滑动, 反之.
该类的文档由以下文件生成: