class
MIconGlyph
- Module
- Miri
- Header
#include "Miri/Widgets/MIconGlyph.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetGlyph | |
void | SetColorAndOpacity | |
std::string | GetGlyph | |
float | GetSize | |
MiriVec2 | GlyphOrigin | Where the glyph's top-left lands when it is painted into rect: the number a test measures against the ink box. |
bool | PollAttributes | |
MiriVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
bool | CanRetainPaint | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MIconGlyph) MIRI_ATTR(std::string, Glyph) MIRI_ARG(float, Size) MIRI_ATTR(MiriColor, ColorAndOpacity) MIRI_ARG(std::string, FontFamily) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)SetGlyph
C++
void SetGlyph(const std::string& glyph)SetColorAndOpacity
C++
void SetColorAndOpacity(const MiriColor& color)GetGlyph
C++
std::string GetGlyph() constGetSize
C++
float GetSize() constGlyphOrigin
C++
MiriVec2 GlyphOrigin(const MiriRect& rect) constWhere the glyph's top-left lands when it is painted into rect: the number a test measures against the ink box.
PollAttributes
C++
bool PollAttributes() overrideComputeDesiredSize
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 overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MIconGlyph.h via miri.json · Dec 5, 2026Version 1.1.0