diff options
author | fluxgen <fluxgen> | 2006-02-12 08:05:34 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-12 08:05:34 (GMT) |
commit | ab26593cddf2fc0004da8048e28216792ed433ef (patch) | |
tree | 4add528920b7358c3355507362c4b12a933b2638 /src/FbTk/Color.hh | |
parent | e85b2f3f5b091bac8101bc90ba04e575b845758e (diff) | |
download | fluxbox-ab26593cddf2fc0004da8048e28216792ed433ef.zip fluxbox-ab26593cddf2fc0004da8048e28216792ed433ef.tar.bz2 |
added static validColorString function, returns true if the color string is in valid color format
Diffstat (limited to 'src/FbTk/Color.hh')
-rw-r--r-- | src/FbTk/Color.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/Color.hh b/src/FbTk/Color.hh index b17dd95..7536d89 100644 --- a/src/FbTk/Color.hh +++ b/src/FbTk/Color.hh | |||
@@ -54,7 +54,10 @@ public: | |||
54 | inline unsigned short green() const { return m_green; } | 54 | inline unsigned short green() const { return m_green; } |
55 | inline unsigned short blue() const { return m_blue; } | 55 | inline unsigned short blue() const { return m_blue; } |
56 | inline unsigned long pixel() const { return m_pixel; } | 56 | inline unsigned long pixel() const { return m_pixel; } |
57 | 57 | ||
58 | /// @return true if the color name in color_string is resolved, else false | ||
59 | static bool validColorString(const char *color_string, int screen); | ||
60 | |||
58 | private: | 61 | private: |
59 | void free(); | 62 | void free(); |
60 | void copy(const Color &col); | 63 | void copy(const Color &col); |