class ProgrammaticSkin
package feathers.skins
extends MeasureSprite › ValidatingSprite
implements IStateObserver, IProgrammaticSkin
extended by DotsActivitySkin, BaseGraphicsPathSkin, MultiSkin
A base class for Feathers UI skins that are drawn programmatically.
1.0.0
.Variables
stateContext:IStateContext<Dynamic>
An optional IStateContext that is used to change the styles of the
skin when its state changes. Often refers to the same object as
uiContext, but that is not a requirement (they are allowed to be
different objects).
If stateContext is null, the skin may attempt to use uiContext
instead, if uiContext implements IStateContext. If stateContext
is null, and uiContext does not implement IStateContext, then
this skin will not be able to watch for state changes.
1.0.0
.Methods
privateneedsStateUpdate():Bool
Checks if a the current state requires the skin to be redrawn. By
default, returns true.
Subclasses may override needsStateUpdate() to limit when state changes
require the skin to update.
1.0.0
.privateonAddUIContext():Void
Called when the uiContext property is set to a new non-null value.
Subclasses may override to access the uiContext property to add
event listeners or set properties.
1.0.0
.privateonRemoveUIContext():Void
Called when the uiContext property is about to be cleared.
Subclasses may override to access the uiContext property to remove
event listeners or reset properties.
1.0.0
.