edje_cc: Add "render" keyword for lazEDC
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 2 Oct 2015 03:13:56 +0000 (12:13 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 2 Oct 2015 03:25:29 +0000 (12:25 +0900)
Since @zmike also thought this could be useful, let's add it.

src/bin/edje/edje_cc_handlers.c

index 190c3e0..7ae4007 100644 (file)
@@ -268,6 +268,7 @@ static void st_collections_group_parts_part_pointer_mode(void);
 static void st_collections_group_parts_part_precise_is_inside(void);
 static void st_collections_group_parts_part_use_alternate_font_metrics(void);
 static void st_collections_group_parts_part_clip_to_id(void);
+static void st_collections_group_parts_part_render(void);
 static void st_collections_group_parts_part_no_render(void);
 static void st_collections_group_parts_part_source(void);
 static void st_collections_group_parts_part_source2(void);
@@ -1052,6 +1053,8 @@ New_Statement_Handler statement_handlers_short[] =
              norepeat; -> repeat_events: 0;
              precise; -> precise_is_inside: 1;
              noprecise; -> precise_is_inside: 0;
+             render; -> no_render: 0;
+             norender; -> no_render: 1;
              scale; -> scale: 1;
              noscale; -> scale: 0;
              desc {
@@ -1078,6 +1081,7 @@ New_Statement_Handler statement_handlers_short_single[] =
      {"collections.group.parts.part.noprecise", st_collections_group_parts_part_noprecise},
      {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
      {"collections.group.parts.part.noscale", st_collections_group_parts_part_noscale},
+     {"collections.group.parts.part.render", st_collections_group_parts_part_render},
      {"collections.group.parts.part.norender", st_collections_group_parts_part_no_render},
      {"collections.group.parts.part.description.vis", st_collections_group_parts_part_description_vis},
      {"collections.group.parts.part.description.hid", st_collections_group_parts_part_description_hid},
@@ -5780,6 +5784,12 @@ st_collections_group_parts_part_no_render(void)
      current_part->no_render = EINA_TRUE;
 }
 
+static void
+st_collections_group_parts_part_render(void)
+{
+   current_part->no_render = EINA_FALSE;
+}
+
 /**
     @page edcref
     @property