Navigation
Unreal Engine C++ API Reference > Runtime > ApplicationCore > GenericPlatform
Inheritance Hierarchy
- FDisplayMetrics
- FNullPlatformDisplayMetrics
References
Module | ApplicationCore |
Header | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericApplication.h |
Include | #include "GenericPlatform/GenericApplication.h" |
Syntax
struct FDisplayMetrics
Remarks
Contains metrics information for the desktop area
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FVector4 | ActionSafePaddingSize | The safe area for less important spill over on TVs (see TitleSafePaddingSize) |
![]() |
TArray< FMonitorInfo > | MonitorInfo | Info on connected physical monitors. |
![]() |
int32 | PrimaryDisplayHeight | Height of the primary display in pixels |
![]() |
int32 | PrimaryDisplayWidth | Width of the primary display in pixels |
![]() |
FPlatformRect | PrimaryDisplayWorkAreaRect | Area of the primary display not covered by task bars or other docked widgets |
![]() |
FVector4 | TitleSafePaddingSize | The safe area for all content on TVs (see http://en.wikipedia.org/wiki/Safe_area_%28television%29) - content will be inset Left - X Top - Y Right - Z Bottom - W |
![]() |
FPlatformRect | VirtualDisplayRect | Virtual display coordinate range (includes all active displays) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Apply the debug/default safe zones. | |
![]() ![]() |
float | The action safe zone ratio that will be returned by FDisplayMetrics::GetDisplayMetrics on platforms that don't have a defined safe zone. | |
![]() ![]() |
float | The title safe zone ratio that will be returned by FDisplayMetrics::GetDisplayMetrics on platforms that don't have a defined safe zone. | |
![]() ![]() |
FPlatformRect | GetMonitorWorkAreaFromPoint
(
const FVector2D& Point |
Gets the monitor work area from a position in the global display rect |
![]() ![]() |
void | PrintToLog () |
Logs out display metrics |
![]() ![]() |
void | RebuildDisplayMetrics
(
FDisplayMetrics& OutDisplayMetrics |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | GetDisplayMetrics
(
FDisplayMetrics& OutDisplayMetrics |
Please use RebuildDisplayMetrics - it is functionally the same but is clearer about the function cost |