class

CMiriPopupPlacement

Module
Miri
Header
#include "Miri/Framework/CMiriPopupPlacement.h"
Namespace
Miri

Public functions

ReturnsNameDescription
MiriVec2GetWindowSize
CMiriWindow*GetWindowForWidget
MiriVec2GetWindowSizeForWidget
MiriVec2GetMenuBoundsPlacement bounds for MENUS.
FPlacementPlaceBelow
FPlacementPlaceAbove
FPlacementPlaceAtPosition
FPlacementPlaceSubMenu

Function details

GetWindowSize

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

GetWindowForWidget

C++
static CMiriWindow* GetWindowForWidget(const MWidget* widget)

GetWindowSizeForWidget

C++
static MiriVec2 GetWindowSizeForWidget(const MWidget* widget)

GetMenuBounds

C++
static MiriVec2 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 MiriRect& anchor, const MiriVec2& desiredSize, const MiriVec2& windowSize, float gap = 2.0f, float rowHeight = 0.0f, float chromeHeight = 0.0f, bool alignRight = false)

PlaceAbove

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

PlaceAtPosition

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

PlaceSubMenu

C++
static FPlacement PlaceSubMenu(const MiriRect& parentRect, float anchorY, const MiriVec2& desiredSize, const MiriVec2& windowSize)
Generated from Miri/Framework/CMiriPopupPlacement.h via miri.json · Dec 5, 2026Version 1.1.0