lorddrew pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=130052f2751067bb8c7d6501619fe07dcf57178a
commit 130052f2751067bb8c7d6501619fe07dcf57178a Author: Andrii Kroitor <[email protected]> Date: Tue Oct 31 10:34:28 2017 +0200 edje_cc: move offset_scale to correct place and fix doc --- src/bin/edje/edje_cc_handlers.c | 52 +++++++++++++++++++++-------------------- 1 file 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) aspect: 1 1; clip_to: "clip_override_part_name"; no_render: 0; + offset_scale: 0; rel1 { .. @@ -9463,6 +9464,32 @@ st_collections_group_parts_part_description_clip_to_id(void) } } +/** + @page edcref + @property + offset_scale + @parameters + [1 or 0] + @effect + Makes rel1/2 offset values scale by scale factor like min/max if set + to 1, otherwise 0 means they will not scale. Note that the part + as a whole has to be set to scale too like: + + part { name: "partname"; scale: 1; + ... + + Defaults: 0 + @endproperty +*/ +static void +st_collections_group_parts_part_description_offset_scale(void) +{ + if (get_arg_count() == 1) + current_desc->offset_is_scaled = parse_bool(0); + else + current_desc->offset_is_scaled = EINA_TRUE; +} + /** @edcsubsection{collections_group_parts_description_relatives, * Group.Parts.Part.Description.Relatives (rel1/rel2)} */ @@ -12865,31 +12892,6 @@ st_collections_group_parts_part_description_scale(void) } /** - @page edcref - @property - offset_scale - @parameters - [1 or 0] - @effect - Makes rel1/2 offset values scale by scale factor like min/max if set - to 1, otherwise 0 means they will not scale. 0 is the default. Note - that the part as a whole has to be set to scale too like: - - part { name: "partname"; scale: 1; - ... - - @endproperty -*/ -static void -st_collections_group_parts_part_description_offset_scale(void) -{ - if (get_arg_count() == 1) - current_desc->offset_is_scaled = parse_bool(0); - else - current_desc->offset_is_scaled = EINA_TRUE; -} - -/** @edcsubsection{collections_group_parts_description_texture, Group.Parts.Part.Description.Texture} */ --
