class ProgrammaticSkin
package feathers.skins
extends MeasureSprite › ValidatingSprite
implements IStateObserver, IProgrammaticSkin
extended by 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. May be different than uiContext
.
If null
, this skin may use uiContext
instead, as long as uiContext
implements the IStateContext
interface.
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
.