move the gradient2 main structure in a specific header as it is also used in the linear and radial files

SVN revision: 42639
This commit is contained in:
Vincent Torri 2009-09-23 06:37:08 +00:00
parent e50c003031
commit ac44ab5449
4 changed files with 26 additions and 18 deletions

View 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"
/**

View File

@ -0,0 +1,23 @@
#ifndef EVAS_GRADIENT2_H_
#define EVAS_GRADIENT2_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;
};
#endif

View 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";

View 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";