StyleBoxTexture

Inherits: StyleBox < Resource < Reference < Object

Category: Core

Brief Description

Texture Based 3x3 scale style.

Properties

AxisStretchModeaxis_stretch_horizontal
AxisStretchModeaxis_stretch_vertical
booldraw_center
floatexpand_margin_bottom
floatexpand_margin_left
floatexpand_margin_right
floatexpand_margin_top
floatmargin_bottom
floatmargin_left
floatmargin_right
floatmargin_top
Colormodulate_color
Texturenormal_map
Rect2region_rect
Texturetexture

Methods

voidset_expand_margin_all ( float size )
voidset_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )

Signals

  • texture_changed ( )

Enumerations

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.

Property Descriptions

Setterset_h_axis_stretch_mode(value)
Getterget_h_axis_stretch_mode()

Setterset_v_axis_stretch_mode(value)
Getterget_v_axis_stretch_mode()

Setterset_draw_center(value)
Getteris_draw_center_enabled()

  • float expand_margin_bottom
Setterset_expand_margin_size(value)
Getterget_expand_margin_size()

Expands the bottom margin of this style box when drawing, causing it be drawn larger than requested.


  • float expand_margin_left
Setterset_expand_margin_size(value)
Getterget_expand_margin_size()

Expands the left margin of this style box when drawing, causing it be drawn larger than requested.


  • float expand_margin_right
Setterset_expand_margin_size(value)
Getterget_expand_margin_size()

Expands the right margin of this style box when drawing, causing it be drawn larger than requested.


Setterset_expand_margin_size(value)
Getterget_expand_margin_size()

Expands the top margin of this style box when drawing, causing it be drawn larger than requested.


Setterset_margin_size(value)
Getterget_margin_size()

Increases the bottom margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the bottom border of the 3x3 box.

This is also the value used as fallback for StyleBox.content_margin_bottom if it is negative.


Setterset_margin_size(value)
Getterget_margin_size()

Increases the left margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the left border of the 3x3 box.

This is also the value used as fallback for StyleBox.content_margin_left if it is negative.


Setterset_margin_size(value)
Getterget_margin_size()

Increases the right margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the right border of the 3x3 box.

This is also the value used as fallback for StyleBox.content_margin_right if it is negative.


Setterset_margin_size(value)
Getterget_margin_size()

Increases the top margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the top border of the 3x3 box.

This is also the value used as fallback for StyleBox.content_margin_top if it is negative.


Setterset_modulate(value)
Getterget_modulate()

Modulates the color of the texture when this style box is drawn.


Setterset_normal_map(value)
Getterget_normal_map()

The normal map to use when drawing this style box.


Setterset_region_rect(value)
Getterget_region_rect()

Species a sub region of the texture to use.

This is equivalent to first wrapping the texture in an AtlasTexture with the same region.


Setterset_texture(value)
Getterget_texture()

The texture to use when drawing this style box.

Method Descriptions

  • void set_expand_margin_all ( float size )

  • void set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )