-
Notifications
You must be signed in to change notification settings - Fork 0
ProgressBar
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.ProgressBar |
| Namespace | Electron2D |
| Kind | class |
| Category | UI and Text |
Provides a read-only visual progress indicator.
public class Electron2D.ProgressBar : Electron2D.RangeProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: ProgressBar
Read-only Range visual with progress fill, percentage label option and indeterminate state flag.
ProgressBar draws the current Electron2D.Range.Ratio and does not
handle user input.
This type is not synchronized. Create and mutate progress bars on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.Range
| Member | Kind | Summary |
|---|---|---|
Indeterminate |
Property | Gets or sets whether this progress bar is indeterminate. |
ShowPercentage |
Property | Gets or sets whether a percentage label should be drawn. |
Electron2D.ProgressBar() |
Constructor | Initializes a new instance of the Electron2D.ProgressBar class. |
_Draw() |
Method | Draws the progress background, fill and optional percentage text. |
_GetMinimumSize() |
Method | Gets the minimum size requested by this progress bar. |
Kind: Property
public System.Boolean Indeterminate { get; set; }Gets or sets whether this progress bar is indeterminate.
The preview stores this flag and draws an empty progress fill when enabled.
true for indeterminate state; otherwise, false.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.ProgressBar
Kind: Property
public System.Boolean ShowPercentage { get; set; }Gets or sets whether a percentage label should be drawn.
The percentage is rounded to the nearest whole number.
true to draw percentage text when a font is available; otherwise, false.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.Range.Ratio
Kind: Constructor
public Electron2D.ProgressBar()Initializes a new instance of the Electron2D.ProgressBar class.
The new progress bar does not accept focus.
This constructor is not synchronized. Call it from the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.ProgressBar
Kind: Method
public System.Void _Draw()()Draws the progress background, fill and optional percentage text.
The preview drawing path uses rectangle primitives.
This callback is invoked on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Range.Ratio
Kind: Method
public Electron2D.Vector2 _GetMinimumSize()()Gets the minimum size requested by this progress bar.
The minimum size does not depend on percentage text in this preview.
A baseline progress bar size.
This callback is invoked on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Control.GetMinimumSize
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.