Skip to content

Latest commit

 

History

History
128 lines (70 loc) · 4.24 KB

class_styleboxtexture.rst

File metadata and controls

128 lines (70 loc) · 4.24 KB

StyleBoxTexture

Inherits: StyleBox<class_stylebox> < Resource<class_resource> < Reference<class_reference> < Object<class_object>

Category: Core

Brief Description

Texture Based 3x3 scale style.

Member Functions

void set_expand_margin_all<class_StyleBoxTexture_set_expand_margin_all> ( float<class_float> size )
void set_expand_margin_individual<class_StyleBoxTexture_set_expand_margin_individual> ( float<class_float> size_left, float<class_float> size_top, float<class_float> size_right, float<class_float> size_bottom )

Signals

  • texture_changed ( )

Member Variables

  • AxisStretchMode<enum_styleboxtexture_axisstretchmode> axis_stretch_horizontal
  • AxisStretchMode<enum_styleboxtexture_axisstretchmode> axis_stretch_vertical
  • bool<class_bool> draw_center
  • float<class_float> expand_margin_bottom
  • float<class_float> expand_margin_left
  • float<class_float> expand_margin_right
  • float<class_float> expand_margin_top
  • float<class_float> margin_bottom
  • float<class_float> margin_left
  • float<class_float> margin_right
  • float<class_float> margin_top
  • Color<class_color> modulate_color
  • Resource<class_resource> normal_map
  • Rect2<class_rect2> region_rect
  • Resource<class_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.

Member Function Description

  • void set_expand_margin_all ( float<class_float> size )
  • void set_expand_margin_individual ( float<class_float> size_left, float<class_float> size_top, float<class_float> size_right, float<class_float> size_bottom )