forked from enlightenment/efl
evas: move Efl_Canvas_Polygon_Data struct to separate header
This commit is contained in:
parent
6124039c8f
commit
18bb75d0f9
|
@ -115,6 +115,7 @@ lib/evas/include/evas_blend_ops.h \
|
|||
lib/evas/include/evas_filter.h \
|
||||
lib/evas/canvas/evas_vg_private.h \
|
||||
lib/evas/canvas/evas_image_private.h \
|
||||
lib/evas/canvas/evas_polygon_private.h \
|
||||
lib/evas/canvas/efl_canvas_surface.h \
|
||||
lib/evas/common3d/primitives/primitive_common.h
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "evas_common_private.h"
|
||||
#include "evas_private.h"
|
||||
#include "evas_polygon_private.h"
|
||||
|
||||
#define MY_CLASS EFL_CANVAS_POLYGON_CLASS
|
||||
|
||||
|
@ -7,20 +8,8 @@
|
|||
static const char o_type[] = "polygon";
|
||||
|
||||
/* private struct for line object internal data */
|
||||
typedef struct _Efl_Canvas_Polygon_Data Efl_Canvas_Polygon_Data;
|
||||
typedef struct _Efl_Canvas_Polygon_Point Efl_Canvas_Polygon_Point;
|
||||
|
||||
struct _Efl_Canvas_Polygon_Data
|
||||
{
|
||||
Eina_List *points;
|
||||
void *engine_data;
|
||||
struct {
|
||||
int x, y;
|
||||
} offset;
|
||||
Evas_Coord_Rectangle geometry;
|
||||
Eina_Bool changed : 1;
|
||||
};
|
||||
|
||||
struct _Efl_Canvas_Polygon_Point
|
||||
{
|
||||
Evas_Coord x, y;
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef EVAS_POLYGON_PRIVATE_H
|
||||
#define EVAS_POLYGON_PRIVATE_H
|
||||
|
||||
typedef struct _Efl_Canvas_Polygon_Data Efl_Canvas_Polygon_Data;
|
||||
|
||||
struct _Efl_Canvas_Polygon_Data
|
||||
{
|
||||
Eina_List *points;
|
||||
void *engine_data;
|
||||
struct {
|
||||
int x, y;
|
||||
} offset;
|
||||
Evas_Coord_Rectangle geometry;
|
||||
Eina_Bool changed : 1;
|
||||
};
|
||||
#endif
|
Loading…
Reference in New Issue