class BaseGraphicsPathSkin
package feathers.skins
extends MeasureSprite › ValidatingSprite
implements IStateObserver
extended by CircleSkin, EllipseSkin, OverAndUnderlineSkin, RectangleSkin, UnderlineSkin
A base class for Feathers UI skins that draw a path with a fill and border
using openfl.display.Graphics
.
1.0.0
.Variables
disabledBorder:LineStyle
How the path's border is styled when the state context is disabled. To
use this skin, the state context must implement the IUIControl
interface.
1.0.0
.See also:
disabledFill:FillStyle = null
How the path's fill is styled when the state context is disabled. To
use this skin, the state context must implement the IUIControl
interface.
1.0.0
.See also:
fill:FillStyle = SolidColor(0xcccccc)
How the path's fill is styled. For example, it could be a solid color, a gradient, or a tiled bitmap.
1.0.0
.selectedBorder:LineStyle
How the path's border is styled when the state context is selected. To
use this skin, the state context must implement the IToggle
interface.
1.0.0
.See also:
selectedFill:FillStyle = null
How the path's fill is styled when the state context is selected. To
use this skin, the state context must implement the IToggle
interface.
1.0.0
.See also:
stateContext:IStateContext<Dynamic>
An optional IStateContext
that is used to change the styles of the
skin when its state changes.
1.0.0
.Methods
privatedrawPath():Void
Subclasses should override drawPath()
to draw the skin's graphics.
1.0.0
.getBorderForState(state:EnumValue):LineStyle
Gets the border style to be used by the skin when the context's
currentState
property matches the specified state value.
If a border is not defined for a specific state, returns null
.
1.0.0
.See also:
privategetCurrentBorder():LineStyle
Returns the current border based on the state context.
1.0.0
.See also:
privategetCurrentFill():FillStyle
Returns the current fill based on the state context.
1.0.0
.See also:
getFillForState(state:EnumValue):FillStyle
Gets the fill style to be used by the skin when the context's
currentState
property matches the specified state value.
If a fill is not defined for a specific state, returns null
.
1.0.0
.See also:
privateneedsStateUpdate():Bool
Checks if a the current state requires the skin to be redrawn.
Subclasses may need to override this method if they add any additional
state-dependent properties similar to getCurrentBorder
and
getCurrentFill
.
1.0.0
.setBorderForState(state:EnumValue, border:LineStyle):Void
Sets the border style to be used by the skin when the context's
currentState
property matches the specified state value.
If a color is not defined for a specific state, the value of the
border
property will be used instead.
To clear a state's border, pass in null
.
1.0.0
.See also:
setFillForState(state:EnumValue, fill:FillStyle):Void
Sets the fill style to be used by the skin when the context's
currentState
property matches the specified state value.
If a color is not defined for a specific state, the value of the fill
property will be used instead.
To clear a state's fill, pass in null
.
1.0.0
.See also: