diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-19 18:48:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-19 18:48:34 -0300 |
commit | 2b12a8109dda1f47f9b75a5de91d7d00c1f25869 (patch) | |
tree | 3f3775c304e76ea2776d336c9a471d99359872c0 /scene/gui/texture_progress.h | |
parent | 5d86a25f4d04b21559f0d4edbd4e70dc01ea6685 (diff) | |
parent | 0a02c28b2be8e8271d5f3ffb95a4b09f91c3bd32 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'scene/gui/texture_progress.h')
-rw-r--r-- | scene/gui/texture_progress.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scene/gui/texture_progress.h b/scene/gui/texture_progress.h index d97ebf27f5..7187fd5f07 100644 --- a/scene/gui/texture_progress.h +++ b/scene/gui/texture_progress.h @@ -45,6 +45,27 @@ 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_fill_degrees(float p_angle); + float get_fill_degrees(); + + 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 +78,16 @@ public: Size2 get_minimum_size() const; TextureProgress(); + +private: + + FillMode mode; + float rad_init_angle; + float rad_max_degrees; + Point2 rad_center_off; + + Point2 unit_val_to_uv(float val); + Point2 get_relative_center(); }; #endif // TEXTURE_PROGRESS_H |