class

MWindowFrame

Module
Miri
Header
#include "Miri/Widgets/MWindowFrame.h"
Namespace
Miri

Properties

TypeNameDescription
static constexpr floatkTitleBarHeightDefault 30.0f.
static constexpr floatkBorderWidthDefault 1.0f.
static constexpr floatkButtonWidthDefault 46.0f.
static constexpr floatkResizeEdgeDefault 5.0f.

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGSOptional menu/toolbar widget embedded in title bar (after title text)
WidgetArgsType&TitleBarContent
MIRI_WIDGET_ARGS_END
voidSetPlatformWindow
IMiriPlatformWindow*GetPlatformWindow
floatGetTitleTextWidth
boolHasTitleBarContent
voidSetTitle
MiriVec2ComputeDesiredSize
voidArrangeChildren
boolCanSkipArrangeRefused: the frame lays out against the live platform window state (maximized, borders) that no widget setter announces.
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
voidOnMouseLeave
EMiriCursorTypeOnCursorQuery
boolClaimsPointerExclusively
voidOnMouseCaptureLost
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MWindowFrame) MIRI_ARG(std::string, Title) MIRI_ARG(MiriColor, TitleBarColor) MIRI_ARG(MiriColor, BorderColor) MIRI_ARG(float, BorderWidth) MIRI_ARG(bool, ShowMinimize) MIRI_ARG(bool, ShowMaximize) MIRI_CONTENT(MWindowFrame, Content) TSharedPtr<MWidget> _TitleBarContent

Optional menu/toolbar widget embedded in title bar (after title text)

TitleBarContent

C++
WidgetArgsType& TitleBarContent(TSharedPtr<MWidget> w)

MIRI_WIDGET_ARGS_END

C++
MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetPlatformWindow

C++
void SetPlatformWindow(IMiriPlatformWindow* window)

GetPlatformWindow

C++
IMiriPlatformWindow* GetPlatformWindow() const

GetTitleTextWidth

C++
float GetTitleTextWidth() const

HasTitleBarContent

C++
bool HasTitleBarContent() const

SetTitle

C++
void SetTitle(const std::string& title)

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

CanSkipArrange

C++
bool CanSkipArrange() const override

Refused: the frame lays out against the live platform window state (maximized, borders) that no widget setter announces.

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

OnCursorQuery

C++
EMiriCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const override

ClaimsPointerExclusively

C++
bool ClaimsPointerExclusively(const CGeometry& geo, const MiriVec2& absolutePosition) const override

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MWindowFrame.h via miri.json · Dec 5, 2026Version 1.1.0