FSlateApplication::CalculatePopupWindowPosition

Calculates the popup window position from the passed in window position and size.

Windows
MacOS
Linux

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

Syntax

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

Returns

The adjusted position

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss