tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7ffa4d13670d515795e0d12cdaf9822daa190cf7

commit 7ffa4d13670d515795e0d12cdaf9822daa190cf7
Author: Tom Hacohen <t...@stosb.com>
Date:   Fri Jul 31 16:00:08 2015 +0100

    Evas text: Migrate docs to new Eolian format.
---
 src/lib/evas/canvas/evas_text.eo | 280 +++++++++++++++------------------------
 1 file changed, 107 insertions(+), 173 deletions(-)

diff --git a/src/lib/evas/canvas/evas_text.eo b/src/lib/evas/canvas/evas_text.eo
index 8cdb204..b063d6b 100644
--- a/src/lib/evas/canvas/evas_text.eo
+++ b/src/lib/evas/canvas/evas_text.eo
@@ -4,165 +4,120 @@ class Evas.Text (Evas.Object, Efl.Text, 
Efl.Text_Properties, Evas.Filter)
    eo_prefix: evas_obj_text;
    methods {
       @property shadow_color {
-         set {
-            /*@
-            Sets the shadow color for the given text object.
+         [[Controls the shadow color for the given text object.
 
-            Shadow effects, which are fading colors decorating the text
-            underneath it, will just be shown if the object is set to one of
-            the following styles:
+           Shadow effects, which are fading colors decorating the text
+           underneath it, will just be shown if the object is set to one of
+           the following styles:
 
-            - #EVAS_TEXT_STYLE_SHADOW
-            - #EVAS_TEXT_STYLE_OUTLINE_SHADOW
-            - #EVAS_TEXT_STYLE_FAR_SHADOW
-            - #EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW
-            - #EVAS_TEXT_STYLE_SOFT_SHADOW
-            - #EVAS_TEXT_STYLE_FAR_SOFT_SHADOW
+           - @Evas.Text_Style_Type.shadow
+           - @Evas.Text_Style_Type.outline_shadow
+           - @Evas.Text_Style_Type.far_shadow
+           - @Evas.Text_Style_Type.outline_soft_shadow
+           - @Evas.Text_Style_Type.soft_shadow
+           - @Evas.Text_Style_Type.far_soft_shadow
 
-            One can also change the direction where the shadow grows to, with
-            evas_object_text_style_set().
+           One can also change the direction where the shadow grows to, with
+           @.style
 
-            @see evas_object_text_shadow_color_get() */
+           See @.shadow_color]]
+         set {
          }
          get {
-            /*@
-            Retrieves the shadow color for the given text object.
-
-            @note Use @c NULL pointers on the color components you're not
-            interested in: they'll be ignored by the function.
-
-            @see evas_object_text_shadow_color_set() for more details. */
+            [[Note: Use $NULL pointers on the color components you're not
+            interested in: they'll be ignored by the function.]]
          }
          values {
-            r: int; /*@ The red component of the given color. */
-            g: int; /*@ The green component of the given color. */
-            b: int; /*@ The blue component of the given color. */
-            a: int; /*@ The alpha component of the given color. */
+            r: int; [[The red component of the given color.]]
+            g: int; [[The green component of the given color.]]
+            b: int; [[The blue component of the given color.]]
+            a: int; [[The alpha component of the given color.]]
          }
       }
       @property ellipsis {
-         set {
-            /*@
-            @brief Sets the ellipsis that should be used for the text object.
+         [[Conttrols the ellipsis that should be used for the text object.
 
-            This is a value between 0.0 and 1.0 indicating the position of the 
text
-            to be shown. 0.0 means the start will be shown and the end 
trimmed, 1.0
-            means the beginning will be trimmed and the end will be shown, and 
any value
-            in between will cause ellipsis to be added in both end of the text 
and the
-            requested part to be shown.
-            -1.0 means ellipsis is turned off.
+          This is a value between 0.0 and 1.0 indicating the position of the 
text
+          to be shown. 0.0 means the start will be shown and the end trimmed, 
1.0
+          means the beginning will be trimmed and the end will be shown, and 
any value
+          in between will cause ellipsis to be added in both end of the text 
and the
+          requested part to be shown.
+          -1.0 means ellipsis is turned off.
 
-            @since 1.8 */
+          @since 1.8]]
+         set {
          }
          get {
-            /*@
-            @brief Gets the ellipsis currently set on the text object.
-
-            @return The ellipsis set on the text object. The ellipsis is -1.0.
-            @see evas_object_text_ellipsis_set.
-            @since 1.8 */
          }
          values {
-            ellipsis: double(-1); /*@ the ellipsis. */
+            ellipsis: double(-1); [[the ellipsis. Allowed values: -1.0 or 
0.0-1.0]]
          }
       }
       @property bidi_delimiters {
-         set {
-            /*@
-            @brief Sets the BiDi delimiters used in the textblock.
+         [[Sets the BiDi delimiters used in the textblock.
 
-            BiDi delimiters are use for in-paragraph separation of bidi 
segments. This
-            is useful for example in recipients fields of e-mail clients where 
bidi
-            oddities can occur when mixing RTL and LTR.
+           BiDi delimiters are use for in-paragraph separation of bidi 
segments. This
+           is useful for example in recipients fields of e-mail clients where 
bidi
+           oddities can occur when mixing RTL and LTR.
 
-            @since 1.1 */
+           @since 1.1]]
+         set {
          }
          get {
-            /*@
-            @brief Gets the BiDi delimiters used in the textblock.
-
-            BiDi delimiters are use for in-paragraph separation of bidi 
segments. This
-            is useful for example in recipients fields of e-mail clients where 
bidi
-            oddities can occur when mixing RTL and LTR.
-
-            @return A null terminated string of delimiters, e.g ",|". If 
empty, returns NULL.
-            @since 1.1 */
          }
          values {
-            delim: const(char)*; /*@ A null terminated string of delimiters, 
e.g ",|". */
+            delim: const(char)*; [[A null terminated string of delimiters, e.g 
",|".]]
          }
       }
       @property outline_color {
+         [[Controlss the outline color for the given text object.
+
+           Outline effects (colored lines around text glyphs) will just be
+           shown if the object is set to one of the following styles:
+           - @Evas.Text_Style_Type.outline
+           - @Evas.Text_Style_Type.soft_outline
+           - @Evas.Text_Style_Type.outline_shadow
+           - @Evas.Text_Style_Type.outline_soft_shadow]]
          set {
-            /*@
-            Sets the outline color for the given text object.
-
-            Outline effects (colored lines around text glyphs) will just be
-            shown if the object is set to one of the following styles:
-            - #EVAS_TEXT_STYLE_OUTLINE
-            - #EVAS_TEXT_STYLE_SOFT_OUTLINE
-            - #EVAS_TEXT_STYLE_OUTLINE_SHADOW
-            - #EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW
-
-            @see evas_object_text_outline_color_get() */
          }
          get {
-            /*@
-            Retrieves the outline color for the given text object.
-
-            @note Use @c NULL pointers on the color components you're not
-            interested in: they'll be ignored by the function.
-
-            @see evas_object_text_outline_color_set() for more details. */
          }
          values {
-            r: int; /*@ The red component of the given color. */
-            g: int; /*@ The green component of the given color. */
-            b: int; /*@ The blue component of the given color. */
-            a: int; /*@ The alpha component of the given color. */
+            r: int; [[The red component of the given color.]]
+            g: int; [[The green component of the given color.]]
+            b: int; [[The blue component of the given color.]]
+            a: int; [[The alpha component of the given color.]]
          }
       }
       @property glow2_color {
-         set {
-            /*@
-            Sets the 'glow 2' color for the given text object.
-
-            'Glow 2' effects, which are glowing colors decorating the text's
-            (immediate) surroundings, will just be shown if the object is set
-            to the #EVAS_TEXT_STYLE_GLOW style. See also
-            evas_object_text_glow_color_set().
+         [[Sets the 'glow 2' color for the given text object.
 
-            @see evas_object_text_glow2_color_get() */
+           'Glow 2' effects, which are glowing colors decorating the text's
+           (immediate) surroundings, will just be shown if the object is set
+           to the @Evas.Text_Style_Type.glow style. See also
+           @.glow_color.]]
+         set {
          }
          get {
-            /*@
-            Retrieves the 'glow 2' color for the given text object.
-
-            @note Use @c NULL pointers on the color components you're not
-            interested in: they'll be ignored by the function.
-
-            @see evas_object_text_glow2_color_set() for more details. */
          }
          values {
-            r: int; /*@ The red component of the given color. */
-            g: int; /*@ The green component of the given color. */
-            b: int; /*@ The blue component of the given color. */
-            a: int; /*@ The alpha component of the given color. */
+            r: int; [[The red component of the given color.]]
+            g: int; [[The green component of the given color.]]
+            b: int; [[The blue component of the given color.]]
+            a: int; [[The alpha component of the given color.]]
          }
       }
       @property style {
-         set {
-            /*@
-            Sets the style to apply on the given text object.
+            [[Controls the style to apply on the given text object.
 
-            Text object styles are one of the values in
-            #Evas_Text_Style_Type. Some of those values are combinations of
-            more than one style, and some account for the direction of the
-            rendering of shadow effects.
+              Text object styles are one of the values in @Evas.Text_Style_Type
+              Some of those values are combinations of more than one style,
+              and some account for the direction of the rendering of shadow 
effects.
 
-            @note One may use the helper macros #EVAS_TEXT_STYLE_BASIC_SET and
-            #EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET to assemble a style value.
+              Note: One may use the helper macros #EVAS_TEXT_STYLE_BASIC_SET 
and
+              #EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET to assemble a style 
value.]]
 
+            /* FIXME-doc:
             The following figure illustrates the text styles:
 
             @image html text-styles.png
@@ -174,49 +129,33 @@ class Evas.Text (Evas.Object, Efl.Text, 
Efl.Text_Properties, Evas.Filter)
             @see evas_object_text_outline_color_set()
             @see evas_object_text_glow_color_set()
             @see evas_object_text_glow2_color_set() */
+         set {
          }
          get {
-            /*@
-            Retrieves the style on use on the given text object.
-
-            @return the style type in use.
-
-            @see evas_object_text_style_set() for more details. */
          }
          values {
-            style: Evas.Text_Style_Type; /*@ a style type. */
+            style: Evas.Text_Style_Type; [[a style type.]]
          }
       }
       @property glow_color {
-         set {
-            /*@
-            Sets the glow color for the given text object.
+         [[Sets the glow color for the given text object.
 
-            Glow effects, which are glowing colors decorating the text's
-            surroundings, will just be shown if the object is set to the
-            #EVAS_TEXT_STYLE_GLOW style.
+           Glow effects, which are glowing colors decorating the text's
+           surroundings, will just be shown if the object is set to the
+           @Evas.Text_Style_Type.glow style.
 
-            @note Glow effects are placed from a short distance of the text
-            itself, but no touching it. For glowing effects right on the
-            borders of the glyphs, see 'glow 2' effects
-            (evas_object_text_glow2_color_set()).
-
-            @see evas_object_text_glow_color_get() */
+           Note: Glow effects are placed from a short distance of the text
+           itself, but no touching it. For glowing effects right on the
+           borders of the glyphs, see 'glow 2' effects.]]
+         set {
          }
          get {
-            /*@
-            Retrieves the glow color for the given text object.
-
-            @note Use @c NULL pointers on the color components you're not
-            interested in: they'll be ignored by the function.
-
-            @see evas_object_text_glow_color_set() for more details. */
          }
          values {
-            r: int; /*@ The red component of the given color. */
-            g: int; /*@ The green component of the given color. */
-            b: int; /*@ The blue component of the given color. */
-            a: int; /*@ The alpha component of the given color. */
+            r: int; [[The red component of the given color.]]
+            g: int; [[The green component of the given color.]]
+            b: int; [[The blue component of the given color.]]
+            a: int; [[The alpha component of the given color.]]
          }
       }
       @property max_descent {
@@ -226,22 +165,20 @@ class Evas.Text (Evas.Object, Efl.Text, 
Efl.Text_Properties, Evas.Filter)
       }
       @property style_pad {
          get {
-            /*@
-            Gets the text style pad of a text object. */
+            [[Gets the text style pad of a text object.]]
          }
          values {
-            l: int; /*@ The left pad (or @c NULL). */
-            r: int; /*@ The right pad (or @c NULL). */
-            t: int; /*@ The top pad (or @c NULL). */
-            b: int; /*@ The bottom pad (or @c NULL). */
+            l: int; [[The left pad (or $NULL).]]
+            r: int; [[The right pad (or $NULL).]]
+            t: int; [[The top pad (or $NULL).]]
+            b: int; [[The bottom pad (or $NULL).]]
          }
       }
       @property direction {
          get {
-            /*@
-            Retrieves the direction of the text currently being displayed in 
the
-            text object.
-            @return the direction of the text */
+            [[Retrieves the direction of the text currently being displayed in 
the
+            text object.]]
+
             return: Evas.BiDi_Direction;
          }
       }
@@ -276,42 +213,39 @@ class Evas.Text (Evas.Object, Efl.Text, 
Efl.Text_Properties, Evas.Filter)
          }
       }
       last_up_to_pos @const {
-         /*@ Returns the logical position of the last char in the text up to 
the pos given. this is NOT the position of the last char because of the 
possibility of RTL in the text. */
+         [[Returns the logical position of the last char in the text up to the 
pos given. this is NOT the position of the last char because of the possibility 
of RTL in the text.]]
          return: int(-1);
          params {
-            @in x: Evas.Coord; /*@ in */
-            @in y: Evas.Coord; /*@ in */
+            @in x: Evas.Coord;
+            @in y: Evas.Coord;
          }
       }
       char_coords_get @const {
          return: int;
          params {
-            @in x: Evas.Coord; /*@ in */
-            @in y: Evas.Coord; /*@ in */
-            @out cx: Evas.Coord; /*@ out */
-            @out cy: Evas.Coord; /*@ out */
-            @out cw: Evas.Coord; /*@ out */
-            @out ch: Evas.Coord; /*@ out */
+            @in x: Evas.Coord;
+            @in y: Evas.Coord;
+            @out cx: Evas.Coord;
+            @out cy: Evas.Coord;
+            @out cw: Evas.Coord;
+            @out ch: Evas.Coord;
          }
       }
       char_pos_get @const {
-         /*@
-         Retrieve position and dimension information of a character within a 
text @c Evas_Object.
+         [[Retrieve position and dimension information of a character within a 
text @Evas.Object
 
          This function is used to obtain the X, Y, width and height of the 
character
-         located at @p pos within the @c Evas_Object @p obj. @p obj must be a 
text object
-         as created with evas_object_text_add(). Any of the @c Evas_Coord 
parameters (@p cx,
-         @p cy, @p cw, @p ch) may be @c NULL in which case no value will be 
assigned to that
-         parameter.
+         located at $pos within the @Evas.Object $obj. $obj must be a text 
object
+         Any of the $Evas_Coord parameters ($cx, $cy, $cw, $ch) may be $NULL 
in which case no value will be assigned to that
+         parameter.]]
 
-         @return @c EINA_FALSE on success, @c EINA_TRUE on error. */
-         return: bool;
+         return: bool; [[$false on success, $true otherwise]]
          params {
-            @in pos: int; /*@ The character position to request co-ordinates 
for. */
-            @out cx: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store 
the X value in (can be NULL). */
-            @out cy: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store 
the Y value in (can be NULL). */
-            @out cw: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store 
the Width value in (can be NULL). */
-            @out ch: Evas.Coord; /*@ A pointer to an @c Evas_Coord to store 
the Height value in (can be NULL). */
+            @in pos: int; [[The character position to request co-ordinates 
for.]]
+            @out cx: Evas.Coord; [[A pointer to an @Evas.Coord to store the X 
value in (can be NULL).]]
+            @out cy: Evas.Coord; [[A pointer to an @Evas.Coord to store the Y 
value in (can be NULL).]]
+            @out cw: Evas.Coord; [[A pointer to an @Evas.Coord to store the 
Width value in (can be NULL).]]
+            @out ch: Evas.Coord; [[A pointer to an @Evas.Coord to store the 
Height value in (can be NULL).]]
          }
       }
    }

-- 


Reply via email to