class

MSpacer

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
MiriVec2ComputeDesiredSize
boolCanCacheDesiredSizeThe one attribute IS the desired size.
boolCanRetainPaintPaints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar.
int32_tOnPaint
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MSpacer) MIRI_ATTR(MiriVec2, Size) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

The one attribute IS the desired size.

CanRetainPaint

C++
bool CanRetainPaint() const override

Paints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar.

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/MSpacer.h via miri.json · Dec 5, 2026Version 1.1.0