export gRGB to python again
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 10 Dec 2006 22:32:39 +0000 (22:32 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 10 Dec 2006 22:32:39 +0000 (22:32 +0000)
lib/gdi/gpixmap.h

index cc2a4cf41e39a6dd8e12c623d2be85ff44ea1741..d717ec6ff5d39c01d1c22b14f0a24c2673d942a5 100644 (file)
@@ -9,20 +9,6 @@
 #include <lib/gdi/erect.h>
 #include <lib/gdi/fb.h>
 
-#ifndef SWIG
-struct gColor
-{
-       int color;
-       gColor(int color): color(color)
-       {
-       }
-       gColor(): color(0)
-       {
-       }
-       operator int() const { return color; }
-       bool operator==(const gColor &o) const { return o.color==color; }
-};
-
 struct gRGB
 {
        unsigned char b, g, r, a;
@@ -35,12 +21,12 @@ struct gRGB
        gRGB(): b(0), g(0), r(0), a(0)
        {
        }
-       
+
        unsigned long argb() const
        {
                return (a<<24)|(r<<16)|(g<<8)|b;
        }
-       
+
        void operator=(unsigned long val)
        {
                b = val&0xFF;
@@ -72,6 +58,20 @@ struct gRGB
        }
 };
 
+#ifndef SWIG
+struct gColor
+{
+       int color;
+       gColor(int color): color(color)
+       {
+       }
+       gColor(): color(0)
+       {
+       }
+       operator int() const { return color; }
+       bool operator==(const gColor &o) const { return o.color==color; }
+};
+
 struct gPalette
 {
        int start, colors;