aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_object_polygon.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-08-26 05:45:04 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-08-26 05:45:04 +0000
commitc1fe72d7e49a1e714733eefb4060ef3a1f510c4a (patch)
treec69018a48d9bc2eda9cd5717e388691600e05c7e /legacy/evas/src/lib/canvas/evas_object_polygon.c
parentadd null theme check (diff)
downloadefl-c1fe72d7e49a1e714733eefb4060ef3a1f510c4a.tar.gz
jose has some new gradient work - these are his patches. nice work joseg! yes
- some enignes break as they dont have the stubbed out functions, and xrender/gl engines dont even implement the drawing and need to (but are stubbed out). SVN revision: 35677
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_object_polygon.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_polygon.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_polygon.c b/legacy/evas/src/lib/canvas/evas_object_polygon.c
index d327a61583..35ac120960 100644
--- a/legacy/evas/src/lib/canvas/evas_object_polygon.c
+++ b/legacy/evas/src/lib/canvas/evas_object_polygon.c
@@ -31,6 +31,9 @@ static void evas_object_polygon_free(Evas_Object *obj);
static void evas_object_polygon_render_pre(Evas_Object *obj);
static void evas_object_polygon_render_post(Evas_Object *obj);
+static int evas_object_polygon_visual_type_get(Evas_Object *obj);
+static void *evas_object_polygon_engine_data_get(Evas_Object *obj);
+
static int evas_object_polygon_is_opaque(Evas_Object *obj);
static int evas_object_polygon_was_opaque(Evas_Object *obj);
static int evas_object_polygon_is_inside(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
@@ -43,6 +46,8 @@ static const Evas_Object_Func object_func =
evas_object_polygon_render,
evas_object_polygon_render_pre,
evas_object_polygon_render_post,
+ evas_object_polygon_visual_type_get,
+ evas_object_polygon_engine_data_get,
/* these are optional. NULL = nothing */
NULL,
NULL,
@@ -409,6 +414,24 @@ evas_object_polygon_render_post(Evas_Object *obj)
o->changed = 0;
}
+static int evas_object_polygon_visual_type_get(Evas_Object *obj)
+{
+ Evas_Object_Polygon *o;
+
+ o = (Evas_Object_Polygon *)(obj->object_data);
+ if (!o) return 0;
+ return MAGIC_OBJ_SHAPE;
+}
+
+static void *evas_object_polygon_engine_data_get(Evas_Object *obj)
+{
+ Evas_Object_Polygon *o;
+
+ o = (Evas_Object_Polygon *)(obj->object_data);
+ if (!o) return NULL;
+ return o->engine_data;
+}
+
static int
evas_object_polygon_is_opaque(Evas_Object *obj)
{