summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 17:55:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 17:55:41 +0300
commit0bcc82648c49db05980e879a13baba2c76264bd4 (patch)
treeacca283e6a63dabc01ffb476c44d444dc18537e8 /src/gui/widgets/progressbar.h
parent828ee982227fc8b4a426a64d3d5f01a7cd4c99a5 (diff)
downloadplus-0bcc82648c49db05980e879a13baba2c76264bd4.tar.gz
plus-0bcc82648c49db05980e879a13baba2c76264bd4.tar.bz2
plus-0bcc82648c49db05980e879a13baba2c76264bd4.tar.xz
plus-0bcc82648c49db05980e879a13baba2c76264bd4.zip
Add safeDraw method into progressbar.
Diffstat (limited to 'src/gui/widgets/progressbar.h')
-rw-r--r--src/gui/widgets/progressbar.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h
index 2a379a998..053710ae8 100644
--- a/src/gui/widgets/progressbar.h
+++ b/src/gui/widgets/progressbar.h
@@ -73,6 +73,8 @@ class ProgressBar final : public Widget,
*/
void draw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final;
+
/**
* Sets the current progress.
*/
@@ -127,11 +129,6 @@ class ProgressBar final : public Widget,
void setSmoothColorChange(bool smoothColorChange)
{ mSmoothColorChange = smoothColorChange; }
- /**
- * Renders a progressbar with the given properties.
- */
- void render(Graphics *graphics);
-
void widgetResized(const Event &event) override final;
void widgetMoved(const Event &event) override final;