summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
authorMajin Sniper <majinsniper@gmx.de>2009-03-12 16:48:03 +0100
committerJared Adams <jaxad0127@gmail.com>2009-03-12 19:12:46 -0600
commitb9191530c81595b0ad3d2faa6c4d21d75a720c29 (patch)
treea13f19443a464caa3329bb3d7d2c7ab378c70c9d /src/gui/palette.h
parentc7fa79ff1704d86e12e12b83e1e4745ca27a543a (diff)
downloadmana-client-b9191530c81595b0ad3d2faa6c4d21d75a720c29.tar.gz
mana-client-b9191530c81595b0ad3d2faa6c4d21d75a720c29.tar.bz2
mana-client-b9191530c81595b0ad3d2faa6c4d21d75a720c29.tar.xz
mana-client-b9191530c81595b0ad3d2faa6c4d21d75a720c29.zip
Extend color config gui to support the new colors
The new color palette supports many more colors that the browserbox can display. So a change to the color config gui was needed.
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index c32fbc8a..77ead4f6 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -108,7 +108,7 @@ class Palette : public gcn::ListModel
const gcn::Color& getColor(char c, bool &valid);
/**
- * Gets the color with the associated type. Sets the alpha channel
+ * Gets the color associated with the type. Sets the alpha channel
* before returning.
*
* @param type the color type requested
@@ -124,12 +124,24 @@ class Palette : public gcn::ListModel
}
/**
- * Gets the GradientType used by the specified color.
- *
- * @param type the color type of the color
- *
- * @return the gradient type of the color with the given index
- */
+ * Gets the committed color associated with the specified type.
+ *
+ * @param type the color type requested
+ *
+ * @return the requested committed color
+ */
+ inline const gcn::Color& getCommittedColor(ColorType type)
+ {
+ return mColVector[type].committedColor;
+ }
+
+ /**
+ * Gets the GradientType associated with the specified type.
+ *
+ * @param type the color type of the color
+ *
+ * @return the gradient type of the color with the given index
+ */
inline GradientType getGradientType(ColorType type)
{
return mColVector[type].grad;