Navigation
API > API/Runtime > API/Runtime/SlateCore
Enum to describe how to auto-center an SWindow
| Name | EAutoCenter |
| Type | enum |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h |
| Include Path | #include "Widgets/SWindow.h" |
Syntax
enum EAutoCenter
{
None,
PrimaryWorkArea,
PreferredWorkArea,
}
Values
| Name | Remarks |
|---|---|
| None | Don't auto-center the window |
| PrimaryWorkArea | Auto-center the window on the primary work area |
| PreferredWorkArea | Auto-center the window on the preferred work area, determined using GetPreferredWorkArea() |