only store what we need to in the class
This commit is contained in:
parent
e451c08ac5
commit
0ebf6a1754
1 changed files with 7 additions and 5 deletions
|
@ -36,11 +36,13 @@ private:
|
||||||
unsigned char _red;
|
unsigned char _red;
|
||||||
unsigned char _green;
|
unsigned char _green;
|
||||||
unsigned char _blue;
|
unsigned char _blue;
|
||||||
unsigned long _pixel;
|
|
||||||
|
|
||||||
GC _gc;
|
mutable unsigned long _pixel;
|
||||||
|
mutable GC _gc;
|
||||||
|
|
||||||
void create();
|
mutable bool _allocated;
|
||||||
|
|
||||||
|
void create() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void initialize();
|
static void initialize();
|
||||||
|
@ -55,8 +57,8 @@ public:
|
||||||
inline unsigned char red() const { return _red; }
|
inline unsigned char red() const { return _red; }
|
||||||
inline unsigned char green() const { return _green; }
|
inline unsigned char green() const { return _green; }
|
||||||
inline unsigned char blue() const { return _blue; }
|
inline unsigned char blue() const { return _blue; }
|
||||||
inline unsigned long pixel() const { return _pixel; }
|
unsigned long pixel() const;
|
||||||
inline GC gc() const { return _gc; }
|
GC gc() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue