EntypoIconView

ceramic.Entityceramic.Visualceramic.Quadceramic.Layerceramic.Viewceramic.TextViewelements.EntypoIconView (Class) → ClickableIconView
Implements: tracker.Observable

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;
See: Entypo for available icon constants

Instance Members

elements
observedDirty: Bool

Default is false, automatically set to true when any of this instance's observable variables has changed.


elements
icon: Entypo

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


elements
invalidateIcon(): Void

elements
new(): Void

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

elements
unobservedIcon: Entypo

elements
emitObservedDirty(instance: EntypoIconView, fromSerializedField: Bool): Void

Event when any observable value as changed on this instance.

Name Type
instance EntypoIconView
fromSerializedField Bool

elements
emitIconChange(current: Entypo, previous: Entypo): Void

Event when icon field changes.

Name Type
current Entypo
previous Entypo

elements
updateContent(): Void

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