Enlightenment CVS committal
Author : rephorm
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/bin
Modified Files:
edje_cc_handlers.c
Log Message:
add cedric bail's fill.type patch.
you can now include "type: TILE;" in the fill block to tile an image part at
the size of its image data
===================================================================
RCS file: /cvs/e/e17/libs/edje/src/bin/edje_cc_handlers.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- edje_cc_handlers.c 27 May 2007 05:28:07 -0000 1.73
+++ edje_cc_handlers.c 6 Jul 2007 22:36:40 -0000 1.74
@@ -83,6 +83,7 @@
static void st_collections_group_parts_part_description_fill_size_offset(void);
static void st_collections_group_parts_part_description_fill_angle(void);
static void st_collections_group_parts_part_description_fill_spread(void);
+static void st_collections_group_parts_part_description_fill_type(void);
static void st_collections_group_parts_part_description_color_class(void);
static void st_collections_group_parts_part_description_color(void);
static void st_collections_group_parts_part_description_color2(void);
@@ -229,6 +230,7 @@
{"collections.group.parts.part.description.fill.size.offset",
st_collections_group_parts_part_description_fill_size_offset},
{"collections.group.parts.part.description.fill.angle",
st_collections_group_parts_part_description_fill_angle},
{"collections.group.parts.part.description.fill.spread",
st_collections_group_parts_part_description_fill_spread},
+ {"collections.group.parts.part.description.fill.type",
st_collections_group_parts_part_description_fill_type},
{"collections.group.parts.part.description.color_class",
st_collections_group_parts_part_description_color_class},
{"collections.group.parts.part.description.color",
st_collections_group_parts_part_description_color},
{"collections.group.parts.part.description.color2",
st_collections_group_parts_part_description_color2},
@@ -1151,6 +1153,7 @@
ed->fill.abs_y = 0;
ed->fill.angle = 0;
ed->fill.spread = 0;
+ ed->fill.type = EDJE_FILL_TYPE_SCALE;
ed->color_class = NULL;
ed->color.r = 255;
ed->color.g = 255;
@@ -1801,7 +1804,7 @@
if (ep->type != EDJE_PART_TYPE_IMAGE)
{
fprintf(stderr, "%s: Error. parse error %s:%i. "
- "fill attributes in non-IMAGE part.\n",
+ "fill.type attribute in non-IMAGE part.\n",
progname, file_in, line - 1);
exit(-1);
}
@@ -2656,6 +2659,34 @@
ep = evas_list_data(evas_list_last(pc->programs));
ep->in.from = parse_float_range(0, 0.0, 999999999.0);
ep->in.range = parse_float_range(1, 0.0, 999999999.0);
+}
+
+static void
+st_collections_group_parts_part_description_fill_type(void)
+{
+ Edje_Part_Collection *pc;
+ Edje_Part *ep;
+ Edje_Part_Description *ed;
+
+ check_arg_count(1);
+
+ pc = evas_list_data(evas_list_last(edje_collections));
+ ep = evas_list_data(evas_list_last(pc->parts));
+ ed = ep->default_desc;
+ if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
+
+ if (ep->type != EDJE_PART_TYPE_IMAGE)
+ {
+ fprintf(stderr, "%s: Error. parse error %s:%i. "
+ "fill attributes in non-IMAGE part.\n",
+ progname, file_in, line - 1);
+ exit(-1);
+ }
+
+ ed->fill.type = parse_enum(0,
+ "SCALE", EDJE_FILL_TYPE_SCALE,
+ "TILE", EDJE_FILL_TYPE_TILE,
+ NULL);
}
static void
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs