evas: move Efl_Canvas_Polygon_Data struct to separate header

This commit is contained in:
Mike Blumenkrantz 2016-05-05 10:27:50 -04:00
parent 6124039c8f
commit 18bb75d0f9
3 changed files with 18 additions and 12 deletions

View File

@ -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

View File

@ -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;

View File

@ -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