Navigation
API > API/Runtime > API/Runtime/Engine
Custom Scaling Rules for Slate and UMG Widgets can be implemented by sub-classing from this class and setting this rule to be used in your project settings.
| Name | UDPICustomScalingRule |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/DPICustomScalingRule.h |
| Include Path | #include "Engine/DPICustomScalingRule.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UDPICustomScalingRule : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDPICustomScalingRule
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetDPIScaleBasedOnSize
(
FIntPoint Size |
Return the scale to use given the size of the viewport. | Engine/DPICustomScalingRule.h |