]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercolor.hh
only store what we need to in the class
[chaz/openbox] / otk / rendercolor.hh
index 8ed8ce5802e24eda0dd1031b5e7fd66d96a1d04a..da022a107e2176261da8ebc6715943cbc4a06fa0 100644 (file)
@@ -36,11 +36,13 @@ private:
   unsigned char _red;
   unsigned char _green;
   unsigned char _blue;
-  unsigned long _pixel;
 
-  GC _gc;
+  mutable unsigned long _pixel;
+  mutable GC _gc;
 
-  void create();
+  mutable bool _allocated;
+
+  void create() const;
   
 public:
   static void initialize();
@@ -55,8 +57,8 @@ public:
   inline unsigned char red() const { return _red; }
   inline unsigned char green() const { return _green; }
   inline unsigned char blue() const { return _blue; }
-  inline unsigned long pixel() const { return _pixel; }
-  inline GC gc() const { return _gc; }
+  unsigned long pixel() const;
+  GC gc() const;
 };
 
 }
This page took 0.020246 seconds and 4 git commands to generate.