Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
StyleBoxTexture¶
Inherits: StyleBox < Resource < RefCounted < Object
A texture-based nine-patch StyleBox.
Description¶
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.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_expand_margin ( Side margin ) const |
|
get_texture_margin ( Side margin ) const |
|
void |
set_expand_margin ( Side margin, float size ) |
void |
set_expand_margin_all ( float size ) |
void |
set_texture_margin ( Side margin, float size ) |
void |
set_texture_margin_all ( float size ) |
Enumerations¶
enum AxisStretchMode:
AxisStretchMode AXIS_STRETCH_MODE_STRETCH = 0
Stretch the stylebox's texture. This results in visible distortion unless the texture size matches the stylebox's size perfectly.
AxisStretchMode AXIS_STRETCH_MODE_TILE = 1
Repeats the stylebox's texture to match the stylebox's size acco