StyleBoxTexture

Inherits: StyleBox < Resource < Reference < Object

Category: Core

Brief Description

Texture Based 3x3 scale style.

Member Functions

float get_expand_margin_size ( int margin ) const
int get_h_axis_stretch_mode ( ) const
float get_margin_size ( int margin ) const
Color get_modulate ( ) const
Resource get_normal_map ( ) const
Rect2 get_region_rect ( ) const
Resource get_texture ( ) const
int get_v_axis_stretch_mode ( ) const
bool is_draw_center_enabled ( ) const
void set_draw_center ( bool enable )
void set_expand_margin_all ( float size )
void set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )
void set_expand_margin_size ( int margin, float size )
void set_h_axis_stretch_mode ( int mode )
void set_margin_size ( int margin, float size )
void set_modulate ( Color color )
void set_normal_map ( Resource normal_map )
void set_region_rect ( Rect2 region )
void set_texture ( Resource texture )
void set_v_axis_stretch_mode ( int mode )

Signals

  • texture_changed ( )

Member Variables

Numeric Constants

  • 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

  • float get_expand_margin_size ( int margin ) const
  • int get_h_axis_stretch_mode ( ) const
  • float get_margin_size ( int margin ) const
  • Color get_modulate ( ) const
  • Rect2 get_region_rect ( ) const
  • int get_v_axis_stretch_mode ( ) const
  • bool is_draw_center_enabled ( ) const
  • void set_draw_center ( bool enable )
  • void set_expand_margin_all ( float size )
  • void set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )
  • void set_expand_margin_size ( int margin, float size )
  • void set_h_axis_stretch_mode ( int mode )
  • void set_margin_size ( int margin, float size )
  • void set_modulate ( Color color )
  • void set_normal_map ( Resource normal_map )
  • void set_region_rect ( Rect2 region )
  • void set_v_axis_stretch_mode ( int mode )