summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-05 15:36:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:18 +0900
commit08f2624e6a0421962fbd2e05cb37beb7b23befd7 (patch)
treece1248beef9d9a3fc402393ae4d5dd62b7e8db54 /src/bin
parente112d49e0b73e9a081aa515141582ff42d74afd5 (diff)
Evas filters: Implement basic Edje support
Does not support proxies yet. Implemented as "filter" field in a part.description.text (next to a "font").
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_cc_handlers.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 214c173461..cf82202614 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -314,6 +314,7 @@ static void st_collections_group_parts_part_description_text_align(void);
314static void st_collections_group_parts_part_description_text_source(void); 314static void st_collections_group_parts_part_description_text_source(void);
315static void st_collections_group_parts_part_description_text_text_source(void); 315static void st_collections_group_parts_part_description_text_text_source(void);
316static void st_collections_group_parts_part_description_text_elipsis(void); 316static void st_collections_group_parts_part_description_text_elipsis(void);
317static void st_collections_group_parts_part_description_text_filter(void);
317static void st_collections_group_parts_part_description_box_layout(void); 318static void st_collections_group_parts_part_description_box_layout(void);
318static void st_collections_group_parts_part_description_box_align(void); 319static void st_collections_group_parts_part_description_box_align(void);
319static void st_collections_group_parts_part_description_box_padding(void); 320static void st_collections_group_parts_part_description_box_padding(void);
@@ -651,6 +652,7 @@ New_Statement_Handler statement_handlers[] =
651 {"collections.group.parts.part.description.text.fonts.font", st_fonts_font}, /* dup */ 652 {"collections.group.parts.part.description.text.fonts.font", st_fonts_font}, /* dup */
652 {"collections.group.parts.part.description.text.elipsis", st_collections_group_parts_part_description_text_elipsis}, 653 {"collections.group.parts.part.description.text.elipsis", st_collections_group_parts_part_description_text_elipsis},
653 {"collections.group.parts.part.description.text.ellipsis", st_collections_group_parts_part_description_text_elipsis}, 654 {"collections.group.parts.part.description.text.ellipsis", st_collections_group_parts_part_description_text_elipsis},
655 {"collections.group.parts.part.description.text.filter", st_collections_group_parts_part_description_text_filter},
654 {"collections.group.parts.part.description.box.layout", st_collections_group_parts_part_description_box_layout}, 656 {"collections.group.parts.part.description.box.layout", st_collections_group_parts_part_description_box_layout},
655 {"collections.group.parts.part.description.box.align", st_collections_group_parts_part_description_box_align}, 657 {"collections.group.parts.part.description.box.align", st_collections_group_parts_part_description_box_align},
656 {"collections.group.parts.part.description.box.padding", st_collections_group_parts_part_description_box_padding}, 658 {"collections.group.parts.part.description.box.padding", st_collections_group_parts_part_description_box_padding},
@@ -5212,6 +5214,7 @@ st_collections_group_parts_part_description_inherit(void)
5212 ted->text.text.str = STRDUP(ted->text.text.str); 5214 ted->text.text.str = STRDUP(ted->text.text.str);
5213 ted->text.text_class = STRDUP(ted->text.text_class); 5215 ted->text.text_class = STRDUP(ted->text.text_class);
5214 ted->text.font.str = STRDUP(ted->text.font.str); 5216 ted->text.font.str = STRDUP(ted->text.font.str);
5217 ted->text.filter.str = STRDUP(ted->text.filter.str);
5215 5218
5216 data_queue_copied_part_lookup(pc, &(tparent->text.id_source), &(ted->text.id_source)); 5219 data_queue_copied_part_lookup(pc, &(tparent->text.id_source), &(ted->text.id_source));
5217 data_queue_copied_part_lookup(pc, &(tparent->text.id_text_source), &(ted->text.id_text_source)); 5220 data_queue_copied_part_lookup(pc, &(tparent->text.id_text_source), &(ted->text.id_text_source));
@@ -7295,6 +7298,37 @@ st_collections_group_parts_part_description_text_elipsis(void)
7295 ed->text.elipsis = parse_float_range(0, -1.0, 1.0); 7298 ed->text.elipsis = parse_float_range(0, -1.0, 1.0);
7296} 7299}
7297 7300
7301/**
7302 @page edcref
7303
7304 @property
7305 filter
7306 @parameters
7307 [filter program as a string]
7308 @effect
7309 Applies a series of filtering operations to the text.
7310 EXPERIMENTAL FEATURE. TO BE DOCUMENTED.
7311 @endproperty
7312*/
7313static void
7314st_collections_group_parts_part_description_text_filter(void)
7315{
7316 Edje_Part_Description_Text *ed;
7317
7318 check_arg_count(1);
7319
7320 if (current_part->type != EDJE_PART_TYPE_TEXT)
7321 {
7322 ERR("parse error %s:%i. text attributes in non-TEXT part.",
7323 file_in, line - 1);
7324 exit(-1);
7325 }
7326
7327 ed = (Edje_Part_Description_Text*) current_desc;
7328
7329 ed->text.filter.str = parse_str(0);
7330}
7331
7298 7332
7299/** 7333/**
7300 @edcsubsection{collections_group_parts_description_box,Box} 7334 @edcsubsection{collections_group_parts_description_box,Box}