StyleBoxTexture¶
Inherits: StyleBox < Resource < Reference < Object
Category: Core
Brief Description¶
Texture Based 3x3 scale style.
Member Functions¶
void | set_expand_margin_all ( float size ) |
void | set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom ) |
Signals¶
- texture_changed ( )
Member Variables¶
- AxisStretchMode axis_stretch_horizontal
- AxisStretchMode axis_stretch_vertical
- bool draw_center
- float expand_margin_bottom
- float expand_margin_left
- float expand_margin_right
- float expand_margin_top
- float margin_bottom
- float margin_left
- float margin_right
- float margin_top
- Color modulate_color
- Resource normal_map
- Rect2 region_rect
- Resource texture
Enums¶
enum AxisStretchMode
- AXIS_STRETCH_MODE_STRETCH = 0
- AXIS_STRETCH_MODE_TILE = 1
- AXIS_STRETCH_MODE_TILE_FIT = 2
Description¶
Texture Based 3x3 scale style. This stylebox performs a 3x3 scaling of a texture, where only the center cell is fully stretched. This allows for the easy creation of bordered styles.