Module |
|
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 FVector2D CalculatePopupWindowPosition
(
const FSlateRect & InAnchor,
const FVector2D & InSize,
bool bAutoAdjustForDPIScale,
const FVector2D & InProposedPlacement,
const EOrientation Orientation
) const
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
Parameter |
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. |