class
MWindowFrame
- Module
- Miri
- Header
#include "Miri/Widgets/MWindowFrame.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kTitleBarHeight | Default 30.0f. |
static constexpr float | kBorderWidth | Default 1.0f. |
static constexpr float | kButtonWidth | Default 46.0f. |
static constexpr float | kResizeEdge | Default 5.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | Optional menu/toolbar widget embedded in title bar (after title text) | |
WidgetArgsType& | TitleBarContent | |
MIRI_WIDGET_ARGS_END | ||
void | SetPlatformWindow | |
IMiriPlatformWindow* | GetPlatformWindow | |
float | GetTitleTextWidth | |
bool | HasTitleBarContent | |
void | SetTitle | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
bool | CanSkipArrange | Refused: the frame lays out against the live platform window state (maximized, borders) that no widget setter announces. |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
EMiriCursorType | OnCursorQuery | |
bool | ClaimsPointerExclusively | |
void | OnMouseCaptureLost | |
int32_t | GetNumChildren | |
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> _TitleBarContentOptional 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() constGetTitleTextWidth
C++
float GetTitleTextWidth() constHasTitleBarContent
C++
bool HasTitleBarContent() constSetTitle
C++
void SetTitle(const std::string& title)ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideRefused: 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 overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnCursorQuery
C++
EMiriCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideClaimsPointerExclusively
C++
bool ClaimsPointerExclusively(const CGeometry& geo, const MiriVec2& absolutePosition) const overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MWindowFrame.h via miri.json · Dec 5, 2026Version 1.1.0