Documentation
¶
Overview ¶
Package TextureProgressBar provides methods for working with TextureProgressBar object instances.
Index ¶
- type Advanced
- type Any
- type FillMode
- type Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRange() Range.Instance
- func (self Instance) AsTextureProgressBar() Instance
- func (self Instance) FillMode() int
- func (self Instance) NinePatchStretch() bool
- func (self Instance) RadialCenterOffset() Vector2.XY
- func (self Instance) RadialFillDegrees() Float.X
- func (self Instance) RadialInitialAngle() Float.X
- func (self Instance) SetFillMode(value int)
- func (self Instance) SetNinePatchStretch(value bool)
- func (self Instance) SetRadialCenterOffset(value Vector2.XY)
- func (self Instance) SetRadialFillDegrees(value Float.X)
- func (self Instance) SetRadialInitialAngle(value Float.X)
- func (self Instance) SetStretchMarginBottom(value int)
- func (self Instance) SetStretchMarginLeft(value int)
- func (self Instance) SetStretchMarginRight(value int)
- func (self Instance) SetStretchMarginTop(value int)
- func (self Instance) SetTextureOver(value [1]gdclass.Texture2D)
- func (self Instance) SetTextureProgress(value [1]gdclass.Texture2D)
- func (self Instance) SetTextureProgressOffset(value Vector2.XY)
- func (self Instance) SetTextureUnder(value [1]gdclass.Texture2D)
- func (self Instance) SetTintOver(value Color.RGBA)
- func (self Instance) SetTintProgress(value Color.RGBA)
- func (self Instance) SetTintUnder(value Color.RGBA)
- func (self Instance) StretchMarginBottom() int
- func (self Instance) StretchMarginLeft() int
- func (self Instance) StretchMarginRight() int
- func (self Instance) StretchMarginTop() int
- func (self Instance) TextureOver() [1]gdclass.Texture2D
- func (self Instance) TextureProgress() [1]gdclass.Texture2D
- func (self Instance) TextureProgressOffset() Vector2.XY
- func (self Instance) TextureUnder() [1]gdclass.Texture2D
- func (self Instance) TintOver() Color.RGBA
- func (self Instance) TintProgress() Color.RGBA
- func (self Instance) TintUnder() Color.RGBA
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type Side
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 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 (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) AsTextureProgressBar ¶
func (Instance) NinePatchStretch ¶
func (Instance) RadialCenterOffset ¶
func (Instance) RadialFillDegrees ¶
func (Instance) RadialInitialAngle ¶
func (Instance) SetFillMode ¶
func (Instance) SetNinePatchStretch ¶
func (Instance) SetRadialCenterOffset ¶
func (Instance) SetRadialFillDegrees ¶
func (Instance) SetRadialInitialAngle ¶
func (Instance) SetStretchMarginBottom ¶
func (Instance) SetStretchMarginLeft ¶
func (Instance) SetStretchMarginRight ¶
func (Instance) SetStretchMarginTop ¶
func (Instance) SetTextureOver ¶
func (Instance) SetTextureProgress ¶
func (Instance) SetTextureProgressOffset ¶
func (Instance) SetTextureUnder ¶
func (Instance) SetTintOver ¶
func (Instance) SetTintProgress ¶
func (Instance) SetTintUnder ¶
func (Instance) StretchMarginBottom ¶
func (Instance) StretchMarginLeft ¶
func (Instance) StretchMarginRight ¶
func (Instance) StretchMarginTop ¶
func (Instance) TextureOver ¶
func (Instance) TextureProgress ¶
func (Instance) TextureProgressOffset ¶
func (Instance) TextureUnder ¶
func (Instance) TintProgress ¶
func (*Instance) UnsafePointer ¶
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 )
Click to show internal directories.
Click to hide internal directories.