FGenericWindow::GetDPIScaleFactor

Windows
MacOS
Linux

References

Module

ApplicationCore

Header

/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericWindow.h

Include

#include "GenericPlatform/GenericWindow.h"

Source

/Engine/Source/Runtime/ApplicationCore/Private/GenericPlatform/GenericWindow.cpp

Syntax

virtual float GetDPIScaleFactor() const

Returns

ratio of pixels to SlateUnits in this window. E.g. DPIScale of 2.0 means there is a 2x2 pixel square for every 1x1 SlateUnit.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss