StyleBoxTexture
Inherits: StyleBox < Resource < Reference < Object
Category: Core
Brief Description
Texture Based 3x3 scale style.
Member Functions
bool | get_draw_center ( ) const |
float | get_expand_margin_size ( int margin ) const |
float | get_margin_size ( int margin ) const |
Rect2 | get_region_rect ( ) const |
Texture | get_texture ( ) const |
void | set_draw_center ( bool enable ) |
void | set_expand_margin_size ( int margin, float size ) |
void | set_margin_size ( int margin, float size ) |
void | set_region_rect ( Rect2 region ) |
void | set_texture ( Texture texture ) |
Signals
- texture_changed ( )
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
bool get_draw_center ( ) const
float get_expand_margin_size ( int margin ) const
float get_margin_size ( int margin ) const
Rect2 get_region_rect ( ) const
Texture get_texture ( ) const
void set_draw_center ( bool enable )
void set_expand_margin_size ( int margin, float size )
void set_margin_size ( int margin, float size )
void set_region_rect ( Rect2 region )
void set_texture ( Texture texture )
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_styleboxtexture.html