TextureProgressBar

package
v0.0.0-...-e1beaa7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

TextureProgressBar works like graphics.gd/classdb/ProgressBar, but uses up to 3 textures instead of Godot's graphics.gd/classdb/Theme resource. It can be used to create horizontal, vertical and radial progress bars.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsTextureProgressBar() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsCanvasItem

func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance

func (*Extension[T]) AsControl

func (self *Extension[T]) AsControl() Control.Instance

func (*Extension[T]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRange

func (self *Extension[T]) AsRange() Range.Instance

func (*Extension[T]) AsTextureProgressBar

func (self *Extension[T]) AsTextureProgressBar() Instance

type FillMode

type FillMode int //gd:TextureProgressBar.FillMode
const (
	// The [Instance.TextureProgress] fills from left to right.
	FillLeftToRight FillMode = 0
	// The [Instance.TextureProgress] fills from right to left.
	FillRightToLeft FillMode = 1
	// The [Instance.TextureProgress] fills from top to bottom.
	FillTopToBottom FillMode = 2
	// The [Instance.TextureProgress] fills from bottom to top.
	FillBottomToTop FillMode = 3
	// Turns the node into a radial bar. The [Instance.TextureProgress] fills clockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up.
	FillClockwise FillMode = 4
	// Turns the node into a radial bar. The [Instance.TextureProgress] fills counterclockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up.
	FillCounterClockwise FillMode = 5
	// The [Instance.TextureProgress] fills from the center, expanding both towards the left and the right.
	FillBilinearLeftAndRight FillMode = 6
	// The [Instance.TextureProgress] fills from the center, expanding both towards the top and the bottom.
	FillBilinearTopAndBottom FillMode = 7
	// Turns the node into a radial bar. The [Instance.TextureProgress] fills radially from the center, expanding both clockwise and counterclockwise. See [Instance.RadialCenterOffset], [Instance.RadialInitialAngle] and [Instance.RadialFillDegrees] to control the way the bar fills up.
	FillClockwiseAndCounterClockwise FillMode = 8
)

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

type Instance [1]gdclass.TextureProgressBar

Instance of the class with convieniently typed arguments and results.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsControl

func (self Instance) AsControl() Control.Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRange

func (self Instance) AsRange() Range.Instance

func (Instance) AsTextureProgressBar

func (self Instance) AsTextureProgressBar() Instance

func (Instance) FillMode

func (self Instance) FillMode() int

func (Instance) ID

func (self Instance) ID() ID

func (Instance) NinePatchStretch

func (self Instance) NinePatchStretch() bool

func (Instance) RadialCenterOffset

func (self Instance) RadialCenterOffset() Vector2.XY

func (Instance) RadialFillDegrees

func (self Instance) RadialFillDegrees() Float.X

func (Instance) RadialInitialAngle

func (self Instance) RadialInitialAngle() Angle.Radians

func (Instance) SetFillMode

func (self Instance) SetFillMode(value int)

func (Instance) SetNinePatchStretch

func (self Instance) SetNinePatchStretch(value bool)

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetRadialCenterOffset

func (self Instance) SetRadialCenterOffset(value Vector2.XY)

func (Instance) SetRadialFillDegrees

func (self Instance) SetRadialFillDegrees(value Float.X)

func (Instance) SetRadialInitialAngle

func (self Instance) SetRadialInitialAngle(value Angle.Radians)

func (Instance) SetStretchMarginBottom

func (self Instance) SetStretchMarginBottom(value int)

func (Instance) SetStretchMarginLeft

func (self Instance) SetStretchMarginLeft(value int)

func (Instance) SetStretchMarginRight

func (self Instance) SetStretchMarginRight(value int)

func (Instance) SetStretchMarginTop

func (self Instance) SetStretchMarginTop(value int)

func (Instance) SetTextureOver

func (self Instance) SetTextureOver(value Texture2D.Instance)

func (Instance) SetTextureProgress

func (self Instance) SetTextureProgress(value Texture2D.Instance)

func (Instance) SetTextureProgressOffset

func (self Instance) SetTextureProgressOffset(value Vector2.XY)

func (Instance) SetTextureUnder

func (self Instance) SetTextureUnder(value Texture2D.Instance)

func (Instance) SetTintOver

func (self Instance) SetTintOver(value Color.RGBA)

func (Instance) SetTintProgress

func (self Instance) SetTintProgress(value Color.RGBA)

func (Instance) SetTintUnder

func (self Instance) SetTintUnder(value Color.RGBA)

func (Instance) StretchMarginBottom

func (self Instance) StretchMarginBottom() int

func (Instance) StretchMarginLeft

func (self Instance) StretchMarginLeft() int

func (Instance) StretchMarginRight

func (self Instance) StretchMarginRight() int

func (Instance) StretchMarginTop

func (self Instance) StretchMarginTop() int

func (Instance) TextureOver

func (self Instance) TextureOver() Texture2D.Instance

func (Instance) TextureProgress

func (self Instance) TextureProgress() Texture2D.Instance

func (Instance) TextureProgressOffset

func (self Instance) TextureProgressOffset() Vector2.XY

func (Instance) TextureUnder

func (self Instance) TextureUnder() Texture2D.Instance

func (Instance) TintOver

func (self Instance) TintOver() Color.RGBA

func (Instance) TintProgress

func (self Instance) TintProgress() Color.RGBA

func (Instance) TintUnder

func (self Instance) TintUnder() Color.RGBA

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL