class
MSeparator
- Module
- Miri
- Header
#include "Miri/Widgets/MSeparator.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
MiriVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | Thickness on one axis, nothing on the other — the colour never reaches the measure. |
bool | CanRetainPaint | One line from three attributes; the colour reaches the paint but not the measure, so it has to be tested here and not there. |
const char* | GetTypeName | |
void | SetColor | |
void | SetThickness |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MSeparator) MIRI_ATTR(EOrientation, Orientation) MIRI_ATTR(MiriColor, Color) MIRI_ATTR(float, Thickness) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideThickness on one axis, nothing on the other — the colour never reaches the measure.
CanRetainPaint
C++
bool CanRetainPaint() const overrideOne line from three attributes; the colour reaches the paint but not the measure, so it has to be tested here and not there.
GetTypeName
C++
const char* GetTypeName() const overrideSetColor
C++
void SetColor(const MiriColor& color)SetThickness
C++
void SetThickness(float thickness)Generated from Miri/Widgets/MSeparator.h via miri.json · Dec 5, 2026Version 1.1.0