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

AccessibilityActions

AccessibilityRole

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

FillMode

public TextureProgressFillMode FillMode { get; set; }

Property Value

TextureProgressFillMode

NinePatchStretch

public bool NinePatchStretch { get; set; }

Property Value

bool

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

float

RadialInitialAngle

public float RadialInitialAngle { get; set; }

Property Value

float

StretchMargins

public Thickness StretchMargins { get; set; }

Property Value

Thickness

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

TextureProgressFillMode

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

textureSize Vector2

Returns

TextureProgressNinePatchRegion

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

textureSize Vector2

Returns

TextureProgressRegion

GetProgressTexture()

public Texture2D GetProgressTexture()

Returns

Texture2D

GetRadialCenterOffset()

public Vector2 GetRadialCenterOffset()

Returns

Vector2

GetRadialFillDegrees()

public float GetRadialFillDegrees()

Returns

float

GetRadialFillPolygon(Vector2)

Returns local boundary points for Godot's radial fill modes, ordered around the clipped sector.

public IReadOnlyList<Vector2> GetRadialFillPolygon(Vector2 textureSize)

Parameters

textureSize Vector2

Returns

IReadOnlyList<Vector2>

GetRadialInitialAngle()

public float GetRadialInitialAngle()

Returns

float

GetStretchMargin(Side)

public float GetStretchMargin(Side side)

Parameters

side Side

Returns

float

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

bool

SetFillMode(TextureProgressFillMode)

public void SetFillMode(TextureProgressFillMode mode)

Parameters

mode TextureProgressFillMode

SetNinePatchStretch(bool)

public void SetNinePatchStretch(bool stretch)

Parameters

stretch bool

SetOverTexture(Texture2D)

public void SetOverTexture(Texture2D texture)

Parameters

texture Texture2D

SetProgressTexture(Texture2D)

public void SetProgressTexture(Texture2D texture)

Parameters

texture Texture2D

SetRadialCenterOffset(Vector2)

public void SetRadialCenterOffset(Vector2 offset)

Parameters

offset Vector2

SetRadialFillDegrees(float)

public void SetRadialFillDegrees(float degrees)

Parameters

degrees float

SetRadialInitialAngle(float)

public void SetRadialInitialAngle(float angle)

Parameters

angle float

SetStretchMargin(Side, float)

public void SetStretchMargin(Side side, float value)

Parameters

side Side
value float

SetTextureProgressOffset(Vector2)

public void SetTextureProgressOffset(Vector2 offset)

Parameters

offset Vector2

SetTintOver(Color)

public void SetTintOver(Color color)

Parameters

color Color

SetTintProgress(Color)

public void SetTintProgress(Color color)

Parameters

color Color

SetTintUnder(Color)

public void SetTintUnder(Color color)

Parameters

color Color

SetUnderTexture(Texture2D)

public void SetUnderTexture(Texture2D texture)

Parameters

texture Texture2D