diff options
| author | MarianoGNU | 2015-10-17 23:37:39 -0300 |
|---|---|---|
| committer | MarianoGNU | 2015-10-17 23:37:39 -0300 |
| commit | 68fb30aaea0acf3ff279831d2d77b2e7129e4b69 (patch) | |
| tree | 1a8e7b686e1edcbae3cf895ff7abb592cb943df0 /scene/gui/texture_progress.h | |
| parent | 25324aa5061b07df6da877e94c8c23fbe7f34f6e (diff) | |
| download | godot-68fb30aaea0acf3ff279831d2d77b2e7129e4b69.tar.gz godot-68fb30aaea0acf3ff279831d2d77b2e7129e4b69.tar.zst godot-68fb30aaea0acf3ff279831d2d77b2e7129e4b69.zip | |
Diffstat (limited to 'scene/gui/texture_progress.h')
| -rw-r--r-- | scene/gui/texture_progress.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scene/gui/texture_progress.h b/scene/gui/texture_progress.h index d97ebf27f..eeb5b9623 100644 --- a/scene/gui/texture_progress.h +++ b/scene/gui/texture_progress.h @@ -45,6 +45,24 @@ protected: void _notification(int p_what); public: + enum FillMode { + FILL_LEFT_TO_RIGHT=0, + FILL_RIGHT_TO_LEFT, + FILL_TOP_TO_BOTTOM, + FILL_BOTTOM_TO_TOP, + FILL_CLOCKWISE, + FILL_COUNTER_CLOCKWISE + }; + + void set_fill_mode(int p_fill); + int get_fill_mode(); + + void set_radial_initial_angle(float p_angle); + float get_radial_initial_angle(); + + void set_radial_center_offset(const Point2 &p_off); + Point2 get_radial_center_offset(); + void set_under_texture(const Ref<Texture>& p_texture); Ref<Texture> get_under_texture() const; @@ -57,6 +75,15 @@ public: Size2 get_minimum_size() const; TextureProgress(); + +private: + + FillMode mode; + float rad_init_angle; + Point2 rad_center_off; + + Point2 unit_val_to_uv(float val); + Point2 get_relative_center(); }; #endif // TEXTURE_PROGRESS_H |
