class

AIconGlyph

Module
Arc
Header
#include "Arc/Widgets/AIconGlyph.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetGlyph
voidSetColorAndOpacity
std::stringGetGlyph
floatGetSize
ArcVec2GlyphOriginWhere the glyph's top-left lands when it is painted into rect: the number a test measures against the ink box.
boolPollAttributes
ArcVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
boolCanRetainPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AIconGlyph) ARC_ATTR(std::string, Glyph) ARC_ARG(float, Size) ARC_ATTR(ArcColor, ColorAndOpacity) ARC_ARG(std::string, FontFamily) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetGlyph

C++
void SetGlyph(const std::string& glyph)

SetColorAndOpacity

C++
void SetColorAndOpacity(const ArcColor& color)

GetGlyph

C++
std::string GetGlyph() const

GetSize

C++
float GetSize() const

GlyphOrigin

C++
ArcVec2 GlyphOrigin(const ArcRect& rect) const

Where 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() override

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AIconGlyph.h via arc.json · Nov 5, 2026Version 1.0.0