summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2017-10-27 09:40:43 +0300
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-07 18:30:08 +0900
commit168d5e07b14a99d172d04f464b58cf527556ccec (patch)
treefa842bf22098c1f26bd368d7b74e1f205ba7f16d
parenta4baec04e25fcabe0b4d3e043346b48e74964427 (diff)
downloadefl-168d5e07b14a99d172d04f464b58cf527556ccec.tar.gz
edje_cc: fix errors in documentation
@fix
-rw-r--r--src/bin/edje/edje_cc_handlers.c108
1 files changed, 87 insertions, 21 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 43c292f1d7..9d2365f315 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -3048,9 +3048,9 @@ ob_color_tree(void)
color_classes {
color_class {
name: "colorclassname";
- color: [0-255] [0-255] [0-255] [0-255];
- color2: [0-255] [0-255] [0-255] [0-255];
- color3: [0-255] [0-255] [0-255] [0-255]
+ color: 255 0 0 255;
+ color2: "#0F0F";
+ color3: "#0000FFFF";
}
..
}
@@ -3168,9 +3168,20 @@ parse_color(void *base)
@property
color
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
The main color.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 0 0 0 0
@endproperty
*/
static void
@@ -3188,9 +3199,20 @@ st_color_class_color(void)
@property
color2
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
Used as outline in text and textblock parts.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 0 0 0 0
@endproperty
*/
static void
@@ -3208,9 +3230,20 @@ st_color_class_color2(void)
@property
color3
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
Used as shadow in text and textblock parts.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 0 0 0 0
@endproperty
*/
static void
@@ -3809,7 +3842,7 @@ st_collections_group_sound_tone(void)
Valid types are:
@li RAW: Uncompressed.
@li COMP: Lossless compression.
- @li LOSSY [-0.1 - 1.0]: Lossy compression with quality from 0.0 to 1.0.
+ @li LOSSY [45.0 - 1000.0]: Lossy compression with quality from 45.0 to 1000.0.
@li AS_IS: Check for re-encoding, no compression/encoding, just write the file information as it is.
@since 1.1
@@ -5132,7 +5165,7 @@ st_collections_group_max(void)
/**
@page edcref
@property
- scne_size
+ scene_size
@parameters
[width] [height]
@effect
@@ -8996,7 +9029,7 @@ st_collections_group_parts_part_description_size_class(void)
@parameters
[width] [height]
@effect
- Restricts resizing of each dimension to values divisibles by its value.
+ Restricts resizing of each dimension to values divisible by its value.
This causes the part to jump from value to value while resizing. The
default value is "0 0" disabling stepping.
@endproperty
@@ -9066,7 +9099,7 @@ st_collections_group_parts_part_description_aspect_preference(void)
[color class name]
@effect
The part will use the color values of the named color_class, these
- values can be overrided by the "color", "color2" and "color3"
+ values can be overridden by the "color", "color2" and "color3"
properties set below.
@endproperty
*/
@@ -9090,9 +9123,20 @@ st_collections_group_parts_part_description_color_class(void)
@property
color
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
- Sets the main color to the specified values (between 0 and 255).
+ Sets the main color.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 255 255 255 255
@endproperty
*/
static void
@@ -9113,9 +9157,20 @@ st_collections_group_parts_part_description_color(void)
@property
color2
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
- Sets the text shadow color to the specified values (0 to 255).
+ Sets the text shadow color.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 0 0 0 255
@endproperty
*/
static void
@@ -9136,9 +9191,20 @@ st_collections_group_parts_part_description_color2(void)
@property
color3
@parameters
- [red] [green] [blue] [alpha]
+ [red] [green] [blue] [alpha] or "#[RR][GG][BB](AA)" or "#[R][G][B](A)"
@effect
- Sets the text outline color to the specified values (0 to 255).
+ Sets the text outline color.
+
+ Format:
+ @li [red] [green] [blue] [alpha]: one integer [0-255] for each
+ RGBA channel, i.e. 255 0 0 255
+ @li "#[RR][GG][BB](AA)": string with two hex values per RGBA channel,
+ i.e "#FF0000FF" or "#FF0000"
+ @li "#[R][G][B](A)": string with one hex value per RGBA channel,
+ i.e "#F00F" or "#F00".\n
+ In string format you can omit alpha channel and it will be set to FF.
+
+ Defaults: 0 0 0 128
@endproperty
*/
static void
@@ -9171,7 +9237,7 @@ st_collections_group_parts_part_description_color3(void)
@effect
Overrides the 'clip_to' property of this part. This allows switching
clippers (or masks) at runtime by changing this part's state. When
- transitionning between two states, the switch of the clipper shall
+ transitioning between two states, the switch of the clipper shall
happen at the end of the animation, when the new state is finally set
(this is similar to the 'visible' flag).
@endproperty
@@ -10911,7 +10977,7 @@ st_collections_group_parts_part_description_text_text_class(void)
[font alias]
@effect
This sets the font family to one of the aliases set up in the "fonts"
- block. Can be overrided by the application.
+ block. Can be overridden by the application.
@endproperty
*/
static void
@@ -11007,7 +11073,7 @@ st_collections_group_parts_part_description_text_repch(void)
@parameters
[font size in points (pt)]
@effect
- Sets the default font size for the text part. Can be overrided by the
+ Sets the default font size for the text part. Can be overridden by the
application.
@endproperty
*/
@@ -13820,7 +13886,7 @@ st_collections_group_parts_part_description_map_color(void)
/**
@page edcref
@property
- x
+ zoom.x
@parameters
[X horizontal zoom to use]
@effect
@@ -13838,7 +13904,7 @@ st_collections_group_parts_part_description_map_zoom_x(void)
/**
@page edcref
@property
- y
+ zoom.y
@parameters
[Y vertical zoom to use]
@effect