summaryrefslogtreecommitdiff
path: root/src/bin/edje
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-12-24 16:29:49 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-12-24 16:29:49 +0900
commit382c41e42d6338b3a8db8914c8a056e2243a611f (patch)
tree5d93a9ee0ebbec2ba8f58ea216365214728569b7 /src/bin/edje
parent956754ee5752aa8f1f0bfc0676ebedc8b8b46f08 (diff)
edje: support anti_alias option
set anti_alias in part section. default is enabled. part { name: "test"; type: XXX; anti_alias: 0; ... } @feature
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_handlers.c22
-rw-r--r--src/bin/edje/edje_data_convert.c1
2 files changed, 23 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 7cc08a0882..d1aa9ece50 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -244,6 +244,7 @@ static void st_collections_group_parts_part_insert_before(void);
244static void st_collections_group_parts_part_insert_after(void); 244static void st_collections_group_parts_part_insert_after(void);
245static void st_collections_group_parts_part_effect(void); 245static void st_collections_group_parts_part_effect(void);
246static void st_collections_group_parts_part_mouse_events(void); 246static void st_collections_group_parts_part_mouse_events(void);
247static void st_collections_group_parts_part_anti_alias(void);
247static void st_collections_group_parts_part_repeat_events(void); 248static void st_collections_group_parts_part_repeat_events(void);
248static void st_collections_group_parts_part_ignore_flags(void); 249static void st_collections_group_parts_part_ignore_flags(void);
249static void st_collections_group_parts_part_scale(void); 250static void st_collections_group_parts_part_scale(void);
@@ -575,6 +576,7 @@ New_Statement_Handler statement_handlers[] =
575 {"collections.group.parts.part.insert_after", st_collections_group_parts_part_insert_after}, 576 {"collections.group.parts.part.insert_after", st_collections_group_parts_part_insert_after},
576 {"collections.group.parts.part.effect", st_collections_group_parts_part_effect}, 577 {"collections.group.parts.part.effect", st_collections_group_parts_part_effect},
577 {"collections.group.parts.part.mouse_events", st_collections_group_parts_part_mouse_events}, 578 {"collections.group.parts.part.mouse_events", st_collections_group_parts_part_mouse_events},
579 {"collections.group.parts.part.anti_alias", st_collections_group_parts_part_anti_alias},
578 {"collections.group.parts.part.repeat_events", st_collections_group_parts_part_repeat_events}, 580 {"collections.group.parts.part.repeat_events", st_collections_group_parts_part_repeat_events},
579 {"collections.group.parts.part.ignore_flags", st_collections_group_parts_part_ignore_flags}, 581 {"collections.group.parts.part.ignore_flags", st_collections_group_parts_part_ignore_flags},
580 {"collections.group.parts.part.scale", st_collections_group_parts_part_scale}, 582 {"collections.group.parts.part.scale", st_collections_group_parts_part_scale},
@@ -3049,6 +3051,7 @@ _part_copy(Edje_Part *ep, Edje_Part *ep2)
3049 3051
3050 ep->type = ep2->type; 3052 ep->type = ep2->type;
3051 ep->mouse_events = ep2->mouse_events; 3053 ep->mouse_events = ep2->mouse_events;
3054 ep->anti_alias = ep2->anti_alias;
3052 ep->repeat_events = ep2->repeat_events; 3055 ep->repeat_events = ep2->repeat_events;
3053 ep->ignore_flags = ep2->ignore_flags; 3056 ep->ignore_flags = ep2->ignore_flags;
3054 ep->scale = ep2->scale; 3057 ep->scale = ep2->scale;
@@ -4087,6 +4090,7 @@ edje_cc_handlers_part_make(int id)
4087 ep->id = id; 4090 ep->id = id;
4088 ep->type = EDJE_PART_TYPE_IMAGE; 4091 ep->type = EDJE_PART_TYPE_IMAGE;
4089 ep->mouse_events = pcp->default_mouse_events; 4092 ep->mouse_events = pcp->default_mouse_events;
4093 ep->anti_alias = 1;
4090 ep->repeat_events = 0; 4094 ep->repeat_events = 0;
4091 ep->ignore_flags = EVAS_EVENT_FLAG_NONE; 4095 ep->ignore_flags = EVAS_EVENT_FLAG_NONE;
4092 ep->scale = 0; 4096 ep->scale = 0;
@@ -4799,6 +4803,24 @@ st_collections_group_parts_part_nomouse(void)
4799/** 4803/**
4800 @page edcref 4804 @page edcref
4801 @property 4805 @property
4806 anti_alias
4807 @parameters
4808 [1 or 0]
4809 @effect
4810 Takes a boolean value specifying whether part is anti_alias (1) or not
4811 (0). The default value is 1.
4812 @endproperty
4813*/
4814static void
4815st_collections_group_parts_part_anti_alias(void)
4816{
4817 check_arg_count(1);
4818 current_part->anti_alias = parse_bool(0);
4819}
4820
4821/**
4822 @page edcref
4823 @property
4802 repeat_events 4824 repeat_events
4803 @parameters 4825 @parameters
4804 [1 or 0] 4826 [1 or 0]
diff --git a/src/bin/edje/edje_data_convert.c b/src/bin/edje/edje_data_convert.c
index 3d451bb617..ac7d52d5b3 100644
--- a/src/bin/edje/edje_data_convert.c
+++ b/src/bin/edje/edje_data_convert.c
@@ -396,6 +396,7 @@ _edje_edd_old_init(void)
396 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "type", type, EET_T_UCHAR); 396 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "type", type, EET_T_UCHAR);
397 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "effect", effect, EET_T_UCHAR); 397 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "effect", effect, EET_T_UCHAR);
398 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "mouse_events", mouse_events, EET_T_UCHAR); 398 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "mouse_events", mouse_events, EET_T_UCHAR);
399 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "anti_alias", anti_alias, EET_T_UCHAR);
399 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "repeat_events", repeat_events, EET_T_UCHAR); 400 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "repeat_events", repeat_events, EET_T_UCHAR);
400 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "ignore_flags", ignore_flags, EET_T_INT); 401 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "ignore_flags", ignore_flags, EET_T_INT);
401 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "scale", scale, EET_T_UCHAR); 402 EET_DATA_DESCRIPTOR_ADD_BASIC(_edje_edd_old_edje_part, Old_Edje_Part, "scale", scale, EET_T_UCHAR);