Documentation
¶
Overview ¶
graphics.gd/classdb/LabelSettings is a resource that provides common settings to customize the text in a graphics.gd/classdb/Label. It will take priority over the properties defined in graphics.gd/classdb/Control.Instance.Theme. The resource can be shared between multiple labels and changed on the fly, so it's convenient and flexible way to setup text style.
Index ¶
- type Advanced
- type Any
- type Expanded
- type Extension
- type ID
- type Instance
- func (self Instance) AddStackedOutline()
- func (self Instance) AddStackedShadow()
- func (self Instance) AsLabelSettings() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Font() Font.Instance
- func (self Instance) FontColor() Color.RGBA
- func (self Instance) FontSize() int
- func (self Instance) GetStackedOutlineColor(index int) Color.RGBA
- func (self Instance) GetStackedOutlineSize(index int) int
- func (self Instance) GetStackedShadowColor(index int) Color.RGBA
- func (self Instance) GetStackedShadowOffset(index int) Vector2.XY
- func (self Instance) GetStackedShadowOutlineSize(index int) int
- func (self Instance) ID() ID
- func (self Instance) LineSpacing() Float.X
- func (self Instance) MoveStackedOutline(from_index int, to_position int)
- func (self Instance) MoveStackedShadow(from_index int, to_position int)
- func (self Instance) OutlineColor() Color.RGBA
- func (self Instance) OutlineSize() int
- func (self Instance) ParagraphSpacing() Float.X
- func (self Instance) RemoveStackedOutline(index int)
- func (self Instance) RemoveStackedShadow(index int)
- func (self Instance) SetFont(value Font.Instance)
- func (self Instance) SetFontColor(value Color.RGBA)
- func (self Instance) SetFontSize(value int)
- func (self Instance) SetLineSpacing(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetOutlineColor(value Color.RGBA)
- func (self Instance) SetOutlineSize(value int)
- func (self Instance) SetParagraphSpacing(value Float.X)
- func (self Instance) SetShadowColor(value Color.RGBA)
- func (self Instance) SetShadowOffset(value Vector2.XY)
- func (self Instance) SetShadowSize(value int)
- func (self Instance) SetStackedOutlineColor(index int, color Color.RGBA)
- func (self Instance) SetStackedOutlineCount(value int)
- func (self Instance) SetStackedOutlineSize(index int, size int)
- func (self Instance) SetStackedShadowColor(index int, color Color.RGBA)
- func (self Instance) SetStackedShadowCount(value int)
- func (self Instance) SetStackedShadowOffset(index int, offset Vector2.XY)
- func (self Instance) SetStackedShadowOutlineSize(index int, size int)
- func (self Instance) ShadowColor() Color.RGBA
- func (self Instance) ShadowOffset() Vector2.XY
- func (self Instance) ShadowSize() int
- func (self Instance) StackedOutlineCount() int
- func (self Instance) StackedShadowCount() int
- 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 Expanded ¶
type Expanded [1]gdclass.LabelSettings
func (Expanded) AddStackedOutline ¶
Adds a new stacked outline to the label at the given 'index'. If 'index' is -1, the new stacked outline will be added at the end of the list.
func (Expanded) AddStackedShadow ¶
Adds a new stacked shadow to the label at the given 'index'. If 'index' is -1, the new stacked shadow will be added at the end of the list.
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]) AsLabelSettings ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
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.LabelSettings
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) AddStackedOutline ¶
func (self Instance) AddStackedOutline()
Adds a new stacked outline to the label at the given 'index'. If 'index' is -1, the new stacked outline will be added at the end of the list.
func (Instance) AddStackedShadow ¶
func (self Instance) AddStackedShadow()
Adds a new stacked shadow to the label at the given 'index'. If 'index' is -1, the new stacked shadow will be added at the end of the list.
func (Instance) AsLabelSettings ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) GetStackedOutlineColor ¶
Returns the color of the stacked outline at 'index'.
func (Instance) GetStackedOutlineSize ¶
Returns the size of the stacked outline at 'index'.
func (Instance) GetStackedShadowColor ¶
Returns the color of the stacked shadow at 'index'.
func (Instance) GetStackedShadowOffset ¶
Returns the offset of the stacked shadow at 'index'.
func (Instance) GetStackedShadowOutlineSize ¶
Returns the outline size of the stacked shadow at 'index'.
func (Instance) LineSpacing ¶
func (Instance) MoveStackedOutline ¶
Moves the stacked outline at index 'from_index' to the given position 'to_position' in the array.
func (Instance) MoveStackedShadow ¶
Moves the stacked shadow at index 'from_index' to the given position 'to_position' in the array.
func (Instance) OutlineColor ¶
func (Instance) OutlineSize ¶
func (Instance) ParagraphSpacing ¶
func (Instance) RemoveStackedOutline ¶
Removes the stacked outline at index 'index'.
func (Instance) RemoveStackedShadow ¶
Removes the stacked shadow at index 'index'.
func (Instance) SetFontColor ¶
func (Instance) SetFontSize ¶
func (Instance) SetLineSpacing ¶
func (Instance) SetOutlineColor ¶
func (Instance) SetOutlineSize ¶
func (Instance) SetParagraphSpacing ¶
func (Instance) SetShadowColor ¶
func (Instance) SetShadowOffset ¶
func (Instance) SetShadowSize ¶
func (Instance) SetStackedOutlineColor ¶
Sets the color of the stacked outline identified by the given 'index' to 'color'.
func (Instance) SetStackedOutlineCount ¶
func (Instance) SetStackedOutlineSize ¶
Sets the size of the stacked outline identified by the given 'index' to 'size'.
func (Instance) SetStackedShadowColor ¶
Sets the color of the stacked shadow identified by the given 'index' to 'color'.
func (Instance) SetStackedShadowCount ¶
func (Instance) SetStackedShadowOffset ¶
Sets the offset of the stacked shadow identified by the given 'index' to 'offset'.
func (Instance) SetStackedShadowOutlineSize ¶
Sets the outline size of the stacked shadow identified by the given 'index' to 'size'.