|
DtkDevice
DTK library for device.
|
数位板类 更多...
#include <dinputdevicetablet.h>
Public 槽 | |
| DExpected< void > | reset () override |
| 重置数位板/数位笔的所有设置 更多... | |
Public 槽 继承自 Dtk::Device::DInputDeviceGeneric | |
| virtual DExpected< void > | reset () |
| 重置设备的设置 更多... | |
信号 | |
| void | cursorModeChanged (bool cursorMode) |
| 光标模式改变信号 更多... | |
信号 继承自 Dtk::Device::DInputDevicePointer | |
| void | leftHandedChanged (bool leftHanded) |
| 左手模式切换信号 更多... | |
| void | scrollMethodChanged (ScrollMethod method) |
| 滚动模式切换信号 更多... | |
| void | accelerationProfileChanged (AccelerationProfile profile) |
| 指针加速方式切换信号 更多... | |
| void | accelerationSpeedChanged (double speed) |
| 指针加速度修改信号 更多... | |
信号 继承自 Dtk::Device::DInputDeviceGeneric | |
| void | enabledChanged (bool enabled) |
| 设备启用状态改变信号 更多... | |
Public 成员函数 | |
| bool | cursorMode () const |
| 获取数位笔是否处于光标模式 更多... | |
| void | setCursorMode (bool cursorMode) |
| 设置数位笔是否为光标模式 更多... | |
| bool | leftHanded () const override |
| 获取是否是左手模式 更多... | |
| ScrollMethod | scrollMethod () const override |
| 获取当前滚动模式 更多... | |
| AccelerationProfile | accelerationProfile () const override |
| 获取当前的指针加速方式 更多... | |
| double | accelerationSpeed () const override |
| 获取指针加速度 更多... | |
| void | setLeftHanded (bool leftHanded) override |
| 设置是否是左手模式 更多... | |
| void | setScrollMethod (ScrollMethod scrollMethod) override |
| 设置滚动模式 更多... | |
| void | setAccelerationProfile (AccelerationProfile accelerationProfile) override |
| 设置指针加速方式 更多... | |
| void | setAccelerationSpeed (double accelerationSpeed) override |
| 设置指针加速度 更多... | |
| virtual bool | leftHanded () const =0 |
| 获取是否是左手模式 更多... | |
| virtual ScrollMethod | scrollMethod () const =0 |
| 获取当前滚动模式 更多... | |
| virtual AccelerationProfile | accelerationProfile () const =0 |
| 获取当前的指针加速方式 更多... | |
| virtual double | accelerationSpeed () const =0 |
| 获取指针加速度 更多... | |
| virtual void | setLeftHanded (bool leftHanded)=0 |
| 设置是否是左手模式 更多... | |
| virtual void | setScrollMethod (ScrollMethod scrollMethod)=0 |
| 设置滚动模式 更多... | |
| virtual void | setAccelerationProfile (AccelerationProfile accelerationProfile)=0 |
| 设置指针加速方式 更多... | |
| virtual void | setAccelerationSpeed (double accelerationSpeed)=0 |
| 设置指针加速度 更多... | |
Public 成员函数 继承自 Dtk::Device::DInputDeviceGeneric | |
| virtual quint32 | id () const |
| 获取设备id 更多... | |
| virtual QString | name () const |
| 获取设备名 更多... | |
| virtual DeviceType | type () const |
| 获取设备类型 更多... | |
| virtual bool | enabled () const |
| 获取设备是否启用 更多... | |
| ~DInputDeviceGeneric () override | |
| 析构函数 更多... | |
Protected 成员函数 | |
| DInputDeviceTablet (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) | |
| 空参构造函数和指定父对象的构造函数 更多... | |
Protected 成员函数 继承自 Dtk::Device::DInputDevicePointer | |
| DInputDevicePointer (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) | |
| DInputDevicePointer (DInputDevicePointerPrivate &dd, const DeviceInfo &info, bool enabled=true, QObject *parent=nullptr) | |
Protected 成员函数 继承自 Dtk::Device::DInputDeviceGeneric | |
| 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) |
| 设置设备信息 更多... | |
属性 | |
| bool | cursorMode |
| 是否是光标模式 更多... | |
属性 继承自 Dtk::Device::DInputDevicePointer | |
| bool | leftHanded |
| 是否开启左手模式 更多... | |
| ScrollMethod | scrollMethod |
| 当前的滚动模式 更多... | |
| AccelerationProfile | accelerationProfile |
| 当前的加速方式 更多... | |
| double | accelerationSpeed |
| 当前加速度 更多... | |
属性 继承自 Dtk::Device::DInputDeviceGeneric | |
| quint32 | id |
| 设备id 更多... | |
| QString | name |
| 设备名 更多... | |
| DeviceType | type |
| 设备类型 更多... | |
| bool | enabled |
| 设备启用状态 更多... | |
友元 | |
| class | DInputDeviceManager |
额外继承的成员函数 | |
Public 类型 继承自 Dtk::Device::DInputDeviceGeneric | |
| using | Ptr = QSharedPointer< DInputDeviceGeneric > |
数位板类
该设备包括数位板和数位笔, 当数位笔功能特化之后可能会发生改变
|
explicitprotected |
空参构造函数和指定父对象的构造函数
初始化设备信息的构造函数
| [in] | parent | 父对象, 用于在对象树中管理生命周期 |
| [in] | info | 设备信息 |
| [in] | enabled | 设备是否启用 |
|
overridevirtual |
|
overridevirtual |
| bool DInputDeviceTablet::cursorMode | ( | ) | const |
获取数位笔是否处于光标模式
|
signal |
光标模式改变信号
|
overridevirtual |
|
overrideslot |
重置数位板/数位笔的所有设置
该函数会影响所有的数位板/数位笔.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| void DInputDeviceTablet::setCursorMode | ( | bool | cursorMode | ) |
设置数位笔是否为光标模式
|
overridevirtual |
|
overridevirtual |
|
readwrite |
是否是光标模式
默认情况下, 数位板非光标模式, 采用的是绝对坐标, 当cursorMode为true的时候, 也就是采用光标模式的时候, 会采用相对坐标, 此时数位笔的行为和手指在触摸板上的行为类似.