TpDisplayManage 类
V0.2.1TpExtUtils
2025-11-14
基础信息
| 头文件: | include <TpDisplayManage.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | |
| 派生类: |
Public 成员函数
| TpDisplayManage() | ||
|---|---|---|
| ~TpDisplayManage() | ||
| const TpList< tpShared< TpDisplay > > & TpDisplayManage::getDeviceList | getDeviceList() const | 获取显示器列表 |
| tpShared< TpDisplay > TpDisplayManage::getDevice | getDevice(const TpString &name) | 使用显示器名称来获取显示器 |
| tpShared< TpDisplay > TpDisplayManage::getDevice | getDevice(tpInt32 num) | 使用编号来获取单个物理屏幕(显示器) |
| getPhysicsHeight() | 获取逻辑屏幕高度(注意:逻辑屏幕不是物理屏幕) | |
| getPhysicsWidth() | 获取逻辑屏幕宽度(注意:逻辑屏幕不是物理屏幕) | |
| getResolutionHeight() | 获取逻辑屏幕分辨率高度(注意:逻辑屏幕不是物理屏幕) | |
| getResolutionWidth() | 获取逻辑屏幕分辨率宽度(注意:逻辑屏幕不是物理屏幕) | |
| getPiXWMPhysicsHeight() | 获取PiXWM物理高度 | |
| getPiXWMPhysicsWidth() | 获获取PiXWM物理宽度 | |
| correctMousePosition() | 重置鼠标指针位置,用于在修改分辨率使用,但是目前此函数存在问题 |
成员函数说明
TpDisplayManage::TpDisplayManage()
暂无注释...
TpDisplayManage::~TpDisplayManage()
暂无注释...
const TpList< tpShared< TpDisplay > > & TpDisplayManage::getDeviceList() const
获取显示器列表...
获取显示器列表
返回值:
tpShared< TpDisplay > TpDisplayManage::getDevice(const TpString &name)
使用显示器名称来获取显示器...
使用显示器名称来获取显示器
参数:name: 显示器名称
返回值:
tpShared< TpDisplay > TpDisplayManage::getDevice(tpInt32 num)
使用编号来获取单个物理屏幕(显示器)...
使用编号来获取单个物理屏幕(显示器)
参数:num: 显示器编号
返回值:
tpInt32 TpDisplayManage::getPhysicsHeight()
获取逻辑屏幕高度(注意:逻辑屏幕不是物理屏幕)...
获取逻辑屏幕高度(注意:逻辑屏幕不是物理屏幕)
返回值:
tpInt32 TpDisplayManage::getPhysicsWidth()
获取逻辑屏幕宽度(注意:逻辑屏幕不是物理屏幕)...
获取逻辑屏幕宽度(注意:逻辑屏幕不是物理屏幕)
返回值:
tpInt32 TpDisplayManage::getResolutionHeight()
获取逻辑屏幕分辨率高度(注意:逻辑屏幕不是物理屏幕)...
获取逻辑屏幕分辨率高度(注意:逻辑屏幕不是物理屏幕)
返回值:
tpInt32 TpDisplayManage::getResolutionWidth()
获取逻辑屏幕分辨率宽度(注意:逻辑屏幕不是物理屏幕)...
获取逻辑屏幕分辨率宽度(注意:逻辑屏幕不是物理屏幕)
返回值:
tpInt32 TpDisplayManage::getPiXWMPhysicsHeight()
获取PiXWM物理高度...
获取PiXWM物理高度
返回值:
tpInt32 TpDisplayManage::getPiXWMPhysicsWidth()
获获取PiXWM物理宽度...
获获取PiXWM物理宽度
返回值:
tpInt32 TpDisplayManage::correctMousePosition()
重置鼠标指针位置,用于在修改分辨率使用,但是目前此函数存在问...
重置鼠标指针位置,用于在修改分辨率使用,但是目前此函数存在问题
返回值:
