class

MBox

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

Properties

TypeNameDescription
EVerticalAlignment_VAlignDefault EVerticalAlignment::Fill.

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
WidgetArgsType&HAlign
WidgetArgsType&VAlign
MIRI_ARGText under this box is shaped as on a floating surface (CMiriRenderer::PushFloatingText): what a browser composites on a layer of its own, such as everything over a viewport.
boolCanCacheDesiredSize
boolCanSkipArrange
boolCanRetainPaintDraws nothing itself; the slice is entirely its child's.
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MBox) MIRI_ATTR(float, WidthOverride) MIRI_ATTR(float, HeightOverride) MIRI_ATTR(MiriMargin, Padding) EHorizontalAlignment _HAlign = EHorizontalAlignment::Fill

HAlign

C++
WidgetArgsType& HAlign(EHorizontalAlignment value)

VAlign

C++
WidgetArgsType& VAlign(EVerticalAlignment value)

MIRI_ARG

C++
MIRI_ARG(bool, FloatingText) MIRI_CONTENT(MBox, Content) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

Text under this box is shaped as on a floating surface (CMiriRenderer::PushFloatingText): what a browser composites on a layer of its own, such as everything over a viewport.

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

Draws nothing itself; the slice is entirely its child's. A bound padding still disqualifies it — the child would move inside an unchanged frame with nothing to invalidate on.

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

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

OnPaint

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

GetTypeName

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