]> Shamusworld >> Repos - architektonas/blob - src/base/flags.h
Fixed thumbnail rendering in LibraryWidget and DXF detection.
[architektonas] / src / base / flags.h
1 #ifndef __FLAGS_H__
2 #define __FLAGS_H__
3
4 /**
5  * Base class for objects which have flags.
6  *
7  * @author Andrew Mustun
8  */
9 class RS_Flags
10 {
11         public:
12                 RS_Flags();
13                 RS_Flags(unsigned int f);
14                 virtual ~RS_Flags();
15
16                 unsigned int getFlags() const;
17                 void resetFlags();
18                 void setFlags(unsigned int f);
19                 void setFlag(unsigned int f);
20                 void delFlag(unsigned int f);
21                 void toggleFlag(unsigned int f) ;
22                 bool getFlag(unsigned int f) const;
23
24         private:
25                 unsigned int flags;
26 };
27
28 #endif