class BaseProgressBar
package feathers.controls.supportClasses
extends FeathersControl › MeasureSprite › ValidatingSprite
implements IRange
extended by HProgressBar, VProgressBar
Base class for progress bar components.
Events:
openfl.events.Event.CHANGE | Dispatched when |
---|
1.0.0
.See also:
Variables
backgroundSkin:DisplayObject
The primary background to display in the progress bar. The background skin is displayed below the fill skin, and the fill skin is affected by the padding, and the background skin may be seen around the edges.
The original width or height of the background skin will be one of the
values used to calculate the width or height of the progress bar, if the
width
and height
properties are not set explicitly. The fill skin
and padding values will also be used.
If the background skin is a measurable component, the minWidth
or
minHeight
properties will be one of the values used to calculate the
width or height of the progress bar. If the background skin is a regular
OpenFL display object, the original width and height of the display
object will be used to calculate the minimum dimensions instead.
In the following example, the progress bar is given a background skin:
var skin = new RectangleSkin();
skin.fill = SolidColor(0xcccccc);
progress.backgroundSkin = skin;
1.0.0
.See also:
disabledBackgroundSkin:DisplayObject
The background skin to display when the progress bar is disabled.
In the following example, the progress bar is given a disabled background skin:
var skin = new RectangleSkin();
skin.fill = SolidColor(0xdddddd);
progress.disabledBackgroundSkin = skin;
progress.enabled = false;
1.0.0
.See also:
disabledFillSkin:DisplayObject
The fill skin to display when the progress bar is disabled.
In the following example, the progress bar is given a disabled fill skin:
var skin = new RectangleSkin();
skin.fill = SolidColor(0xcccccc);
progress.disabledFillSkin = skin;
progress.enabled = false;
1.0.0
.fillSkin:DisplayObject
The primary fill to display in the progress bar. The fill skin is rendered above the background skin, with padding around the edges of the the fill skin to reveal the background skin behind.
In the following example, the progress bar is given a fill skin:
var skin = new RectangleSkin();
skin.fill = SolidColor(0xaaaaaa);
progress.fillSkin = skin;
1.0.0
.maximum:Float
The progress bar's value cannot be larger than the maximum.
In the following example, the maximum is set to 100.0
:
progress.minimum = 0.0;
progress.maximum = 100.0;
progress.value = 12.0;
1.0.0
.See also:
minimum:Float
The progress bar's value cannot be smaller than the minimum.
In the following example, the minimum is set to -100
:
progress.minimum = -100;
progress.maximum = 100;
progress.value = 50;
1.0.0
.See also:
paddingBottom:Float
The minimum space, in pixels, between the progress bar's bottom edge and the progress bar's fill skin.
In the following example, the progress bar's bottom padding is set to 20 pixels:
progress.paddingBottom = 20.0;
1.0.0
.See also:
paddingLeft:Float
The minimum space, in pixels, between the progress bar's left edge and the text input's content.
In the following example, the progress bar's left padding is set to 20 pixels:
progress.paddingLeft = 20.0;
1.0.0
.See also:
paddingRight:Float
The minimum space, in pixels, between the progress bar's right edge and the progress bar's fill skin.
In the following example, the progress bar's right padding is set to 20 pixels:
progress.paddingRight = 20.0;
1.0.0
.See also:
paddingTop:Float
The minimum space, in pixels, between the progress bar's top edge and the progress bar's fill skin.
In the following example, the progress bar's top padding is set to 20 pixels:
progress.paddingTop = 20.0;
1.0.0
.See also:
value:Float
The value of the progress bar, which must be between the minimum
and
the maximum
.
When the value
property changes, the progress bar will dispatch an event
of type Event.CHANGE
.
In the following example, the value is changed to 12.0
:
progress.minimum = 0.0;
progress.maximum = 100.0;
progress.value = 12.0;
1.0.0
.See also:
Methods
setPadding(value:Float):Void
Sets all four padding properties to the same value.
1.0.0
.See also: