Class TextureProgressBar
- Namespace
- Forma
- Assembly
- Forma.dll
Visualizes progress with layered textures using linear, radial, bilinear, or nine-patch fill behavior.
public sealed class TextureProgressBar : Range, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
TextureProgressBar
- Implements
- Inherited Members
Constructors
TextureProgressBar()
public TextureProgressBar()
Properties
AccessibilityActions
public override AccessibilityActions AccessibilityActions { get; }
Property Value
AccessibilityRole
public override AccessibilityRole AccessibilityRole { get; }
Property Value
FillMode
public TextureProgressFillMode FillMode { get; set; }
Property Value
NinePatchStretch
public bool NinePatchStretch { get; set; }
Property Value
Over
public Texture2D Over { get; set; }
Property Value
- Texture2D
Progress
public Texture2D Progress { get; set; }
Property Value
- Texture2D
ProgressOffset
public Vector2 ProgressOffset { get; set; }
Property Value
- Vector2
RadialCenterOffset
public Vector2 RadialCenterOffset { get; set; }
Property Value
- Vector2
RadialFillDegrees
public float RadialFillDegrees { get; set; }
Property Value
RadialInitialAngle
public float RadialInitialAngle { get; set; }
Property Value
StretchMargins
public Thickness StretchMargins { get; set; }
Property Value
TintOver
public Color TintOver { get; set; }
Property Value
- Color
TintProgress
public Color TintProgress { get; set; }
Property Value
- Color
TintUnder
public Color TintUnder { get; set; }
Property Value
- Color
Under
public Texture2D Under { get; set; }
Property Value
- Texture2D
Methods
GetFillMode()
public TextureProgressFillMode GetFillMode()
Returns
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetNinePatchProgressRegion(Vector2)
Returns Godot's adjusted partial-fill nine-patch geometry for the progress texture.
public TextureProgressNinePatchRegion GetNinePatchProgressRegion(Vector2 textureSize)
Parameters
textureSizeVector2
Returns
GetOverTexture()
public Texture2D GetOverTexture()
Returns
- Texture2D
GetProgressRegion(Vector2)
Returns the local rectangular progress region for linear and bilinear modes.
public TextureProgressRegion GetProgressRegion(Vector2 textureSize)
Parameters
textureSizeVector2
Returns
GetProgressTexture()
public Texture2D GetProgressTexture()
Returns
- Texture2D
GetRadialCenterOffset()
public Vector2 GetRadialCenterOffset()
Returns
- Vector2
GetRadialFillDegrees()
public float GetRadialFillDegrees()
Returns
GetRadialFillPolygon(Vector2)
Returns local boundary points for Godot's radial fill modes, ordered around the clipped sector.
public IReadOnlyList<Vector2> GetRadialFillPolygon(Vector2 textureSize)
Parameters
textureSizeVector2
Returns
- IReadOnlyList<Vector2>
GetRadialInitialAngle()
public float GetRadialInitialAngle()
Returns
GetStretchMargin(Side)
public float GetStretchMargin(Side side)
Parameters
sideSide
Returns
GetTextureProgressOffset()
public Vector2 GetTextureProgressOffset()
Returns
- Vector2
GetTintOver()
public Color GetTintOver()
Returns
- Color
GetTintProgress()
public Color GetTintProgress()
Returns
- Color
GetTintUnder()
public Color GetTintUnder()
Returns
- Color
GetUnderTexture()
public Texture2D GetUnderTexture()
Returns
- Texture2D
IsNinePatchStretchEnabled()
public bool IsNinePatchStretchEnabled()
Returns
SetFillMode(TextureProgressFillMode)
public void SetFillMode(TextureProgressFillMode mode)
Parameters
SetNinePatchStretch(bool)
public void SetNinePatchStretch(bool stretch)
Parameters
stretchbool
SetOverTexture(Texture2D)
public void SetOverTexture(Texture2D texture)
Parameters
textureTexture2D
SetProgressTexture(Texture2D)
public void SetProgressTexture(Texture2D texture)
Parameters
textureTexture2D
SetRadialCenterOffset(Vector2)
public void SetRadialCenterOffset(Vector2 offset)
Parameters
offsetVector2
SetRadialFillDegrees(float)
public void SetRadialFillDegrees(float degrees)
Parameters
degreesfloat
SetRadialInitialAngle(float)
public void SetRadialInitialAngle(float angle)
Parameters
anglefloat
SetStretchMargin(Side, float)
public void SetStretchMargin(Side side, float value)
Parameters
SetTextureProgressOffset(Vector2)
public void SetTextureProgressOffset(Vector2 offset)
Parameters
offsetVector2
SetTintOver(Color)
public void SetTintOver(Color color)
Parameters
colorColor
SetTintProgress(Color)
public void SetTintProgress(Color color)
Parameters
colorColor
SetTintUnder(Color)
public void SetTintUnder(Color color)
Parameters
colorColor
SetUnderTexture(Texture2D)
public void SetUnderTexture(Texture2D texture)
Parameters
textureTexture2D