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¶
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
- 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_region_rect ( Rect2 rect )
- void set_texture ( Texture texture )
- void set_v_axis_stretch_mode ( int mode )