class

CArcPopupPlacement

Module
Arc
Header
#include "Arc/Framework/CArcPopupPlacement.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
ArcVec2GetWindowSize
CArcWindow*GetWindowForWidget
ArcVec2GetWindowSizeForWidget
ArcVec2GetMenuBoundsPlacement bounds for MENUS.
FPlacementPlaceBelow
FPlacementPlaceAbove
FPlacementPlaceAtPosition
FPlacementPlaceSubMenu

Function details

GetWindowSize

C++
static ArcVec2 GetWindowSize(uint32_t windowId = 0)

GetWindowForWidget

C++
static CArcWindow* GetWindowForWidget(const AWidget* widget)

GetWindowSizeForWidget

C++
static ArcVec2 GetWindowSizeForWidget(const AWidget* widget)

GetMenuBounds

C++
static ArcVec2 GetMenuBounds(uint32_t windowId = 0)

Placement bounds for MENUS. With OS-window popups active this extends past the window to the display's usable bounds (in the window's logical space) so menus overhang the window edge like native ones; otherwise it is the window size. In-window popups (combo dropdowns etc.) must keep using GetWindowSize — they clip at the window edge.

PlaceBelow

C++
static FPlacement PlaceBelow(const ArcRect& anchor, const ArcVec2& desiredSize, const ArcVec2& windowSize, float gap = 2.0f, float rowHeight = 0.0f, float chromeHeight = 0.0f, bool alignRight = false)

PlaceAbove

C++
static FPlacement PlaceAbove(const ArcRect& anchor, const ArcVec2& desiredSize, const ArcVec2& windowSize, float gap = 2.0f, float rowHeight = 0.0f, float chromeHeight = 0.0f, bool alignRight = false)

PlaceAtPosition

C++
static FPlacement PlaceAtPosition(const ArcVec2& position, const ArcVec2& desiredSize, const ArcVec2& windowSize, float gap = 2.0f)

PlaceSubMenu

C++
static FPlacement PlaceSubMenu(const ArcRect& parentRect, float anchorY, const ArcVec2& desiredSize, const ArcVec2& windowSize)
Generated from Arc/Framework/CArcPopupPlacement.h via arc.json · Nov 5, 2026Version 1.0.0