DtkDevice
DTK library for device.
dtkinputdevices_types.h 文件参考
#include "dtkdevice_global.h"
#include <QObject>
#include <QString>

浏览源代码.

struct  Dtk::Device::DeviceInfo
 设备信息类 更多...
 
class  Dtk::Device::EnumWrapper
 枚举类型包装器 更多...
 

类型定义

using Dtk::Device::ErrorCode = EnumWrapper::ErrorCode
 

枚举

enum class  Dtk::Device::DeviceType {
  Mouse , TrackPoint , TouchPad , Tablet ,
  Keyboard , Generic
}
 设备类型 更多...
 
enum class  Dtk::Device::AccelerationProfile { Flat , Adaptive , Na }
 指针加速方式 更多...
 
enum class  Dtk::Device::Key { KeyUp , KeyDown }
 按键动作 更多...
 
enum class  Dtk::Device::KeyAction {
  LeftClick , MiddleClick , RightClick , PageUp ,
  PageDown
}
 按键动作映射 更多...
 
enum class  Dtk::Device::ScrollMethod { NoScroll , ScrollTwoFinger , ScrollEdge , ScrollOnButtonDown }
 滚动方式 更多...
 

函数

QDebug Dtk::Device::operator<< (QDebug debug, DeviceType type)
 
QDebug Dtk::Device::operator<< (QDebug debug, AccelerationProfile profile)
 

变量

const DeviceInfo Dtk::Device::DeviceInfoInitializer
 

详细描述

dtkinputdevices_types.h 中定义了 inputdevices组件需要用到的一些自定义数据结构

枚举类型说明

◆ AccelerationProfile

指针加速方式

dtkinputdevices_types.h

序号 含义
Flat 0 常量加速度
Adaptive 1 自适应加速度
Na 2 不支持指针加速

◆ DeviceType

enum class Dtk::Device::DeviceType
strong

设备类型

dtkinputdevices_types.h

序号 含义
Mouse 0 鼠标
TrackPoint 1 指针杆
TouchPad 2 触摸板
Tablet 3 数位板
Keyboard 4 键盘
Generic 5 其他设备

◆ Key

enum class Dtk::Device::Key
strong

按键动作

dtkinputdevices_types.h

序号 含义
KeyUp 0 按键释放
KeyDown 1 按键按下

◆ KeyAction

enum class Dtk::Device::KeyAction
strong

按键动作映射

dtkinputdevices_types.h

序号 含义
LeftClick 0 左键
MiddleClick 1 中键
RightClick 2 右键
PageUp 3 向上翻页
PageDown 4 向下翻页

◆ ScrollMethod

enum class Dtk::Device::ScrollMethod
strong

滚动方式

dtkinputdevices_types.h

序号 含义
NoScroll 0 无滚动
ScrollTwoFinger 1 双指滑动
ScrollEdge 2 边缘滚动
ScrollOnButtonDown 3 按下按钮时滚动