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
15 * @author Andrew Mustun
17 class RS_Color: public QColor, public RS_Flags
21 RS_Color(int r, int g, int b);
22 RS_Color(const QColor & c);
23 RS_Color(const RS_Color & c);
24 RS_Color(unsigned int f);
26 RS_Color stripFlags() const;
27 bool isByLayer() const;
28 bool isByBlock() const;
29 RS_Color & operator=(const RS_Color & c);
30 bool operator==(const RS_Color & c) const;
31 //no,can't bool operator==(const QColor & c) const;
32 friend std::ostream & operator<<(std::ostream & os, const RS_Color & c);