diff options
author | rathnor <rathnor> | 2002-12-01 13:42:15 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2002-12-01 13:42:15 (GMT) |
commit | 28b5c604490094e187494dcc566bd3d7a05a2c25 (patch) | |
tree | 8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/FbTk/Color.hh | |
parent | b9134162f9633784d9097df18769a699a62650fe (diff) | |
download | fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.zip fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2 |
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/FbTk/Color.hh')
-rw-r--r-- | src/FbTk/Color.hh | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/FbTk/Color.hh b/src/FbTk/Color.hh index 07d7f55..d96db8d 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.1 2002/11/26 16:01:27 fluxgen Exp $ | 25 | // $Id: Color.hh,v 1.2 2002/12/01 13:42:14 rathnor Exp $ |
26 | 26 | ||
27 | #ifndef FBTK_COLOR_HH | 27 | #ifndef FBTK_COLOR_HH |
28 | #define FBTK_COLOR_HH | 28 | #define FBTK_COLOR_HH |
@@ -31,41 +31,41 @@ | |||
31 | 31 | ||
32 | namespace FbTk { | 32 | namespace FbTk { |
33 | /** | 33 | /** |
34 | Holds rgb color and pixel value | 34 | Holds rgb color and pixel value |
35 | */ | 35 | */ |
36 | class Color { | 36 | class Color { |
37 | public: | 37 | public: |
38 | Color(); | 38 | Color(); |
39 | explicit Color(unsigned long pixel); | 39 | explicit Color(unsigned long pixel); |
40 | Color(const Color &col_copy); | 40 | Color(const Color &col_copy); |
41 | Color(unsigned char red, unsigned char green, unsigned char blue, int screen); | 41 | Color(unsigned char red, unsigned char green, unsigned char blue, int screen); |
42 | Color(const char *color_string, int screen); | 42 | Color(const char *color_string, int screen); |
43 | ~Color(); | 43 | ~Color(); |
44 | 44 | ||
45 | bool setFromString(const char *color_string, int screen); | 45 | bool setFromString(const char *color_string, int screen); |
46 | /// TODO don't like this | 46 | /// TODO don't like this |
47 | void setPixel(unsigned long pixel) { m_pixel = pixel; } | 47 | void setPixel(unsigned long pixel) { m_pixel = pixel; } |
48 | // TODO | 48 | // TODO |
49 | //Color &operator = (const Color &col_copy); | 49 | //Color &operator = (const Color &col_copy); |
50 | 50 | ||
51 | bool isAllocated() const { return m_allocated; } | 51 | bool isAllocated() const { return m_allocated; } |
52 | unsigned char red() const { return m_red; } | 52 | unsigned char red() const { return m_red; } |
53 | unsigned char green() const { return m_green; } | 53 | unsigned char green() const { return m_green; } |
54 | unsigned char blue() const { return m_blue; } | 54 | unsigned char blue() const { return m_blue; } |
55 | unsigned long pixel() const { return m_pixel; } | 55 | unsigned long pixel() const { return m_pixel; } |
56 | 56 | ||
57 | private: | 57 | private: |
58 | void free(); | 58 | void free(); |
59 | void copy(const Color &col); | 59 | void copy(const Color &col); |
60 | void allocate(unsigned char red, unsigned char green, unsigned char blue, int screen); | 60 | void allocate(unsigned char red, unsigned char green, unsigned char blue, int screen); |
61 | inline void setAllocated(bool a) { m_allocated = a; } | 61 | inline void setAllocated(bool a) { m_allocated = a; } |
62 | void setRGB(unsigned char red, unsigned char green, unsigned char blue); | 62 | void setRGB(unsigned char red, unsigned char green, unsigned char blue); |
63 | 63 | ||
64 | 64 | ||
65 | unsigned char m_red, m_green, m_blue; | 65 | unsigned char m_red, m_green, m_blue; |
66 | unsigned long m_pixel; | 66 | unsigned long m_pixel; |
67 | bool m_allocated; | 67 | bool m_allocated; |
68 | int m_screen; | 68 | int m_screen; |
69 | }; | 69 | }; |
70 | 70 | ||
71 | }; // end namespace FbTk | 71 | }; // end namespace FbTk |