]> Dogcows Code - chaz/openbox/blobdiff - otk/rendercolor.hh
use otk objects in the ob scripts by importing otk
[chaz/openbox] / otk / rendercolor.hh
index c5835385ddcb8465f7cfaec14c59784090a16ee6..8ed8ce5802e24eda0dd1031b5e7fd66d96a1d04a 100644 (file)
@@ -10,20 +10,19 @@ extern "C" {
 
 namespace otk {
 
-class RenderColor {
-public:
-  struct RGB {
-    int r;
-    int g;
-    int b;
-    RGB(int red, int green, int blue) : r(red), g(green), b(blue) {}
-    // color is in ARGB format
-    RGB(unsigned long color)
-      : r((color >> 16) & 0xff),
-        g((color >> 8) & 0xff),
-        b((color) & 0xff) {}
-  };
+struct RGB {
+  int r;
+  int g;
+  int b;
+  RGB(int red, int green, int blue) : r(red), g(green), b(blue) {}
+  // color is in ARGB format
+  RGB(unsigned long color)
+    : r((color >> 16) & 0xff),
+      g((color >> 8) & 0xff),
+      b((color) & 0xff) {}
+};
 
+class RenderColor {
 private:
   struct CacheItem {
     GC gc;
This page took 0.024477 seconds and 4 git commands to generate.