NinePatchRect

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Member Functions

int get_h_axis_stretch_mode ( ) const
int get_patch_margin ( int margin ) const
Rect2 get_region_rect ( ) const
Texture get_texture ( ) const
int get_v_axis_stretch_mode ( ) const
bool is_draw_center_enabled ( ) const
void set_draw_center ( bool draw_center )
void set_h_axis_stretch_mode ( int mode )
void set_patch_margin ( int margin, int value )
void set_region_rect ( Rect2 rect )
void set_texture ( Texture texture )
void set_v_axis_stretch_mode ( int mode )

Signals

  • texture_changed ( )

Member Variables

  • int axis_stretch_horizontal
  • int axis_stretch_vertical
  • bool draw_center
  • int patch_margin_bottom
  • int patch_margin_left
  • int patch_margin_right
  • int patch_margin_top
  • Rect2 region_rect
  • Texture texture

Numeric Constants

  • AXIS_STRETCH_MODE_STRETCH = 0
  • AXIS_STRETCH_MODE_TILE = 1
  • AXIS_STRETCH_MODE_TILE_FIT = 2

Member Function Description

  • int get_h_axis_stretch_mode ( ) const
  • int get_patch_margin ( int margin ) const
  • Rect2 get_region_rect ( ) const
  • int get_v_axis_stretch_mode ( ) const
  • bool is_draw_center_enabled ( ) const
  • void set_draw_center ( bool draw_center )
  • void set_h_axis_stretch_mode ( int mode )
  • void set_patch_margin ( int margin, int value )
  • void set_region_rect ( Rect2 rect )
  • void set_texture ( Texture texture )
  • void set_v_axis_stretch_mode ( int mode )