Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application > API/Runtime/Slate/Framework/Application/FSlateApplication
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include | #include "Framework/Application/SlateApplication.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
virtual UE::Slate::FDeprecateVector2DResult CalculatePopupWindowPosition
&40;
const FSlateRect & InAnchor,
const UE::Slate::FDeprecateVector2DParameter & InSize,
bool bAutoAdjustForDPIScale,
const UE::Slate::FDeprecateVector2DParameter & InProposedPlacement,
const EOrientation Orientation
&41; const
Remarks
Calculates the popup window position from the passed in window position and size. Adjusts position for popup windows which are outside of the work area of the monitor where they reside The adjusted position
Parameters
| Name | Description |
|---|---|
| InAnchor | The current(suggested) window position and size of an area which may not be covered by the popup. |
| InSize | The size of the window |
| InProposedPlacement | The location on screen where the popup should go if allowed. If zero this will be determined from Orientation and Anchor |
| Orientation | The direction of the popup. If vertical it will attempt to open below the anchor but will open above if there is no room. If horizontal it will attempt to open below the anchor but will open above if there is no room. |