688 B
688 B
IDisplayEnumerator::GetDPIForDisplay
命名空间: XCEngine::Platform
类型: method
头文件: XCEngine/Platform/IDisplayEnumerator.h
签名
virtual float GetDPIForDisplay(Core::uint32_t index) const = 0;
作用
返回指定显示器的 DPI。
当前契约
index是显示器索引,通常对应 GetDisplayInfo 的同一块屏幕。- 返回值用于把平台像素密度换算成 UI 或渲染缩放。
- 索引无效时的处理方式由具体平台实现决定。