aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2017-10-31 10:34:28 +0200
committerAndrii Kroitor <an.kroitor@samsung.com>2017-10-31 10:34:28 +0200
commit130052f2751067bb8c7d6501619fe07dcf57178a (patch)
treeaaf17439bf909322b34d954f07b439e9b76983f7 /src/bin/edje
parenteolian: Add some color to those warning messages (diff)
downloadefl-130052f2751067bb8c7d6501619fe07dcf57178a.tar.gz
edje_cc: move offset_scale to correct place and fix doc
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_handlers.c52
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)
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}
*/