TextureProgressBar

package
v0.0.0-...-5fa07e4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package TextureProgressBar provides methods for working with TextureProgressBar object instances.

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 FillMode

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

type Instance

type Instance [1]gdclass.TextureProgressBar

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

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) 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() Float.X

func (Instance) SetFillMode

func (self Instance) SetFillMode(value int)

func (Instance) SetNinePatchStretch

func (self Instance) SetNinePatchStretch(value 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 Float.X)

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 [1]gdclass.Texture2D)

func (Instance) SetTextureProgress

func (self Instance) SetTextureProgress(value [1]gdclass.Texture2D)

func (Instance) SetTextureProgressOffset

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

func (Instance) SetTextureUnder

func (self Instance) SetTextureUnder(value [1]gdclass.Texture2D)

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() [1]gdclass.Texture2D

func (Instance) TextureProgress

func (self Instance) TextureProgress() [1]gdclass.Texture2D

func (Instance) TextureProgressOffset

func (self Instance) TextureProgressOffset() Vector2.XY

func (Instance) TextureUnder

func (self Instance) TextureUnder() [1]gdclass.Texture2D

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) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

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

type Side

type Side int
const (
	/*Left side, usually used for [Control] or [StyleBox]-derived classes.*/
	SideLeft Side = 0
	/*Top side, usually used for [Control] or [StyleBox]-derived classes.*/
	SideTop Side = 1
	/*Right side, usually used for [Control] or [StyleBox]-derived classes.*/
	SideRight Side = 2
	/*Bottom side, usually used for [Control] or [StyleBox]-derived classes.*/
	SideBottom Side = 3
)

Jump to

Keyboard shortcuts

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