Documentation ¶
Overview ¶
Package StyleBoxTexture provides methods for working with StyleBoxTexture object instances.
Index ¶
- type Advanced
- type Any
- type AxisStretchMode
- 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) AsStyleBoxTexture() Instance
- func (self Instance) AxisStretchHorizontal() gdclass.StyleBoxTextureAxisStretchMode
- func (self Instance) AxisStretchVertical() gdclass.StyleBoxTextureAxisStretchMode
- func (self Instance) DrawCenter() bool
- func (self Instance) ExpandMarginBottom() Float.X
- func (self Instance) ExpandMarginLeft() Float.X
- func (self Instance) ExpandMarginRight() Float.X
- func (self Instance) ExpandMarginTop() Float.X
- func (self Instance) ModulateColor() Color.RGBA
- func (self Instance) RegionRect() Rect2.PositionSize
- func (self Instance) SetAxisStretchHorizontal(value gdclass.StyleBoxTextureAxisStretchMode)
- func (self Instance) SetAxisStretchVertical(value gdclass.StyleBoxTextureAxisStretchMode)
- func (self Instance) SetDrawCenter(value bool)
- func (self Instance) SetExpandMarginAll(size Float.X)
- func (self Instance) SetExpandMarginBottom(value Float.X)
- func (self Instance) SetExpandMarginLeft(value Float.X)
- func (self Instance) SetExpandMarginRight(value Float.X)
- func (self Instance) SetExpandMarginTop(value Float.X)
- func (self Instance) SetModulateColor(value Color.RGBA)
- func (self Instance) SetRegionRect(value Rect2.PositionSize)
- func (self Instance) SetTexture(value [1]gdclass.Texture2D)
- func (self Instance) SetTextureMarginAll(size Float.X)
- func (self Instance) SetTextureMarginBottom(value Float.X)
- func (self Instance) SetTextureMarginLeft(value Float.X)
- func (self Instance) SetTextureMarginRight(value Float.X)
- func (self Instance) SetTextureMarginTop(value Float.X)
- func (self Instance) Texture() [1]gdclass.Texture2D
- func (self Instance) TextureMarginBottom() Float.X
- func (self Instance) TextureMarginLeft() Float.X
- func (self Instance) TextureMarginRight() Float.X
- func (self Instance) TextureMarginTop() Float.X
- 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 AxisStretchMode ¶
type AxisStretchMode = gdclass.StyleBoxTextureAxisStretchMode //gd:StyleBoxTexture.AxisStretchMode
const ( /*Stretch the stylebox's texture. This results in visible distortion unless the texture size matches the stylebox's size perfectly.*/ AxisStretchModeStretch AxisStretchMode = 0 /*Repeats the stylebox's texture to match the stylebox's size according to the nine-patch system.*/ AxisStretchModeTile AxisStretchMode = 1 /*Repeats the stylebox's texture to match the stylebox's size according to the nine-patch system. Unlike [constant AXIS_STRETCH_MODE_TILE], the texture may be slightly stretched to make the nine-patch texture tile seamlessly.*/ AxisStretchModeTileFit AxisStretchMode = 2 )
type Instance ¶
type Instance [1]gdclass.StyleBoxTexture
A texture-based nine-patch [StyleBox], in a way similar to [NinePatchRect]. This stylebox performs a 3×3 scaling of a texture, where only the center cell is fully stretched. This makes it possible to design bordered styles regardless of the stylebox's size.
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) AsStyleBoxTexture ¶
func (Instance) AxisStretchHorizontal ¶
func (self Instance) AxisStretchHorizontal() gdclass.StyleBoxTextureAxisStretchMode
func (Instance) AxisStretchVertical ¶
func (self Instance) AxisStretchVertical() gdclass.StyleBoxTextureAxisStretchMode
func (Instance) DrawCenter ¶
func (Instance) ExpandMarginBottom ¶
func (Instance) ExpandMarginLeft ¶
func (Instance) ExpandMarginRight ¶
func (Instance) ExpandMarginTop ¶
func (Instance) ModulateColor ¶
func (Instance) RegionRect ¶
func (self Instance) RegionRect() Rect2.PositionSize
func (Instance) SetAxisStretchHorizontal ¶
func (self Instance) SetAxisStretchHorizontal(value gdclass.StyleBoxTextureAxisStretchMode)
func (Instance) SetAxisStretchVertical ¶
func (self Instance) SetAxisStretchVertical(value gdclass.StyleBoxTextureAxisStretchMode)
func (Instance) SetDrawCenter ¶
func (Instance) SetExpandMarginAll ¶
Sets the expand margin to [param size] pixels for all sides.
func (Instance) SetExpandMarginBottom ¶
func (Instance) SetExpandMarginLeft ¶
func (Instance) SetExpandMarginRight ¶
func (Instance) SetExpandMarginTop ¶
func (Instance) SetModulateColor ¶
func (Instance) SetRegionRect ¶
func (self Instance) SetRegionRect(value Rect2.PositionSize)
func (Instance) SetTexture ¶
func (Instance) SetTextureMarginAll ¶
Sets the margin to [param size] pixels for all sides.
func (Instance) SetTextureMarginBottom ¶
func (Instance) SetTextureMarginLeft ¶
func (Instance) SetTextureMarginRight ¶
func (Instance) SetTextureMarginTop ¶
func (Instance) TextureMarginBottom ¶
func (Instance) TextureMarginLeft ¶
func (Instance) TextureMarginRight ¶
func (Instance) TextureMarginTop ¶
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 )