class
AIconGlyph
- Module
- Arc
- Header
#include "Arc/Widgets/AIconGlyph.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetGlyph | |
void | SetColorAndOpacity | |
std::string | GetGlyph | |
float | GetSize | |
ArcVec2 | 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 | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
bool | CanRetainPaint | |
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() constGetSize
C++
float GetSize() constGlyphOrigin
C++
ArcVec2 GlyphOrigin(const ArcRect& 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++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AIconGlyph.h via arc.json · Nov 5, 2026Version 1.0.0