diff options
Diffstat (limited to 'scene/gui/texture_progress.h')
-rw-r--r-- | scene/gui/texture_progress.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/gui/texture_progress.h b/scene/gui/texture_progress.h index 3c018febf3..20546bd11f 100644 --- a/scene/gui/texture_progress.h +++ b/scene/gui/texture_progress.h @@ -75,6 +75,12 @@ public: void set_over_texture(const Ref<Texture> &p_texture); Ref<Texture> get_over_texture() const; + void set_stretch_margin(Margin p_margin, int p_size); + int get_stretch_margin(Margin p_margin) const; + + void set_nine_patch_stretch(bool p_stretch); + bool get_nine_patch_stretch() const; + Size2 get_minimum_size() const; TextureProgress(); @@ -84,9 +90,12 @@ private: float rad_init_angle; float rad_max_degrees; Point2 rad_center_off; + bool nine_patch_stretch; + int stretch_margin[4]; Point2 unit_val_to_uv(float val); Point2 get_relative_center(); + void draw_nine_patch_stretched(const Ref<Texture> &p_texture, FillMode p_mode, double p_ratio); }; VARIANT_ENUM_CAST(TextureProgress::FillMode); |