diff options
author | jiin.moon <jiin.moon@samsung.com> | 2015-03-02 20:19:01 +0900 |
---|---|---|
committer | ChunEon Park <chuneon.park@samsung.com> | 2015-03-02 20:19:01 +0900 |
commit | 4673dbeb4bf134de9af6802895908492b5beb1b2 (patch) | |
tree | dee0597312b9ee01fbb49736ab75f32604280963 /src/bin/edje | |
parent | e531ab9bc028286c7738693a621a9aae626a3cfb (diff) |
edje: Adding the zoom effect of map to edje
Summary:
Support zoom effect of map in edje
@feature
Reviewers: Hermet
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2068
Diffstat (limited to 'src/bin/edje')
-rw-r--r-- | src/bin/edje/edje_cc_handlers.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c index 138e248fed..d9ce1d7f48 100644 --- a/src/bin/edje/edje_cc_handlers.c +++ b/src/bin/edje/edje_cc_handlers.c | |||
@@ -409,6 +409,8 @@ static void st_collections_group_parts_part_description_map_alpha(void); | |||
409 | static void st_collections_group_parts_part_description_map_backface_cull(void); | 409 | static void st_collections_group_parts_part_description_map_backface_cull(void); |
410 | static void st_collections_group_parts_part_description_map_perspective_on(void); | 410 | static void st_collections_group_parts_part_description_map_perspective_on(void); |
411 | static void st_collections_group_parts_part_description_map_color(void); | 411 | static void st_collections_group_parts_part_description_map_color(void); |
412 | static void st_collections_group_parts_part_description_map_zoom_x(void); | ||
413 | static void st_collections_group_parts_part_description_map_zoom_y(void); | ||
412 | static void st_collections_group_parts_part_description_perspective_zplane(void); | 414 | static void st_collections_group_parts_part_description_perspective_zplane(void); |
413 | static void st_collections_group_parts_part_description_perspective_focal(void); | 415 | static void st_collections_group_parts_part_description_perspective_focal(void); |
414 | static void st_collections_group_parts_part_api(void); | 416 | static void st_collections_group_parts_part_api(void); |
@@ -808,6 +810,8 @@ New_Statement_Handler statement_handlers[] = | |||
808 | {"collections.group.parts.part.description.map.backface_cull", st_collections_group_parts_part_description_map_backface_cull}, | 810 | {"collections.group.parts.part.description.map.backface_cull", st_collections_group_parts_part_description_map_backface_cull}, |
809 | {"collections.group.parts.part.description.map.perspective_on", st_collections_group_parts_part_description_map_perspective_on}, | 811 | {"collections.group.parts.part.description.map.perspective_on", st_collections_group_parts_part_description_map_perspective_on}, |
810 | {"collections.group.parts.part.description.map.color", st_collections_group_parts_part_description_map_color}, | 812 | {"collections.group.parts.part.description.map.color", st_collections_group_parts_part_description_map_color}, |
813 | {"collections.group.parts.part.description.map.zoom.x", st_collections_group_parts_part_description_map_zoom_x}, | ||
814 | {"collections.group.parts.part.description.map.zoom.y", st_collections_group_parts_part_description_map_zoom_y}, | ||
811 | {"collections.group.parts.part.description.perspective.zplane", st_collections_group_parts_part_description_perspective_zplane}, | 815 | {"collections.group.parts.part.description.perspective.zplane", st_collections_group_parts_part_description_perspective_zplane}, |
812 | {"collections.group.parts.part.description.perspective.focal", st_collections_group_parts_part_description_perspective_focal}, | 816 | {"collections.group.parts.part.description.perspective.focal", st_collections_group_parts_part_description_perspective_focal}, |
813 | {"collections.group.parts.part.description.params.int", st_collections_group_parts_part_description_params_int}, | 817 | {"collections.group.parts.part.description.params.int", st_collections_group_parts_part_description_params_int}, |
@@ -1114,6 +1118,7 @@ New_Object_Handler object_handlers[] = | |||
1114 | #endif | 1118 | #endif |
1115 | {"collections.group.parts.part.description.map", NULL}, | 1119 | {"collections.group.parts.part.description.map", NULL}, |
1116 | {"collections.group.parts.part.description.map.rotation", NULL}, | 1120 | {"collections.group.parts.part.description.map.rotation", NULL}, |
1121 | {"collections.group.parts.part.description.map.zoom", NULL}, | ||
1117 | {"collections.group.parts.part.description.perspective", NULL}, | 1122 | {"collections.group.parts.part.description.perspective", NULL}, |
1118 | {"collections.group.parts.part.description.params", NULL}, | 1123 | {"collections.group.parts.part.description.params", NULL}, |
1119 | {"collections.group.parts.part.description.color_classes", NULL}, /* dup */ | 1124 | {"collections.group.parts.part.description.color_classes", NULL}, /* dup */ |
@@ -6279,6 +6284,8 @@ ob_collections_group_parts_part_description(void) | |||
6279 | ed->map.backcull = 0; | 6284 | ed->map.backcull = 0; |
6280 | ed->map.persp_on = 0; | 6285 | ed->map.persp_on = 0; |
6281 | ed->map.colors = NULL; | 6286 | ed->map.colors = NULL; |
6287 | ed->map.zoom.x = FROM_DOUBLE(1.0); | ||
6288 | ed->map.zoom.y = FROM_DOUBLE(1.0); | ||
6282 | ed->persp.zplane = 0; | 6289 | ed->persp.zplane = 0; |
6283 | ed->persp.focal = 1000; | 6290 | ed->persp.focal = 1000; |
6284 | ed->minmul.have = 1; | 6291 | ed->minmul.have = 1; |
@@ -10564,6 +10571,41 @@ st_collections_group_parts_part_description_map_color(void) | |||
10564 | current_desc->map.colors[current_desc->map.colors_count - 1] = color; | 10571 | current_desc->map.colors[current_desc->map.colors_count - 1] = color; |
10565 | } | 10572 | } |
10566 | 10573 | ||
10574 | /** | ||
10575 | @page edcref | ||
10576 | @property | ||
10577 | x | ||
10578 | @parameters | ||
10579 | [X horizontal zoom to use] | ||
10580 | @effect | ||
10581 | This sets the zoom rate of the horizontal | ||
10582 | @endproperty | ||
10583 | */ | ||
10584 | static void | ||
10585 | st_collections_group_parts_part_description_map_zoom_x(void) | ||
10586 | { | ||
10587 | check_arg_count(1); | ||
10588 | |||
10589 | current_desc->map.zoom.x = FROM_DOUBLE(parse_float(0)); | ||
10590 | } | ||
10591 | |||
10592 | /** | ||
10593 | @page edcref | ||
10594 | @property | ||
10595 | y | ||
10596 | @parameters | ||
10597 | [Y vertical zoom to use] | ||
10598 | @effect | ||
10599 | This sets the zoom rate of vertical | ||
10600 | @endproperty | ||
10601 | */ | ||
10602 | static void | ||
10603 | st_collections_group_parts_part_description_map_zoom_y(void) | ||
10604 | { | ||
10605 | check_arg_count(1); | ||
10606 | |||
10607 | current_desc->map.zoom.y = FROM_DOUBLE(parse_float(0)); | ||
10608 | } | ||
10567 | 10609 | ||
10568 | /** @edcsubsection{collections_group_parts_description_map_rotation, | 10610 | /** @edcsubsection{collections_group_parts_description_map_rotation, |
10569 | * Group.Parts.Part.Description.Map.Rotation} */ | 10611 | * Group.Parts.Part.Description.Map.Rotation} */ |