summaryrefslogtreecommitdiff
path: root/src/guichan/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/include')
-rw-r--r--src/guichan/include/guichan/cliprectangle.hpp12
-rw-r--r--src/guichan/include/guichan/color.hpp6
-rw-r--r--src/guichan/include/guichan/event.hpp2
-rw-r--r--src/guichan/include/guichan/exception.hpp2
-rw-r--r--src/guichan/include/guichan/inputevent.hpp10
-rw-r--r--src/guichan/include/guichan/key.hpp2
-rw-r--r--src/guichan/include/guichan/keyevent.hpp14
-rw-r--r--src/guichan/include/guichan/mouseevent.hpp20
-rw-r--r--src/guichan/include/guichan/mouseinput.hpp10
-rw-r--r--src/guichan/include/guichan/rectangle.hpp2
-rw-r--r--src/guichan/include/guichan/sdl/sdlimage.hpp2
-rw-r--r--src/guichan/include/guichan/selectionevent.hpp2
-rw-r--r--src/guichan/include/guichan/widgets/dropdown.hpp6
-rw-r--r--src/guichan/include/guichan/widgets/icon.hpp2
-rw-r--r--src/guichan/include/guichan/widgets/scrollarea.hpp2
-rw-r--r--src/guichan/include/guichan/widgets/slider.hpp4
16 files changed, 49 insertions, 49 deletions
diff --git a/src/guichan/include/guichan/cliprectangle.hpp b/src/guichan/include/guichan/cliprectangle.hpp
index ea44ac680..886153549 100644
--- a/src/guichan/include/guichan/cliprectangle.hpp
+++ b/src/guichan/include/guichan/cliprectangle.hpp
@@ -79,12 +79,12 @@ namespace gcn
* calculating the actual screen coordinate from
* the relative screen coordinate.
*/
- ClipRectangle(int x0,
- int y0,
- int width0,
- int height0,
- int xOffset0,
- int yOffset0);
+ ClipRectangle(const int x0,
+ const int y0,
+ const int width0,
+ const int height0,
+ const int xOffset0,
+ const int yOffset0);
/**
* Copy constructor. Copies x, y, width and height
diff --git a/src/guichan/include/guichan/color.hpp b/src/guichan/include/guichan/color.hpp
index 6f0cfc1ff..795cdc12d 100644
--- a/src/guichan/include/guichan/color.hpp
+++ b/src/guichan/include/guichan/color.hpp
@@ -75,7 +75,7 @@ namespace gcn
*
* @param color The color to initialise the object with.
*/
- Color(int color);
+ Color(const int color);
/**
* Constructor. The default alpha value is 255.
@@ -86,7 +86,7 @@ namespace gcn
* @param a Alpha, used for transparency. A value of 0 means
* totaly transparent, 255 is totaly opaque.
*/
- Color(int r, int g, int b, int a = 255);
+ Color(const int r, const int g, const int b, const int a = 255);
/**
* Adds the RGB values of two colors together. The values will be
@@ -121,7 +121,7 @@ namespace gcn
* the add and subtract operations, be multiplied as
* well.
*/
- Color operator*(float value) const;
+ Color operator*(const float value) const;
/**
* Compares two colors.
diff --git a/src/guichan/include/guichan/event.hpp b/src/guichan/include/guichan/event.hpp
index 3a4ad26e2..1b52df8ed 100644
--- a/src/guichan/include/guichan/event.hpp
+++ b/src/guichan/include/guichan/event.hpp
@@ -67,7 +67,7 @@ namespace gcn
*
* @param source The source widget of the event.
*/
- Event(Widget* source);
+ Event(Widget *const source);
/**
* Destructor.
diff --git a/src/guichan/include/guichan/exception.hpp b/src/guichan/include/guichan/exception.hpp
index 1b591f2d6..e2dd958be 100644
--- a/src/guichan/include/guichan/exception.hpp
+++ b/src/guichan/include/guichan/exception.hpp
@@ -115,7 +115,7 @@ namespace gcn
Exception(const std::string& message,
const std::string& function,
const std::string& filename,
- unsigned int line);
+ const unsigned int line);
/**
* Gets the function name where the exception occured.
diff --git a/src/guichan/include/guichan/inputevent.hpp b/src/guichan/include/guichan/inputevent.hpp
index 1de9d1832..296f14cd2 100644
--- a/src/guichan/include/guichan/inputevent.hpp
+++ b/src/guichan/include/guichan/inputevent.hpp
@@ -69,11 +69,11 @@ namespace gcn
* @param isAltPressed True if alt is pressed, false otherwise.
* @param isMetaPressed True if meta is pressed, false otherwise.
*/
- InputEvent(Widget* source,
- bool shiftPressed,
- bool controlPressed,
- bool altPressed,
- bool metaPressed);
+ InputEvent(Widget *const source,
+ const bool shiftPressed,
+ const bool controlPressed,
+ const bool altPressed,
+ const bool metaPressed);
/**
* Checks if shift is pressed.
diff --git a/src/guichan/include/guichan/key.hpp b/src/guichan/include/guichan/key.hpp
index b852638b3..9b31d7c6b 100644
--- a/src/guichan/include/guichan/key.hpp
+++ b/src/guichan/include/guichan/key.hpp
@@ -68,7 +68,7 @@ namespace gcn
*
* @param value The ascii or enum value for the key.
*/
- Key(int value = 0);
+ Key(const int value = 0);
/**
* Checks if a key is a character.
diff --git a/src/guichan/include/guichan/keyevent.hpp b/src/guichan/include/guichan/keyevent.hpp
index e841f4a62..5cf1d26c7 100644
--- a/src/guichan/include/guichan/keyevent.hpp
+++ b/src/guichan/include/guichan/keyevent.hpp
@@ -81,13 +81,13 @@ namespace gcn
* false otherwise.
* @param key The key of the event.
*/
- KeyEvent(Widget* source,
- bool shiftPressed,
- bool controlPressed,
- bool altPressed,
- bool metaPressed,
- unsigned int type,
- bool numericPad,
+ KeyEvent(Widget *const source,
+ const bool shiftPressed,
+ const bool controlPressed,
+ const bool altPressed,
+ const bool metaPressed,
+ const unsigned int type,
+ const bool numericPad,
const Key& key);
/**
diff --git a/src/guichan/include/guichan/mouseevent.hpp b/src/guichan/include/guichan/mouseevent.hpp
index 5b012dc20..ba2200d8d 100644
--- a/src/guichan/include/guichan/mouseevent.hpp
+++ b/src/guichan/include/guichan/mouseevent.hpp
@@ -78,16 +78,16 @@ namespace gcn
* @param clickCount The number of clicks generated with the same button.
* It's set to zero if another button is used.
*/
- MouseEvent(Widget* source,
- bool shiftPressed,
- bool controlPressed,
- bool altPressed,
- bool metaPressed,
- unsigned int type,
- unsigned int button,
- int x,
- int y,
- int clickCount);
+ MouseEvent(Widget *const source,
+ const bool shiftPressed,
+ const bool controlPressed,
+ const bool altPressed,
+ const bool metaPressed,
+ const unsigned int type,
+ const unsigned int button,
+ const int x,
+ const int y,
+ const int clickCount);
/**
* Gets the button of the mouse event.
diff --git a/src/guichan/include/guichan/mouseinput.hpp b/src/guichan/include/guichan/mouseinput.hpp
index 35952fde5..99ed1fad8 100644
--- a/src/guichan/include/guichan/mouseinput.hpp
+++ b/src/guichan/include/guichan/mouseinput.hpp
@@ -84,11 +84,11 @@ namespace gcn
* @param timeStamp The timestamp of the mouse input. Used to
* check for double clicks.
*/
- MouseInput(unsigned int button,
- unsigned int type,
- int x,
- int y,
- int timeStamp);
+ MouseInput(const unsigned int button,
+ const unsigned int type,
+ const int x,
+ const int y,
+ const int timeStamp);
/**
* Sets the type of the mouse input.
diff --git a/src/guichan/include/guichan/rectangle.hpp b/src/guichan/include/guichan/rectangle.hpp
index 013fe9b69..a4de652a4 100644
--- a/src/guichan/include/guichan/rectangle.hpp
+++ b/src/guichan/include/guichan/rectangle.hpp
@@ -75,7 +75,7 @@ namespace gcn
* @param height The height of the rectangle.
* @since 0.1.0
*/
- Rectangle(int x, int y, int width, int height);
+ Rectangle(const int x, const int y, const int width, const int height);
/**
* Sets the dimension of a rectangle.
diff --git a/src/guichan/include/guichan/sdl/sdlimage.hpp b/src/guichan/include/guichan/sdl/sdlimage.hpp
index cd4285346..52fb9976b 100644
--- a/src/guichan/include/guichan/sdl/sdlimage.hpp
+++ b/src/guichan/include/guichan/sdl/sdlimage.hpp
@@ -70,7 +70,7 @@ namespace gcn
* @param surface the surface from which to load.
* @param autoFree true if the surface should automatically be deleted.
*/
- SDLImage(SDL_Surface* surface, bool autoFree);
+ SDLImage(SDL_Surface *const surface, const bool autoFree);
/**
* Destructor.
diff --git a/src/guichan/include/guichan/selectionevent.hpp b/src/guichan/include/guichan/selectionevent.hpp
index 331ebe92d..53efc93f5 100644
--- a/src/guichan/include/guichan/selectionevent.hpp
+++ b/src/guichan/include/guichan/selectionevent.hpp
@@ -67,7 +67,7 @@ namespace gcn
*
* @param source source The widget of the selection event.
*/
- SelectionEvent(Widget* source);
+ SelectionEvent(Widget *const source);
/**
* Destructor.
diff --git a/src/guichan/include/guichan/widgets/dropdown.hpp b/src/guichan/include/guichan/widgets/dropdown.hpp
index 7663a265f..6c6ffb4c5 100644
--- a/src/guichan/include/guichan/widgets/dropdown.hpp
+++ b/src/guichan/include/guichan/widgets/dropdown.hpp
@@ -95,9 +95,9 @@ namespace gcn
* @param listBox the listBox to use.
* @see ListModel, ScrollArea, ListBox.
*/
- DropDown(ListModel *listModel = nullptr,
- ScrollArea *scrollArea = nullptr,
- ListBox *listBox = nullptr);
+ DropDown(ListModel *const listModel = nullptr,
+ ScrollArea *const scrollArea = nullptr,
+ ListBox *const listBox = nullptr);
/**
* Destructor.
diff --git a/src/guichan/include/guichan/widgets/icon.hpp b/src/guichan/include/guichan/widgets/icon.hpp
index e25a7a770..ed010c31a 100644
--- a/src/guichan/include/guichan/widgets/icon.hpp
+++ b/src/guichan/include/guichan/widgets/icon.hpp
@@ -74,7 +74,7 @@ namespace gcn
*
* @param image The image to display.
*/
- Icon(const Image* image);
+ Icon(const Image *const image);
/**
* Descructor.
diff --git a/src/guichan/include/guichan/widgets/scrollarea.hpp b/src/guichan/include/guichan/widgets/scrollarea.hpp
index 4937bcbea..84649d530 100644
--- a/src/guichan/include/guichan/widgets/scrollarea.hpp
+++ b/src/guichan/include/guichan/widgets/scrollarea.hpp
@@ -90,7 +90,7 @@ namespace gcn
*
* @param content The content of the scroll area.
*/
- ScrollArea(Widget *content);
+ ScrollArea(Widget *const content);
/**
* Constructor.
diff --git a/src/guichan/include/guichan/widgets/slider.hpp b/src/guichan/include/guichan/widgets/slider.hpp
index a22c36844..bf2ce5937 100644
--- a/src/guichan/include/guichan/widgets/slider.hpp
+++ b/src/guichan/include/guichan/widgets/slider.hpp
@@ -81,7 +81,7 @@ namespace gcn
*
* @param scaleEnd The end value of the slider scale.
*/
- Slider(double scaleEnd = 1.0);
+ Slider(const double scaleEnd = 1.0);
/**
* Constructor.
@@ -89,7 +89,7 @@ namespace gcn
* @param scaleStart The start value of the slider scale.
* @param scaleEnd The end value of the slider scale.
*/
- Slider(double scaleStart, double scaleEnd);
+ Slider(const double scaleStart, const double scaleEnd);
/**
* Destructor.