diff options
author | Andrii Kroitor <an.kroitor@samsung.com> | 2017-10-31 10:34:28 +0200 |
---|---|---|
committer | Andrii Kroitor <an.kroitor@samsung.com> | 2017-10-31 10:34:28 +0200 |
commit | 130052f2751067bb8c7d6501619fe07dcf57178a (patch) | |
tree | aaf17439bf909322b34d954f07b439e9b76983f7 /src | |
parent | c1d21cef8958da5d8a6f643f57bea4a7906385b2 (diff) |
edje_cc: move offset_scale to correct place and fix doc
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/edje/edje_cc_handlers.c | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c index 5170e17644..74e5ad9c0d 100644 --- a/src/bin/edje/edje_cc_handlers.c +++ b/src/bin/edje/edje_cc_handlers.c | |||
@@ -8331,6 +8331,7 @@ _copied_map_colors_get(Edje_Part_Description_Common *parent) | |||
8331 | aspect: 1 1; | 8331 | aspect: 1 1; |
8332 | clip_to: "clip_override_part_name"; | 8332 | clip_to: "clip_override_part_name"; |
8333 | no_render: 0; | 8333 | no_render: 0; |
8334 | offset_scale: 0; | ||
8334 | 8335 | ||
8335 | rel1 { | 8336 | rel1 { |
8336 | .. | 8337 | .. |
@@ -9463,6 +9464,32 @@ st_collections_group_parts_part_description_clip_to_id(void) | |||
9463 | } | 9464 | } |
9464 | } | 9465 | } |
9465 | 9466 | ||
9467 | /** | ||
9468 | @page edcref | ||
9469 | @property | ||
9470 | offset_scale | ||
9471 | @parameters | ||
9472 | [1 or 0] | ||
9473 | @effect | ||
9474 | Makes rel1/2 offset values scale by scale factor like min/max if set | ||
9475 | to 1, otherwise 0 means they will not scale. Note that the part | ||
9476 | as a whole has to be set to scale too like: | ||
9477 | |||
9478 | part { name: "partname"; scale: 1; | ||
9479 | ... | ||
9480 | |||
9481 | Defaults: 0 | ||
9482 | @endproperty | ||
9483 | */ | ||
9484 | static void | ||
9485 | st_collections_group_parts_part_description_offset_scale(void) | ||
9486 | { | ||
9487 | if (get_arg_count() == 1) | ||
9488 | current_desc->offset_is_scaled = parse_bool(0); | ||
9489 | else | ||
9490 | current_desc->offset_is_scaled = EINA_TRUE; | ||
9491 | } | ||
9492 | |||
9466 | /** @edcsubsection{collections_group_parts_description_relatives, | 9493 | /** @edcsubsection{collections_group_parts_description_relatives, |
9467 | * Group.Parts.Part.Description.Relatives (rel1/rel2)} */ | 9494 | * Group.Parts.Part.Description.Relatives (rel1/rel2)} */ |
9468 | 9495 | ||
@@ -12865,31 +12892,6 @@ st_collections_group_parts_part_description_scale(void) | |||
12865 | } | 12892 | } |
12866 | 12893 | ||
12867 | /** | 12894 | /** |
12868 | @page edcref | ||
12869 | @property | ||
12870 | offset_scale | ||
12871 | @parameters | ||
12872 | [1 or 0] | ||
12873 | @effect | ||
12874 | Makes rel1/2 offset values scale by scale factor like min/max if set | ||
12875 | to 1, otherwise 0 means they will not scale. 0 is the default. Note | ||
12876 | that the part as a whole has to be set to scale too like: | ||
12877 | |||
12878 | part { name: "partname"; scale: 1; | ||
12879 | ... | ||
12880 | |||
12881 | @endproperty | ||
12882 | */ | ||
12883 | static void | ||
12884 | st_collections_group_parts_part_description_offset_scale(void) | ||
12885 | { | ||
12886 | if (get_arg_count() == 1) | ||
12887 | current_desc->offset_is_scaled = parse_bool(0); | ||
12888 | else | ||
12889 | current_desc->offset_is_scaled = EINA_TRUE; | ||
12890 | } | ||
12891 | |||
12892 | /** | ||
12893 | @edcsubsection{collections_group_parts_description_texture, | 12895 | @edcsubsection{collections_group_parts_description_texture, |
12894 | Group.Parts.Part.Description.Texture} | 12896 | Group.Parts.Part.Description.Texture} |
12895 | */ | 12897 | */ |