class
MBox
- Module
- Miri
- Header
#include "Miri/Widgets/MBox.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
EVerticalAlignment | _VAlign | Default EVerticalAlignment::Fill. |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
WidgetArgsType& | HAlign | |
WidgetArgsType& | VAlign | |
MIRI_ARG | 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. | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | CanRetainPaint | Draws nothing itself; the slice is entirely its child's. |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
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::FillHAlign
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 overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideDraws 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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MBox.h via miri.json · Dec 5, 2026Version 1.1.0