Documentation ¶
Overview ¶
Package StyleBoxFlat provides methods for working with StyleBoxFlat object instances.
Index ¶
- type Advanced
- type Any
- type Corner
- type Instance
- func (self Instance) AntiAliasing() bool
- func (self Instance) AntiAliasingSize() Float.X
- 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) AsStyleBoxFlat() Instance
- func (self Instance) BgColor() Color.RGBA
- func (self Instance) BorderBlend() bool
- func (self Instance) BorderColor() Color.RGBA
- func (self Instance) BorderWidthBottom() int
- func (self Instance) BorderWidthLeft() int
- func (self Instance) BorderWidthRight() int
- func (self Instance) BorderWidthTop() int
- func (self Instance) CornerDetail() int
- func (self Instance) CornerRadiusBottomLeft() int
- func (self Instance) CornerRadiusBottomRight() int
- func (self Instance) CornerRadiusTopLeft() int
- func (self Instance) CornerRadiusTopRight() int
- 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) GetBorderWidthMin() int
- func (self Instance) SetAntiAliasing(value bool)
- func (self Instance) SetAntiAliasingSize(value Float.X)
- func (self Instance) SetBgColor(value Color.RGBA)
- func (self Instance) SetBorderBlend(value bool)
- func (self Instance) SetBorderColor(value Color.RGBA)
- func (self Instance) SetBorderWidthAll(width int)
- func (self Instance) SetBorderWidthBottom(value int)
- func (self Instance) SetBorderWidthLeft(value int)
- func (self Instance) SetBorderWidthRight(value int)
- func (self Instance) SetBorderWidthTop(value int)
- func (self Instance) SetCornerDetail(value int)
- func (self Instance) SetCornerRadiusAll(radius int)
- func (self Instance) SetCornerRadiusBottomLeft(value int)
- func (self Instance) SetCornerRadiusBottomRight(value int)
- func (self Instance) SetCornerRadiusTopLeft(value int)
- func (self Instance) SetCornerRadiusTopRight(value int)
- 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) SetShadowColor(value Color.RGBA)
- func (self Instance) SetShadowOffset(value Vector2.XY)
- func (self Instance) SetShadowSize(value int)
- func (self Instance) SetSkew(value Vector2.XY)
- func (self Instance) ShadowColor() Color.RGBA
- func (self Instance) ShadowOffset() Vector2.XY
- func (self Instance) ShadowSize() int
- func (self Instance) Skew() Vector2.XY
- 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 Instance ¶
type Instance [1]gdclass.StyleBoxFlat
By configuring various properties of this style box, you can achieve many common looks without the need of a texture. This includes optionally rounded borders, antialiasing, shadows, and skew. Setting corner radius to high values is allowed. As soon as corners overlap, the stylebox will switch to a relative system. [b]Example:[/b] [codeblock lang=text] height = 30 corner_radius_top_left = 50 corner_radius_bottom_left = 100 [/codeblock] The relative system now would take the 1:2 ratio of the two left corners to calculate the actual corner width. Both corners added will [b]never[/b] be more than the height. Result: [codeblock lang=text] corner_radius_top_left: 10 corner_radius_bottom_left: 20 [/codeblock]
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AntiAliasing ¶
func (Instance) AntiAliasingSize ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsStyleBox ¶
func (Instance) AsStyleBoxFlat ¶
func (Instance) BorderBlend ¶
func (Instance) BorderColor ¶
func (Instance) BorderWidthBottom ¶
func (Instance) BorderWidthLeft ¶
func (Instance) BorderWidthRight ¶
func (Instance) BorderWidthTop ¶
func (Instance) CornerDetail ¶
func (Instance) CornerRadiusBottomLeft ¶
func (Instance) CornerRadiusBottomRight ¶
func (Instance) CornerRadiusTopLeft ¶
func (Instance) CornerRadiusTopRight ¶
func (Instance) DrawCenter ¶
func (Instance) ExpandMarginBottom ¶
func (Instance) ExpandMarginLeft ¶
func (Instance) ExpandMarginRight ¶
func (Instance) ExpandMarginTop ¶
func (Instance) GetBorderWidthMin ¶
Returns the smallest border width out of all four borders.
func (Instance) SetAntiAliasing ¶
func (Instance) SetAntiAliasingSize ¶
func (Instance) SetBgColor ¶
func (Instance) SetBorderBlend ¶
func (Instance) SetBorderColor ¶
func (Instance) SetBorderWidthAll ¶
Sets the border width to [param width] pixels for all sides.
func (Instance) SetBorderWidthBottom ¶
func (Instance) SetBorderWidthLeft ¶
func (Instance) SetBorderWidthRight ¶
func (Instance) SetBorderWidthTop ¶
func (Instance) SetCornerDetail ¶
func (Instance) SetCornerRadiusAll ¶
Sets the corner radius to [param radius] pixels for all corners.
func (Instance) SetCornerRadiusBottomLeft ¶
func (Instance) SetCornerRadiusBottomRight ¶
func (Instance) SetCornerRadiusTopLeft ¶
func (Instance) SetCornerRadiusTopRight ¶
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) SetShadowColor ¶
func (Instance) SetShadowOffset ¶
func (Instance) SetShadowSize ¶
func (Instance) ShadowColor ¶
func (Instance) ShadowOffset ¶
func (Instance) ShadowSize ¶
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 )