class
MSpacer
- Module
- Miri
- Header
#include "Miri/Widgets/MSpacer.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
MiriVec2 | ComputeDesiredSize | |
bool | CanCacheDesiredSize | The one attribute IS the desired size. |
bool | CanRetainPaint | Paints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar. |
int32_t | OnPaint | |
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 overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideThe one attribute IS the desired size.
CanRetainPaint
C++
bool CanRetainPaint() const overridePaints 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 overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MSpacer.h via miri.json · Dec 5, 2026Version 1.1.0