Documentation
¶
Overview ¶
A StyleBox that displays a single line of a given color and thickness. The line can be either horizontal or vertical. Useful for separators.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsStyleBox() StyleBox.Instance
- func (self Instance) AsStyleBoxLine() Instance
- func (self Instance) Color() Color.RGBA
- func (self Instance) GrowBegin() Float.X
- func (self Instance) GrowEnd() Float.X
- func (self Instance) ID() ID
- func (self Instance) SetColor(value Color.RGBA)
- func (self Instance) SetGrowBegin(value Float.X)
- func (self Instance) SetGrowEnd(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetThickness(value int)
- func (self Instance) SetVertical(value bool)
- func (self Instance) Thickness() int
- func (self Instance) Vertical() bool
- func (self Instance) Virtual(name string) reflect.Value
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 Extension ¶
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]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
func (*Extension[T]) AsStyleBox ¶
func (*Extension[T]) AsStyleBoxLine ¶
type 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.
type Instance ¶
type Instance [1]gdclass.StyleBoxLine
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 (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsStyleBox ¶
func (Instance) AsStyleBoxLine ¶
func (Instance) GrowBegin ¶
The number of pixels the line will extend before the StyleBoxLine's bounds. If set to a negative value, the line will begin inside the StyleBoxLine's bounds.
func (Instance) GrowEnd ¶
The number of pixels the line will extend past the StyleBoxLine's bounds. If set to a negative value, the line will end inside the StyleBoxLine's bounds.
func (Instance) SetGrowBegin ¶
SetGrowBegin sets the property returned by [GetGrowBegin].
func (Instance) SetGrowEnd ¶
SetGrowEnd sets the property returned by [GetGrowEnd].
func (Instance) SetThickness ¶
SetThickness sets the property returned by [GetThickness].
func (Instance) SetVertical ¶
SetVertical sets the property returned by [IsVertical].