EntypoIconView
A view component for displaying Entypo font icons.
EntypoIconView is a specialized TextView that renders icons from the Entypo icon font. It provides a simple way to display any of the 411 premium pictograms available in the Entypo font collection.
The view automatically loads the Entypo font, centers the icon both horizontally and vertically, and updates its content when the icon property changes.
Example usage:
var iconView = new EntypoIconView();
iconView.icon = Entypo.HEART;
iconView.color = Color.RED;
iconView.pointSize = 24;
Instance Members
Default is false
, automatically set to true
when any of this instance's observable variables has changed.
The Entypo icon to display.
Changing this property will automatically update the displayed icon. The icon is rendered as a Unicode character from the Entypo font.
@default NOTE_BEAMED
Creates a new EntypoIconView instance.
The constructor initializes the view with default settings:
- Centers the icon both horizontally and vertically
- Sets the default point size to 16
- Loads the Entypo font asynchronously
- Sets up automatic content updates when the icon property changes
Private Members
Event when any observable value as changed on this instance.
Name | Type |
---|---|
instance |
EntypoIconView |
fromSerializedField |
Bool |
Event when icon field changes.
Name | Type |
---|---|
current |
Entypo |
previous |
Entypo |
Updates the displayed content based on the current icon value.
This method is automatically called whenever the icon property changes, converting the icon's numeric code point to the corresponding Unicode character.
Metadata
Name | Parameters |
---|---|
:build |
tracker.macros.ObservableMacro.build() |
:autoBuild |
tracker.macros.ObservableMacro.build() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |