aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-10 13:29:13 (GMT)
committerfluxgen <fluxgen>2003-05-10 13:29:13 (GMT)
commitd8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d (patch)
tree619ef0f462839d69e4a4eed3b4ae8cd7f1651ad7 /src
parentba5272b84547240a14e57a3afd25aca71375b922 (diff)
downloadfluxbox-d8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d.zip
fluxbox-d8bdbf3bb946475a7a5cbb0c52a9ee440d31bf1d.tar.bz2
comments
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Color.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FbTk/Color.hh b/src/FbTk/Color.hh
index e54512c..f9c1600 100644
--- a/src/FbTk/Color.hh
+++ b/src/FbTk/Color.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Color.hh,v 1.3 2003/02/23 01:09:02 fluxgen Exp $ 25// $Id: Color.hh,v 1.4 2003/05/10 13:29:13 fluxgen Exp $
26 26
27#ifndef FBTK_COLOR_HH 27#ifndef FBTK_COLOR_HH
28#define FBTK_COLOR_HH 28#define FBTK_COLOR_HH
@@ -30,18 +30,19 @@
30#include "NotCopyable.hh" 30#include "NotCopyable.hh"
31 31
32namespace FbTk { 32namespace FbTk {
33/** 33
34 Holds rgb color and pixel value 34/// Allocates rgb color and pixel value
35*/
36class Color { 35class Color {
37public: 36public:
38 Color(); 37 Color();
39 explicit Color(unsigned long pixel); 38 explicit Color(unsigned long pixel);
40 Color(const Color &col_copy); 39 Color(const Color &col_copy);
41 Color(unsigned short red, unsigned short green, unsigned short blue, int screen); 40 Color(unsigned short red, unsigned short green, unsigned short blue, int screen);
41 /// parses and sets rgb and pixel value from a string
42 Color(const char *color_string, int screen); 42 Color(const char *color_string, int screen);
43 ~Color(); 43 ~Color();
44 44
45 /// parses and sets rgb and pixel value from a string
45 bool setFromString(const char *color_string, int screen); 46 bool setFromString(const char *color_string, int screen);
46 /// TODO don't like this 47 /// TODO don't like this
47 void setPixel(unsigned long pixel) { m_pixel = pixel; } 48 void setPixel(unsigned long pixel) { m_pixel = pixel; }