TextureProgress¶
Inherits: Range < Control < CanvasItem < Node < Object
Category: Core
Brief Description¶
Textured progress bar implementation.
Member Functions¶
float | get_fill_degrees ( ) |
int | get_fill_mode ( ) |
bool | get_nine_patch_stretch ( ) const |
Texture | get_over_texture ( ) const |
Texture | get_progress_texture ( ) const |
Vector2 | get_radial_center_offset ( ) |
float | get_radial_initial_angle ( ) |
int | get_stretch_margin ( int margin ) const |
Texture | get_under_texture ( ) const |
void | set_fill_degrees ( float mode ) |
void | set_fill_mode ( int mode ) |
void | set_nine_patch_stretch ( bool stretch ) |
void | set_over_texture ( Texture tex ) |
void | set_progress_texture ( Texture tex ) |
void | set_radial_center_offset ( Vector2 mode ) |
void | set_radial_initial_angle ( float mode ) |
void | set_stretch_margin ( int margin, int value ) |
void | set_under_texture ( Texture tex ) |
Member Variables¶
Numeric Constants¶
- FILL_LEFT_TO_RIGHT = 0
- FILL_RIGHT_TO_LEFT = 1
- FILL_TOP_TO_BOTTOM = 2
- FILL_BOTTOM_TO_TOP = 3
- FILL_CLOCKWISE = 4
- FILL_COUNTER_CLOCKWISE = 5
Description¶
ProgressBar implementation that is easier to theme (by just passing a few textures).
Member Function Description¶
- float get_fill_degrees ( )
- int get_fill_mode ( )
- bool get_nine_patch_stretch ( ) const
Returns true if textures are stretched as nine-patches or false otherwise.
- Texture get_over_texture ( ) const
- Texture get_progress_texture ( ) const
- Vector2 get_radial_center_offset ( )
- float get_radial_initial_angle ( )
Return nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).
- Texture get_under_texture ( ) const
- void set_fill_degrees ( float mode )
- void set_fill_mode ( int mode )
- void set_nine_patch_stretch ( bool stretch )
Set if textures should be stretched as nine-patches.
- void set_over_texture ( Texture tex )
- void set_progress_texture ( Texture tex )
- void set_radial_center_offset ( Vector2 mode )
- void set_radial_initial_angle ( float mode )
Set nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).
- void set_under_texture ( Texture tex )