UIng::Area::Attribute
Inherits UIng::BlockConstructor < Reference < Object
Attribute represents text styling properties for AttributedString.
IMPORTANT: Ownership rules
- When passed to
AttributedString#set_attribute, ownership transfers to libui. - After ownership transfer, the Attribute MUST NOT be reused or freed manually.
- Each
set_attributecall requires a NEW Attribute instance.
Constructors
new(*args, &)
Sourcenew(*args, **kwargs, &)
Sourcenew(ref_ptr : Pointer(LibUI::Attribute))
Sourcenew_background(r : Float64, g : Float64, b : Float64, a : Float64) : Attribute
Sourcenew_color(r : Float64, g : Float64, b : Float64, a : Float64) : Attribute
Sourcenew_family(family : String) : Attribute
Sourcenew_features(open_type_features : OpenTypeFeatures) : Attribute
Sourcenew_italic(italic : TextItalic) : Attribute
Sourcenew_size(size : Float64) : Attribute
Sourcenew_stretch(stretch : TextStretch) : Attribute
Sourcenew_underline(underline : Underline) : Attribute
Sourcenew_underline_color(underline_color : UnderlineColor, r : Float64, g : Float64, b : Float64, a : Float64) : Attribute
Sourcenew_weight(weight : TextWeight) : Attribute
SourceInstance methods
color
Sourcefamily
Sourcefeatures
Sourcefinalize
Sourcefree
Sourceitalic
Sourcereleased=(released : Bool)
Sourcereleased?
Sourcesize
Sourcestretch
Sourceto_unsafe
Sourcetype
Sourceunderline
Sourceunderline_color
Sourceweight
Source