]> Shamusworld >> Repos - architektonas/blob - src/base/color.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / color.h
1 #ifndef __COLOR_H__
2 #define __COLOR_H__
3
4 #include <QtGui>
5 #include "flags.h"
6
7 //! Color defined by layer not entity
8 //#define C_BY_LAYER     0x00000001
9 //! Color defined by block not entity
10 //#define C_BY_BLOCK     0x00000002
11
12 /**
13  * Color class.
14  *
15  * @author Andrew Mustun
16  */
17 class Color: public QColor, public Flags
18 {
19         public:
20                 Color();
21                 Color(int r, int g, int b);
22                 Color(const QColor & c);
23                 Color(const Color & c);
24                 Color(unsigned int f);
25
26                 Color stripFlags() const;
27                 bool isByLayer() const;
28                 bool isByBlock() const;
29                 Color & operator=(const Color & c);
30                 bool operator==(const Color & c) const;
31 //no,can't              bool operator==(const QColor & c) const;
32                 friend std::ostream & operator<<(std::ostream & os, const Color & c);
33 };
34
35 #endif