move the gradient2 main structure in a specific header as it is also used in the...
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 23 Sep 2009 06:37:08 +0000 (06:37 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 23 Sep 2009 06:37:08 +0000 (06:37 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@42639 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_gradient2.c
src/lib/canvas/evas_object_gradient2.h [new file with mode: 0644]
src/lib/canvas/evas_object_gradient2_linear.c
src/lib/canvas/evas_object_gradient2_radial.c

index 42b8018..e20bf15 100644 (file)
@@ -1,23 +1,6 @@
 #include "evas_common.h"
 #include "evas_private.h"
-
-typedef struct _Evas_Object_Gradient2      Evas_Object_Gradient2;
-
-struct _Evas_Object_Gradient2
-{
-   DATA32            magic;
-
-   struct {
-      struct {
-         Evas_Common_Transform  transform;
-         int         spread;
-      } fill;
-      unsigned char    gradient_opaque : 1;
-   } cur, prev;
-
-   unsigned char     gradient_changed : 1;
-};
-
+#include "evas_object_gradient2.h"
 
 
 /**
diff --git a/src/lib/canvas/evas_object_gradient2.h b/src/lib/canvas/evas_object_gradient2.h
new file mode 100644 (file)
index 0000000..07575e8
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef EVAS_GRADIENT2_H_\r
+#define EVAS_GRADIENT2_H_\r
+\r
+\r
+typedef struct _Evas_Object_Gradient2      Evas_Object_Gradient2;\r
+\r
+struct _Evas_Object_Gradient2\r
+{\r
+   DATA32            magic;\r
+\r
+   struct {\r
+      struct {\r
+         Evas_Common_Transform  transform;\r
+         int         spread;\r
+      } fill;\r
+      unsigned char    gradient_opaque : 1;\r
+   } cur, prev;\r
+\r
+   unsigned char     gradient_changed : 1;\r
+};\r
+\r
+\r
+#endif\r
index 3c02a95..ed86363 100644 (file)
@@ -1,5 +1,6 @@
 #include "evas_common.h"
 #include "evas_private.h"
+#include "evas_object_gradient2.h"
 
 /* private magic number for linear gradient objects */
 static const char lg_type[] = "linear_gradient";
index 1095521..f9c177d 100644 (file)
@@ -1,5 +1,6 @@
 #include "evas_common.h"
 #include "evas_private.h"
+#include "evas_object_gradient2.h"
 
 /* private magic number for radial gradient objects */
 static const char rg_type[] = "radial_gradient";