X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Frendercolor.hh;h=1f24b3c9106681705422f16c828ac70b3e482fd5;hb=2cbb95c3dba218b0a91034af1715b576f8ac2b84;hp=8ed8ce5802e24eda0dd1031b5e7fd66d96a1d04a;hpb=5face4c6f35172761367f63ac0b6eaf62d84e532;p=chaz%2Fopenbox diff --git a/otk/rendercolor.hh b/otk/rendercolor.hh index 8ed8ce58..1f24b3c9 100644 --- a/otk/rendercolor.hh +++ b/otk/rendercolor.hh @@ -36,11 +36,14 @@ 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; + mutable bool _created; + + void create() const; public: static void initialize(); @@ -55,8 +58,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; }; }