summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
commit5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch)
treed36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/progressbar.h
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadplus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz
plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/progressbar.h')
-rw-r--r--src/gui/widgets/progressbar.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h
index 603df6157..5a188c0d0 100644
--- a/src/gui/widgets/progressbar.h
+++ b/src/gui/widgets/progressbar.h
@@ -45,8 +45,8 @@ class ProgressBar : public gcn::Widget, public gcn::WidgetListener
* Constructor, initializes the progress with the given value.
*/
ProgressBar(float progress = 0.0f,
- int width = 40, int height = 7,
- int color = -1);
+ const int width = 40, const int height = 7,
+ const int color = -1);
~ProgressBar();
@@ -68,7 +68,7 @@ class ProgressBar : public gcn::Widget, public gcn::WidgetListener
/**
* Sets the current progress.
*/
- void setProgress(float progress);
+ void setProgress(const float progress);
/**
* Returns the current progress.
@@ -80,7 +80,7 @@ class ProgressBar : public gcn::Widget, public gcn::WidgetListener
* Change the ProgressPalette for this ProgressBar to follow or -1 to
* disable this and manage color manually.
*/
- void setProgressPalette(int progressPalette);
+ void setProgressPalette(const int progressPalette);
/**
* Change the color of the progress bar.
@@ -121,15 +121,15 @@ class ProgressBar : public gcn::Widget, public gcn::WidgetListener
* Renders a progressbar with the given properties.
*/
static void render(Graphics *graphics, const gcn::Rectangle &area,
- const gcn::Color &color, float progress,
+ const gcn::Color &color, const float progress,
const std::string &text,
- GraphicsVertexes *vert, bool *redraw);
+ GraphicsVertexes *const vert, bool *const redraw);
/**
* Renders a progressbar with the given properties.
*/
static void render(Graphics *graphics, const gcn::Rectangle &area,
- const gcn::Color &color, float progress,
+ const gcn::Color &color, const float progress,
const std::string &text = "");
void widgetResized(const gcn::Event &event);