summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index ccef231e..1a466ed4 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -3,7 +3,7 @@
* Copyright (C) 2008 Douglas Boffey <dougaboffey@netscape.net>
* Copyright (C) 2009 The Mana World Development Team
*
- * This file is part of Aethyra.
+ * This file is part of The Mana World.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -93,7 +93,7 @@ class Palette : public gcn::ListModel
ENTRY(MISS)\
ENTRY(TYPE_COUNT)\
- TEXTENUM(ColorType, COLOR_TYPE);
+ TEXTENUM(ColorType, COLOR_TYPE)
/** Colors can be static or can alter over time. */
enum GradientType {
@@ -148,7 +148,9 @@ class Palette : public gcn::ListModel
* @return the requested committed color
*/
inline const gcn::Color& getCommittedColor(ColorType type)
- { return mColVector[type].committedColor; }
+ {
+ return mColVector[type].committedColor;
+ }
/**
* Gets the test color associated with the specified type.
@@ -158,7 +160,9 @@ class Palette : public gcn::ListModel
* @return the requested test color
*/
inline const gcn::Color& getTestColor(ColorType type)
- { return mColVector[type].testColor; }
+ {
+ return mColVector[type].testColor;
+ }
/**
* Sets the test color associated with the specified type.
@@ -167,7 +171,9 @@ class Palette : public gcn::ListModel
* @param color the color that should be tested
*/
inline void setTestColor(ColorType type, gcn::Color color)
- { mColVector[type].testColor = color; }
+ {
+ mColVector[type].testColor = color;
+ }
/**
* Gets the GradientType associated with the specified type.
@@ -177,7 +183,9 @@ class Palette : public gcn::ListModel
* @return the gradient type of the color with the given index
*/
inline GradientType getGradientType(ColorType type)
- { return mColVector[type].grad; }
+ {
+ return mColVector[type].grad;
+ }
/**
* Get the character used by the specified color.
@@ -186,7 +194,10 @@ class Palette : public gcn::ListModel
*
* @return the color char of the color with the given index
*/
- inline char getColorChar(ColorType type) { return mColVector[type].ch; }
+ inline char getColorChar(ColorType type)
+ {
+ return mColVector[type].ch;
+ }
/**
* Sets the color for the specified type.
@@ -234,7 +245,10 @@ class Palette : public gcn::ListModel
/**
* Commit the colors
*/
- inline void commit() { commit(false); }
+ inline void commit()
+ {
+ commit(false);
+ }
/**
* Rollback the colors