eolian: use new syntax for const methods as per wiki

This commit is contained in:
Daniel Kolesa 2014-07-22 17:13:24 +01:00
parent ab8fe63afa
commit d8e54e2636
22 changed files with 140 additions and 352 deletions

View File

@ -527,21 +527,19 @@ class Edje.Object (Evas.Smart_Clipped)
@in bool clear; /*@ If set, will delete subobjs on remove */
}
}
part_external_param_type_get {
part_external_param_type_get @const {
/*@
Facility to query the type of the given parameter of the given part.
@return @c EDJE_EXTERNAL_PARAM_TYPE_MAX on errors, or another value
from #Edje_External_Param_Type on success. */
const;
return Edje_External_Param_Type;
params {
@in const(char)* part; /*@ The part name */
@out const(char) param; /*@ the parameter name to use. */
}
}
part_text_select_allow_set {
part_text_select_allow_set @const {
/*@
@brief Enables selection if the entry is an EXPLICIT selection mode
type.
@ -549,22 +547,18 @@ class Edje.Object (Evas.Smart_Clipped)
The default is to @b not allow selection. This function only affects user
selection, functions such as edje_object_part_text_select_all() and
edje_object_part_text_select_none() are not affected. */
const;
params {
@in const(char)* part; /*@ The part name */
@in bool allow; /*@ EINA_TRUE to enable, EINA_FALSE otherwise */
}
}
part_state_get {
part_state_get @const {
/*@
@brief Returns the state of the Edje part.
@return The part state:\n
"default" for the default state\n
"" for other states */
const;
return const(char)*;
params {
@in const(char)* part; /*@ The part name */
@ -611,7 +605,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in double dy; /*@ The y step amount */
}
}
part_drag_step_get {
part_drag_step_get @const {
/*@
@brief Gets the drag step increment values.
@ -619,8 +613,6 @@ class Edje.Object (Evas.Smart_Clipped)
@see edje_object_part_drag_step_set() */
const;
return bool;
params {
@in const(char)* part; /*@ The part */
@ -628,7 +620,7 @@ class Edje.Object (Evas.Smart_Clipped)
@out double dy; /*@ The y step increment pointer */
}
}
part_text_imf_context_get {
part_text_imf_context_get @const {
/*@
@brief Get the input method context in entry.
@ -637,23 +629,19 @@ class Edje.Object (Evas.Smart_Clipped)
@return The input method context (Ecore_IMF_Context *) in entry
@since 1.2.0 */
const;
return void *;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_select_begin {
part_text_select_begin @const {
/*@
@brief Starts selecting at current cursor position */
const;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_style_user_peek {
part_text_style_user_peek @const {
/*@
@brief Return the text of the object part.
@ -662,8 +650,6 @@ class Edje.Object (Evas.Smart_Clipped)
This function returns the style associated with the textblock part.
@since 1.2.0 */
const;
return const(char)*;
params {
@in const(char)* part; /*@ The part name */
@ -731,7 +717,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in const(char)* text; /*@ The text string */
}
}
part_geometry_get {
part_geometry_get @const {
/*@
@brief Retrieve the geometry of a given Edje part, in a given Edje
object's group definition, <b>relative to the object's area</b>
@ -745,8 +731,6 @@ class Edje.Object (Evas.Smart_Clipped)
@note On failure, this function will make all non-@c NULL geometry
pointers' pointed variables be set to zero. */
const;
return bool;
params {
@in const(char)* part; /*@ The Edje part's name */
@ -758,7 +742,7 @@ class Edje.Object (Evas.Smart_Clipped)
@out Evas_Coord h; /*@ A pointer to a variable where to store the part's height */
}
}
part_text_input_panel_hide {
part_text_input_panel_hide @const {
/*@
@brief Hide the input panel (virtual keyboard).
@see edje_object_part_text_input_panel_show
@ -767,13 +751,11 @@ class Edje.Object (Evas.Smart_Clipped)
This API can be used in the case of manually controlling by using edje_object_part_text_input_panel_enabled_set.
@since 1.2.0 */
const;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_item_geometry_get {
part_text_item_geometry_get @const {
/*@
@brief Return item geometry.
@ -781,8 +763,6 @@ class Edje.Object (Evas.Smart_Clipped)
This function return a list of Evas_Textblock_Rectangle item
rectangles. */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -807,11 +787,9 @@ class Edje.Object (Evas.Smart_Clipped)
@in Evas_Object *child_obj; /*@ The object to pack in */
}
}
part_text_select_abort {
part_text_select_abort @const {
/*@
@brief Aborts any selection action on a part. */
const;
params {
@in const(char)* part; /*@ The part name */
}
@ -862,13 +840,11 @@ class Edje.Object (Evas.Smart_Clipped)
@in int len; /*@ the length of data, in bytes, to send to the input panel */
}
}
part_text_input_panel_imdata_get {
part_text_input_panel_imdata_get @const {
/*@
Get the specific data of the current active input panel.
@since 1.2.0 */
const;
params {
@in const(char)* part; /*@ The part name */
@in void *data; /*@ The specific data to be got from the input panel */
@ -970,7 +946,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in double dy; /*@ The y value */
}
}
part_drag_value_get {
part_drag_value_get @const {
/*@
@brief Get the dragable object location.
@ -980,8 +956,6 @@ class Edje.Object (Evas.Smart_Clipped)
@see edje_object_part_drag_value_set()
Gets the drag location values. */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -1009,14 +983,12 @@ class Edje.Object (Evas.Smart_Clipped)
@in int pos; /*@ the position of the cursor */
}
}
part_text_cursor_pos_get {
part_text_cursor_pos_get @const {
/*@
@brief Retrieves the current position of the cursor
@return The cursor position
@since 1.1.0 */
const;
return int;
params {
@in const(char)* part; /*@ The part name */
@ -1036,7 +1008,7 @@ class Edje.Object (Evas.Smart_Clipped)
return int;
}
part_text_cursor_content_get {
part_text_cursor_content_get @const {
/*@
@brief Returns the content (char) at the cursor position.
@see evas_textblock_cursor_content_get
@ -1044,8 +1016,6 @@ class Edje.Object (Evas.Smart_Clipped)
You must free the return (if not NULL) after you are done with it.
@return The character string pointed to (may be a multi-byte utf8 sequence) terminated by a nul byte. */
const;
return char *;
params {
@in const(char)* part; /*@ The part name */
@ -1068,7 +1038,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Input_Panel_Layout layout; /*@ layout type */
}
}
part_text_input_panel_layout_get {
part_text_input_panel_layout_get @const {
/*@
@brief Get the layout of the input panel.
@ -1076,8 +1046,6 @@ class Edje.Object (Evas.Smart_Clipped)
@see edje_object_part_text_input_panel_layout_set
@since 1.1 */
const;
return Edje_Input_Panel_Layout;
params {
@in const(char)* part; /*@ The part name */
@ -1114,7 +1082,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Input_Panel_Lang lang; /*@ the language to be set to the input panel. */
}
}
part_text_input_panel_language_get {
part_text_input_panel_language_get @const {
/*@
Get the language mode of the input panel.
@ -1122,22 +1090,18 @@ class Edje.Object (Evas.Smart_Clipped)
@return input panel language type
@since 1.2.0 */
const;
return Edje_Input_Panel_Lang;
params {
@in const(char)* part; /*@ The part name */
}
}
part_table_col_row_size_get {
part_table_col_row_size_get @const {
/*@
@brief Gets the number of columns and rows the table has.
@return @c EINA_TRUE get some data, @c EINA_FALSE on failure
Retrieves the size of the table in number of columns and rows. */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -1145,7 +1109,7 @@ class Edje.Object (Evas.Smart_Clipped)
@out int rows; /*@ Pointer where to store number of rows (can be NULL) */
}
}
part_external_object_get {
part_external_object_get @const {
/*@
@brief Get the object created by this external part.
@ -1162,21 +1126,17 @@ class Edje.Object (Evas.Smart_Clipped)
@return The externally created object, or NULL if there is none or
part is not an external. */
const;
return Evas_Object *;
params {
@in const(char)* part; /*@ The part name */
}
}
part_external_content_get {
part_external_content_get @const {
/*@
@brief Get an object contained in an part of type EXTERNAL
The @p content string must not be NULL. Its actual value depends on the
code providing the EXTERNAL. */
const;
return Evas_Object *;
params {
@in const(char)* part; /*@ The name of the part holding the EXTERNAL */
@ -1215,25 +1175,21 @@ class Edje.Object (Evas.Smart_Clipped)
@in bool enabled; /*@ If true, the input panel is appeared when entry is clicked or has a focus */
}
}
part_text_input_panel_enabled_get {
part_text_input_panel_enabled_get @const {
/*@
@brief Retrieve the attribute to show the input panel automatically.
@see edje_object_part_text_input_panel_enabled_set
@return EINA_TRUE if it supports or EINA_FALSE otherwise
@since 1.1.0 */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_select_extend {
part_text_select_extend @const {
/*@
@brief Extends the current selection to the current cursor position */
const;
params {
@in const(char)* part; /*@ The part name */
}
@ -1259,7 +1215,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in uint pos; /*@ The position where to insert child */
}
}
part_text_anchor_geometry_get {
part_text_anchor_geometry_get @const {
/*@
@brief Return a list of Evas_Textblock_Rectangle anchor rectangles.
@ -1268,8 +1224,6 @@ class Edje.Object (Evas.Smart_Clipped)
This function return a list of Evas_Textblock_Rectangle anchor
rectangles. */
const;
return const(Eina.List)*;
params {
@in const(char)* part; /*@ The part name */
@ -1305,15 +1259,13 @@ class Edje.Object (Evas.Smart_Clipped)
@in double dy; /*@ The y page step increment */
}
}
part_drag_page_get {
part_drag_page_get @const {
/*@
@brief Gets the page step increments.
Gets the x,y page step increments for the dragable object.
@see edje_object_part_drag_page_set() */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -1386,7 +1338,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in int variation; /*@ layout variation type */
}
}
part_text_input_panel_layout_variation_get {
part_text_input_panel_layout_variation_get @const {
/*@
@brief Get the layout variation of the input panel.
@ -1394,8 +1346,6 @@ class Edje.Object (Evas.Smart_Clipped)
@see edje_object_part_text_input_panel_layout_variation_set
@since 1.8 */
const;
return int;
params {
@in const(char)* part; /*@ The part name */
@ -1425,18 +1375,16 @@ class Edje.Object (Evas.Smart_Clipped)
@in void *msg; /*@ The message's body, a struct depending on @p type */
}
}
part_text_select_none {
part_text_select_none @const {
/*@
@brief Set the selection to be none.
This function sets the selection text to be none. */
const;
params {
@in const(char)* part; /*@ The part name */
}
}
part_object_get {
part_object_get @const {
/*@
@brief Get a handle to the Evas object implementing a given Edje
part, in an Edje object.
@ -1453,8 +1401,6 @@ class Edje.Object (Evas.Smart_Clipped)
query information about its current state (with @c
evas_object_visible_get() or @c evas_object_color_get() for
example), though. */
const;
return const(Evas_Object)*;
params {
@in const(char)* part; /*@ The Edje part's name */
@ -1478,15 +1424,13 @@ class Edje.Object (Evas.Smart_Clipped)
@in double dh; /*@ The drag height */
}
}
part_drag_size_get {
part_drag_size_get @const {
/*@
@brief Get the dragable object size.
Gets the dragable object size.
@see edje_object_part_drag_size_set() */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -1512,7 +1456,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Text_Filter_Cb func; /*@ The function callback to remove */
}
}
part_drag_dir_get {
part_drag_dir_get @const {
/*@
@brief Determine dragable directions.
@ -1524,8 +1468,6 @@ class Edje.Object (Evas.Smart_Clipped)
#EDJE_DRAG_DIR_X: Dragable in X direction\n
#EDJE_DRAG_DIR_Y: Dragable in Y direction\n
#EDJE_DRAG_DIR_XY: Dragable in X & Y directions */
const;
return Edje_Drag_Dir;
params {
@in const(char)* part; /*@ The part name */
@ -1546,7 +1488,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in const(char)* text_to_escape; /*@ The text string */
}
}
part_text_unescaped_get {
part_text_unescaped_get @const {
/*@
@brief Returns the text of the object part, without escaping.
@ -1559,8 +1501,6 @@ class Edje.Object (Evas.Smart_Clipped)
when done.
@see edje_object_part_text_unescaped_set(). */
const;
return char *;
params {
@in const(char)* part; /*@ The part name */
@ -1628,13 +1568,11 @@ class Edje.Object (Evas.Smart_Clipped)
@in void *data; /*@ A pointer to data to pass in to @p func. */
}
}
part_text_select_all {
part_text_select_all @const {
/*@
@brief Set the selection to be everything.
This function selects all text of the object of the part. */
const;
params {
@in const(char)* part; /*@ The part name */
}
@ -1650,14 +1588,12 @@ class Edje.Object (Evas.Smart_Clipped)
@in bool disabled; /*@ The state */
}
}
part_text_input_panel_return_key_disabled_get {
part_text_input_panel_return_key_disabled_get @const {
/*@
Get whether the return key on the input panel should be disabled or not.
@return EINA_TRUE if it should be disabled
@since 1.2.0 */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -1674,14 +1610,12 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Text_Autocapital_Type autocapital_type; /*@ The type of autocapitalization */
}
}
part_text_autocapital_type_get {
part_text_autocapital_type_get @const {
/*@
@brief Retrieves the autocapitalization type
@return The autocapitalization type
@since 1.1.0 */
const;
return Edje_Text_Autocapital_Type;
params {
@in const(char)* part; /*@ The part name */
@ -1712,20 +1646,18 @@ class Edje.Object (Evas.Smart_Clipped)
@in bool prediction; /*@ If true, the prediction feature is allowed. */
}
}
part_text_prediction_allow_get {
part_text_prediction_allow_get @const {
/*@
@brief Get whether the prediction is allowed or not.
@return EINA_TRUE if prediction feature is allowed.
@since 1.2.0 */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
}
}
data_get {
data_get @const {
/*@
@brief Retrive an <b>EDC data field's value</b> from a given Edje
object's group.
@ -1759,8 +1691,6 @@ class Edje.Object (Evas.Smart_Clipped)
queries for a @b global EDC data field on an EDC declaration file.
@see edje_object_file_set() */
const;
return const(char)*;
params {
@in const(char)* key; /*@ The data field's key string */
@ -1841,27 +1771,23 @@ class Edje.Object (Evas.Smart_Clipped)
return int;
}
part_swallow_get {
part_swallow_get @const {
/*@
@brief Get the object currently swallowed by a part.
@return The swallowed object, or NULL if there is none. */
const;
return Evas_Object *;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_imf_context_reset {
part_text_imf_context_reset @const {
/*@
@brief Reset the input method context if needed.
This can be necessary in the case where modifying the buffer would confuse on-going input method behavior
@since 1.2.0 */
const;
params {
@in const(char)* part; /*@ The part name */
}
@ -1879,7 +1805,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Input_Panel_Return_Key_Type return_key_type; /*@ The type of "return" key on the input panel */
}
}
part_text_input_panel_return_key_type_get {
part_text_input_panel_return_key_type_get @const {
/*@
Get the "return" key type.
@ -1887,20 +1813,16 @@ class Edje.Object (Evas.Smart_Clipped)
@return The type of "return" key on the input panel
@since 1.2.0 */
const;
return Edje_Input_Panel_Return_Key_Type;
params {
@in const(char)* part; /*@ The part name */
}
}
part_table_child_get {
part_table_child_get @const {
/*@
@brief Retrieve a child from a table
@return The child Evas_Object */
const;
return Evas_Object *;
params {
@in const(char)* part; /*@ The part name */
@ -1962,7 +1884,7 @@ class Edje.Object (Evas.Smart_Clipped)
returned. */
}
}
part_external_param_get {
part_external_param_get @const {
/*@
@brief Get the parameter for the external part.
@ -1980,8 +1902,6 @@ class Edje.Object (Evas.Smart_Clipped)
@return @c EINA_TRUE if everything went fine and @p param members
are filled with information, @c EINA_FALSE on errors and @p
param member values are not set or valid. */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -2107,7 +2027,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in const(char)* text; /*@ The text string */
}
}
part_text_get {
part_text_get @const {
/*@
@brief Return the text of the object part.
@ -2116,8 +2036,6 @@ class Edje.Object (Evas.Smart_Clipped)
This function returns the text associated to the object part.
@see edje_object_part_text_set(). */
const;
return const(char)*;
params {
@in const(char)* part; /*@ The part name */
@ -2135,20 +2053,18 @@ class Edje.Object (Evas.Smart_Clipped)
@in bool ondemand; /*@ If true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.) */
}
}
part_text_input_panel_show_on_demand_get {
part_text_input_panel_show_on_demand_get @const {
/*@
Get the attribute to show the input panel in case of only an user's explicit Mouse Up event.
@return @c EINA_TRUE if the input panel will be shown in case of only Mouse up event.
@since 1.9.0 */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_selection_get {
part_text_selection_get @const {
/*@
@brief Return the selection text of the object part.
@ -2158,21 +2074,17 @@ class Edje.Object (Evas.Smart_Clipped)
@see edje_object_part_text_select_all()
@see edje_object_part_text_select_none() */
const;
return const(char)*;
params {
@in const(char)* part; /*@ The part name */
}
}
part_text_cursor_is_format_get {
part_text_cursor_is_format_get @const {
/*@
@brief Returns whether the cursor points to a format.
@see evas_textblock_cursor_is_format
@return EINA_TRUE if it's true, EINA_FALSE otherwise. */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@ -2215,7 +2127,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in int a3; /*@ Shadow Alpha value */
}
}
color_class_get {
color_class_get @const {
/*@
@brief Gets the object color class.
@ -2232,8 +2144,6 @@ class Edje.Object (Evas.Smart_Clipped)
@note unlike Evas, Edje colors are @b not pre-multiplied. That is,
half-transparent white is 255 255 255 128. */
const;
return bool;
params {
@in const(char)* color_class;
@ -2279,12 +2189,10 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Cursor cur; /*@ the edje cursor to work on */
}
}
part_text_cursor_geometry_get {
part_text_cursor_geometry_get @const {
/*@
@brief Returns the cursor geometry of the part relative to the edje
object. */
const;
params {
@in const(char)* part; /*@ The part name */
@out Evas_Coord x; /*@ Cursor X position */
@ -2293,15 +2201,13 @@ class Edje.Object (Evas.Smart_Clipped)
@out Evas_Coord h; /*@ Cursor height */
}
}
part_text_anchor_list_get {
part_text_anchor_list_get @const {
/*@
@brief Return a list of char anchor names.
@return The list of anchors (const char *), do not modify!
This function returns a list of char anchor names. */
const;
return const(Eina.List)*;
params {
@in const(char)* part; /*@ The part name */
@ -2345,7 +2251,7 @@ class Edje.Object (Evas.Smart_Clipped)
@in void *data; /*@ User provided data to pass to the filter function */
}
}
part_text_input_panel_show {
part_text_input_panel_show @const {
/*@
@brief Show the input panel (virtual keyboard) based on the input panel property such as layout, autocapital types, and so on.
@ -2353,13 +2259,11 @@ class Edje.Object (Evas.Smart_Clipped)
This API can be used in the case of manually controlling by using edje_object_part_text_input_panel_enabled_set.
@since 1.2.0 */
const;
params {
@in const(char)* part; /*@ The part name */
}
}
part_exists {
part_exists @const {
/*@
@brief Check if an Edje part exists in a given Edje object's group
definition.
@ -2372,8 +2276,6 @@ class Edje.Object (Evas.Smart_Clipped)
This call is useful, for example, when one could expect or not a
given GUI element, depending on the @b theme applied to @p obj. */
const;
return bool;
params {
@in const(char)* part; /*@ The part's name to check for existence in @p obj's
@ -2399,20 +2301,18 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Markup_Filter_Cb func; /*@ The function callback to remove */
}
}
part_text_cursor_is_visible_format_get {
part_text_cursor_is_visible_format_get @const {
/*@
@brief Return true if the cursor points to a visible format
For example \\t, \\n, item and etc.
@see evas_textblock_cursor_format_is_visible_get */
const;
return bool;
params {
@in const(char)* part; /*@ The part name */
@in Edje_Cursor cur; /*@ The cursor to adjust. */
}
}
part_text_user_insert {
part_text_user_insert @const {
/*@
@brief This function inserts text as if the user has inserted it.
@ -2420,8 +2320,6 @@ class Edje.Object (Evas.Smart_Clipped)
callbacks as appropriate.
@since 1.2.0 */
const;
params {
@in const(char)* part; /*@ The part name */
@in const(char)* text; /*@ The text string */
@ -2438,15 +2336,13 @@ class Edje.Object (Evas.Smart_Clipped)
@in Edje_Cursor cur; /*@ the edje cursor to work on */
}
}
part_text_item_list_get {
part_text_item_list_get @const {
/*@
@brief Return a list of char item names.
@return The list of items (const char *), do not modify!
This function returns a list of char item names. */
const;
return const(Eina.List)*;
params {
@in const(char)* part; /*@ The part name */

View File

@ -767,7 +767,8 @@ parse_method(Eo_Lexer *ls, Eina_Bool ctor)
int line, col;
Eo_Method_Def *meth = NULL;
Eina_Bool has_const = EINA_FALSE, has_params = EINA_FALSE,
has_return = EINA_FALSE, has_legacy = EINA_FALSE;
has_return = EINA_FALSE, has_legacy = EINA_FALSE,
has_protected = EINA_FALSE;
meth = calloc(1, sizeof(Eo_Method_Def));
ls->tmp.meth = meth;
if (ctor)
@ -782,12 +783,23 @@ parse_method(Eo_Lexer *ls, Eina_Bool ctor)
check(ls, TOK_VALUE);
meth->name = eina_stringshare_ref(ls->t.value);
eo_lexer_get(ls);
if (ls->t.kw == KW_at_protected)
for (;;) switch (ls->t.kw)
{
case KW_at_protected:
CASE_LOCK(ls, protected, "protected qualifier")
meth->scope = EOLIAN_SCOPE_PROTECTED;
eo_lexer_get(ls);
break;
case KW_at_const:
CASE_LOCK(ls, const, "const qualifier")
meth->obj_const = EINA_TRUE;
eo_lexer_get(ls);
break;
default:
goto body;
}
}
body:
line = ls->line_number;
col = ls->column;
check_next(ls, '{');
@ -798,12 +810,6 @@ parse_method(Eo_Lexer *ls, Eina_Bool ctor)
}
for (;;) switch (ls->t.kw)
{
case KW_const:
CASE_LOCK(ls, const, "const qualifier")
meth->obj_const = EINA_TRUE;
eo_lexer_get(ls);
check_next(ls, ';');
break;
case KW_return:
CASE_LOCK(ls, return, "return")
parse_return(ls, EINA_FALSE);

View File

@ -23,7 +23,7 @@ class Evas_3D_Camera (Evas_3D_Object, Evas.Common_Interface)
}
}
projection_matrix_get {
projection_matrix_get @const {
/*@
Get the projection matrix of the given camera.
@ -34,7 +34,6 @@ class Evas_3D_Camera (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Camera
*/
const;
params {
@out Evas_Real matrix; /*@ Projection Matrix */
}

View File

@ -134,7 +134,7 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@in Evas_Real a; /*@ Alpha component of the ambient color between [0.0, 1.0]. */
}
}
ambient_get {
ambient_get @const {
/*@
Get the ambient color of the given light.
@ -142,7 +142,6 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Light
*/
const;
params {
@out Evas_Real r; /*@ Red component of the ambient color between [0.0, 1.0]. */
@out Evas_Real g; /*@ Green component of the ambient color between [0.0, 1.0]. */
@ -166,7 +165,7 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@in Evas_Real a; /*@ Alpha component of the diffuse color between [0.0, 1.0]. */
}
}
diffuse_get {
diffuse_get @const {
/*@
Get the diffuse color of the given light.
@ -174,7 +173,6 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Light
*/
const;
params {
@out Evas_Real r; /*@ Red component of the diffuse color between [0.0, 1.0]. */
@out Evas_Real g; /*@ Green component of the diffuse color between [0.0, 1.0]. */
@ -198,7 +196,7 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@in Evas_Real a; /*@ Alpha component of the specular color between [0.0, 1.0]. */
}
}
specular_get {
specular_get @const {
/*@
Get the specular color of the given light.
@ -206,7 +204,6 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Light
*/
const;
params {
@out Evas_Real r; /*@ Red component of the specular color between [0.0, 1.0]. */
@out Evas_Real g; /*@ Green component of the specular color between [0.0, 1.0]. */
@ -238,7 +235,7 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
}
}
attenuation_get {
attenuation_get @const {
/*@
Get the attenuation of the given light.
@ -246,7 +243,6 @@ class Evas_3D_Light (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Light
*/
const;
params {
@out Evas_Real constant; /*@ Constant attenuation term..*/
@out Evas_Real linear; /*@ Linear attenuation term..*/

View File

@ -32,7 +32,7 @@ class Evas_3D_Material (Evas_3D_Object, Evas.Common_Interface)
}
}
color_get {
color_get @const {
/*
Get the material attribute color of the given material.
@ -40,8 +40,6 @@ class Evas_3D_Material (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Material
*/
const;
params {
@in Evas_3D_Material_Attrib attrib; /*@ Material attribute ID. */
@out Evas_Real r; /*@ Pointer to receive red component of the color. */

View File

@ -121,7 +121,7 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
}
}
frame_vertex_stride_get {
frame_vertex_stride_get @const {
/*
Get the vertex buffer stride of the key frame of the given mesh.
@ -135,7 +135,6 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Mesh
*/
const;
return int ;
params {
@in int frame; /*@ The number of the key frame. */
@ -183,7 +182,7 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
}
}
index_format_get {
index_format_get @const {
/*
Get the format of the index data of the given mesh.
@ -200,11 +199,10 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Mesh
*/
const;
return Evas_3D_Index_Format ;
}
index_count_get {
index_count_get @const {
/*
Get the count of the index data of the given mesh.
@ -217,7 +215,6 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Mesh
*/
const;
return int ;
}
@ -298,7 +295,7 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
}
}
vertex_count_get {
vertex_count_get @const {
/*@
Get the vertex count of the given mesh.
@ -306,7 +303,6 @@ class Evas_3D_Mesh (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Mesh
*/
const;
return int;
}

View File

@ -11,7 +11,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
methods {
type_get {
type_get @const {
/*
Get the type of the given node.
@ -21,7 +21,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node
*/
const;
return Evas_3D_Node_Type ;
}
member_add {
@ -54,7 +53,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
parent_get {
parent_get @const {
/*
Get the parent node of the given node.
@ -64,11 +63,10 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node
*/
const;
return Evas_3D_Node * ;
}
member_list_get {
member_list_get @const {
/*
Get the list of member nodes of the given node.
@ -78,7 +76,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node
*/
const;
return const(Eina.List)*;
}
position_set {
@ -170,7 +167,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
position_get {
position_get @const {
/*
Get the position of the given node.
@ -183,7 +180,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node_Transform
*/
const;
params {
@in Evas_3D_Space space; /*@ */
@out Evas_Real x; /*@ Pointer to receive X coordinate of the position.*/
@ -192,7 +188,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
orientation_get {
orientation_get @const {
/*
Get the orientation of the given node as quaternion.
@ -206,7 +202,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node_Transform
*/
const;
params {
@in Evas_3D_Space space; /*@ */
@out Evas_Real x; /*@ Pointer to receive X term of the orientation quaternion.*/
@ -216,7 +211,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
scale_get {
scale_get @const {
/*
Get the scale of the given node.
@ -229,7 +224,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node_Transform
*/
const;
params {
@in Evas_3D_Space space; /*@ */
@out Evas_Real x; /*@ Pointer to receive Scale factor along X-axis.*/
@ -311,7 +305,7 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
}
}
mesh_list_get {
mesh_list_get @const {
/*
Get the list of meshes of the given node.
@ -326,7 +320,6 @@ class Evas_3D_Node (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Node
*/
const;
return const(Eina.List)*;
}

View File

@ -12,11 +12,10 @@ class Evas_3D_Object (Eo.Base, Evas.Common_Interface)
@in Evas_3D_Object *ref; /*@ The Object that caused the change */
}
}
type_get {
type_get @const {
/*@
Returns the type of the object.
*/
const;
return Evas_3D_Object_Type;
}
@ -29,11 +28,10 @@ class Evas_3D_Object (Eo.Base, Evas.Common_Interface)
}
}
dirty_get {
dirty_get @const {
/*@
Returns the status of a particular state of the object.
*/
const;
return bool;
params {
@in Evas_3D_State state; /*@ State whose status is being asked */

View File

@ -18,13 +18,12 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
}
}
size_get {
size_get @const {
/*
Get the internal resolution of a scene.
@ingroup Evas_3D_Scene
*/
const;
params {
@out int w; /*@ Pointer to receive width of the resolution. */
@out int h; /*@ Pointer to receive height of the resolution. */
@ -51,14 +50,12 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
}
}
background_color_get {
background_color_get @const {
/*
Get the background color of a scene.
@ingroup Evas_3D_Scene
*/
const;
params {
@out Evas_Real r; /*@ Pointer to receive red component of the background color.*/
@out Evas_Real g; /*@ Pointer to receive green component of the background color. */
@ -67,7 +64,7 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
}
}
pick {
pick @const {
/*
Get information on the most front visible mesh for the given position.
@ -77,7 +74,6 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Scene
*/
const;
return bool ;
params {
@in Evas_Real x; /*@ X coordinate of the picking position. */
@ -89,13 +85,12 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
}
}
exist {
exist @const {
/*
Search given node in the given position.
@ingroup Evas_3D_Scene
*/
const;
return Evas_3D_Node *;
params {
@in Evas_Real x; /*@ X coordinate of the picking position. */
@ -104,13 +99,12 @@ class Evas_3D_Scene (Evas_3D_Object, Evas.Common_Interface)
}
}
pick_member_list_get {
pick_member_list_get @const {
/*
Get list of the all root members from scene in the given position.
@ingroup Evas_3D_Scene
*/
const;
return Eina.List *;
params {
@in Evas_Real x; /*@ X coordinate of the picking position. */

View File

@ -83,7 +83,7 @@ class Evas_3D_Texture (Evas_3D_Object, Evas.Common_Interface)
}
}
color_format_get {
color_format_get @const {
/*
Get the color format of the given texture.
@ -96,11 +96,10 @@ class Evas_3D_Texture (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Texture
*/
const;
return Evas_3D_Color_Format ;
}
size_get {
size_get @const {
/*
Get the size of the given texture.
@ -113,7 +112,6 @@ class Evas_3D_Texture (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Texture
*/
const;
params {
@out int w; /*@ Pointer to receive the width of the texture size. */
@out int h; /*@ Pointer to receive the height of the texture size. */
@ -166,7 +164,7 @@ class Evas_3D_Texture (Evas_3D_Object, Evas.Common_Interface)
}
}
filter_get {
filter_get @const {
/*
Get the filter of the given texture.
@ -178,8 +176,6 @@ class Evas_3D_Texture (Evas_3D_Object, Evas.Common_Interface)
@ingroup Evas_3D_Texture
*/
const;
params {
@out Evas_3D_Texture_Filter min; /*@ Pointer to receive the minification filter. */
@out Evas_3D_Texture_Filter mag; /*@ Pointer to receive the magnification filter. */

View File

@ -266,7 +266,7 @@ class Evas.Box (Evas.Smart_Clipped)
@in bool clear; /*@ if true, it will delete just removed children. */
}
}
iterator_new {
iterator_new @const {
/*@
Get an iterator to walk the list of children of a given box object.
@ -274,8 +274,6 @@ class Evas.Box (Evas.Smart_Clipped)
on errors
@note Do @b not remove or delete objects while walking the list. */
const;
return Eina.Iterator * @warn_unused;
}
add_to {
@ -314,7 +312,7 @@ class Evas.Box (Evas.Smart_Clipped)
@in Evas_Object *child @nonull; /*@ A child Evas object to be made a member of @p o */
}
}
option_property_id_get {
option_property_id_get @const {
/*@
Get the numerical identifier of the property of the child elements
of the box @a o which have @a name as name string
@ -328,8 +326,6 @@ class Evas.Box (Evas.Smart_Clipped)
function. They'd have to implement it and set it to be the
_Evas_Object_Box_Api.property_id_get smart class function of the
box, which is originally set to @c NULL. */
const;
return int @warn_unused;
params {
@in const(char)* name @nonull; /*@ The name string of the option being searched, for
@ -358,7 +354,7 @@ class Evas.Box (Evas.Smart_Clipped)
@in Evas_Object *child @nonull; /*@ A child Evas object to be made a member of @p o */
}
}
accessor_new {
accessor_new @const {
/*@
Get an accessor (a structure providing random items access) to the
list of children of a given box object.
@ -367,8 +363,6 @@ class Evas.Box (Evas.Smart_Clipped)
on errors
@note Do not remove or delete objects while walking the list. */
const;
return Eina.Accessor * @warn_unused;
}
internal_append {
@ -433,7 +427,7 @@ class Evas.Box (Evas.Smart_Clipped)
object to be removed */
}
}
option_property_vget {
option_property_vget @const {
/*@
Get a property's value (by its given numerical identifier), on a
given box child element -- by a variable argument list
@ -443,8 +437,6 @@ class Evas.Box (Evas.Smart_Clipped)
This is a variable argument list variant of the
evas_object_box_option_property_get(). See its documentation for
more details. */
const;
return bool;
params {
@in Evas_Object_Box_Option *opt @nonull; /*@ The box option structure bound to the child box element
@ -490,7 +482,7 @@ class Evas.Box (Evas.Smart_Clipped)
@in const(Evas_Object)* reference @nonull; /*@ The child object to place this new one before */
}
}
option_property_name_get {
option_property_name_get @const {
/*@
Get the name of the property of the child elements of the box @a o
which have @a id as identifier
@ -503,8 +495,6 @@ class Evas.Box (Evas.Smart_Clipped)
function. They'd have to implement it and set it to be the
_Evas_Object_Box_Api.property_name_get smart class function of the
box, which is originally set to @c NULL. */
const;
return const(char)* @warn_unused;
params {
@in int property; /*@ The numerical identifier of the option being searched,

View File

@ -635,7 +635,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in const(void)* data; /*@ Data for canvas. */
}
}
key_modifier_mask_get {
key_modifier_mask_get @const {
/*@
Creates a bit mask from the @p keyname @b modifier key. Values
returned from different calls to it may be ORed together,
@ -655,8 +655,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@see evas_key_modifier_is_set
@see evas_object_key_grab
@see evas_object_key_ungrab */
const;
return Evas_Modifier_Mask @warn_unused;
params {
@in const(char)* keyname @nonull; /*@ The name of the modifier key to create the mask for. */
@ -781,7 +779,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in const(void)* data;
}
}
objects_at_xy_get {
objects_at_xy_get @const {
/*@
Retrieve a list of Evas objects lying over a given position in
a canvas
@ -797,8 +795,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@warning This function will @b skip objects parented by smart
objects, acting only on the ones at the "top level", with regard to
object parenting. */
const;
return Eina.List * @warn_unused;
params {
@in Evas_Coord x; /*@ The horizontal coordinate of the position */
@ -995,21 +991,19 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@ingroup Evas_Font_Group */
}
font_hinting_can_hint {
font_hinting_can_hint @const {
/*@
Checks if the font hinting is supported by the given evas.
#EVAS_FONT_HINTING_AUTO, #EVAS_FONT_HINTING_BYTECODE.
@return @c EINA_TRUE if it is supported, @c EINA_FALSE otherwise.
@ingroup Evas_Font_Group */
const;
return bool @warn_unused;
params {
@in Evas_Font_Hinting_Flags hinting; /*@ The hinting to use, one of #EVAS_FONT_HINTING_NONE, */
}
}
object_top_at_xy_get {
object_top_at_xy_get @const {
/*@
Retrieve the Evas object stacked at the top of a given position in
a canvas
@ -1025,8 +1019,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@warning This function will @b skip objects parented by smart
objects, acting only on the ones at the "top level", with regard to
object parenting. */
const;
return Evas_Object * @warn_unused;
params {
@in Evas_Coord x; /*@ The horizontal coordinate of the position */
@ -1098,7 +1090,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in Evas_Callback_Type event_type; /*@ Event type */
}
}
font_available_list {
font_available_list @const {
/*@
List of available font descriptions known or found by this evas.
@ -1111,12 +1103,9 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
after you're done.
@ingroup Evas_Font_Group */
const;
return Eina.List * @warn_unused;
}
objects_in_rectangle_get {
const;
objects_in_rectangle_get @const {
return Eina.List * @warn_unused;
params {
@in Evas_Coord x;
@ -1127,7 +1116,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in bool include_hidden_objects;
}
}
object_name_find {
object_name_find @const {
/*@
Retrieves the object on the given evas with the given name.
@return If successful, the Evas object with the given name. Otherwise,
@ -1139,8 +1128,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
the object name is unique.
@ingroup Evas_Object_Group_Find */
const;
return Evas_Object * @warn_unused;
params {
@in const(char)* name; /*@ The given name. */
@ -1267,13 +1254,11 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
sync {
/*@ No description supplied by the EAPI. */
}
font_path_list {
font_path_list @const {
/*@
Retrieves the list of font paths used by the given evas.
@return The list of font paths used.
@ingroup Evas_Font_Path_Group */
const;
return const(Eina.List)* @warn_unused;
}
image_cache_reload {
@ -1283,7 +1268,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
This function reloads the image cache of canvas. */
}
coord_world_x_to_screen {
coord_world_x_to_screen @const {
/*@
Convert/scale a canvas co-ordinate into output screen co-ordinates
@ -1303,8 +1288,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
screen_x = evas_coord_world_x_to_screen(evas, canvas_x);
@endcode */
const;
return int @warn_unused;
params {
@in Evas_Coord x; /*@ The canvas x co-ordinate */
@ -1365,7 +1348,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
This function flushes image cache of canvas. */
}
coord_screen_y_to_world {
coord_screen_y_to_world @const {
/*@
Convert/scale an output screen co-ordinate into canvas co-ordinates
@ -1385,8 +1368,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
canvas_y = evas_coord_screen_y_to_world(evas, screen_y);
@endcode */
const;
return Evas_Coord @warn_unused;
params {
@in int y; /*@ The screen/output y co-ordinate */
@ -1532,7 +1513,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in const(void)* data; /*@ The data for canvas. */
}
}
object_top_in_rectangle_get {
object_top_in_rectangle_get @const {
/*@
Retrieve the Evas object stacked at the top of a given rectangular
region in a canvas
@ -1549,8 +1530,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@warning This function will @b skip objects parented by smart
objects, acting only on the ones at the "top level", with regard to
object parenting. */
const;
return Evas_Object * @warn_unused;
params {
@in Evas_Coord x; /*@ The top left corner's horizontal coordinate for the
@ -1634,7 +1613,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@in const(void)* data; /*@ The data for canvas. */
}
}
coord_screen_x_to_world {
coord_screen_x_to_world @const {
/*@
Convert/scale an output screen co-ordinate into canvas co-ordinates
@ -1654,8 +1633,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
canvas_x = evas_coord_screen_x_to_world(evas, screen_x);
@endcode */
const;
return Evas_Coord @warn_unused;
params {
@in int x; /*@ The screen/output x co-ordinate */
@ -1703,7 +1680,7 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
@ingroup Evas_Canvas */
}
coord_world_y_to_screen {
coord_world_y_to_screen @const {
/*@
Convert/scale a canvas co-ordinate into output screen co-ordinates
@ -1723,8 +1700,6 @@ class Evas.Canvas (Eo.Base, Evas.Common_Interface)
screen_y = evas_coord_world_y_to_screen(evas, canvas_y);
@endcode */
const;
return int @warn_unused;
params {
@in Evas_Coord y; /*@ The canvas y co-ordinate */

View File

@ -58,14 +58,12 @@ class Evas.Grid (Evas.Smart_Clipped)
}
}
methods {
accessor_new {
accessor_new @const {
/*@
Get an accessor to get random access to the list of children for the grid.
@note Do not remove or delete objects while walking the list.
@since 1.1 */
const;
return Eina.Accessor * @warn_unused;
}
clear {
@ -78,14 +76,12 @@ class Evas.Grid (Evas.Smart_Clipped)
@in bool clear; /*@ if true, it will delete just removed children. */
}
}
iterator_new {
iterator_new @const {
/*@
Get an iterator to walk the list of children for the grid.
@note Do not remove or delete objects while walking the list.
@since 1.1 */
const;
return Eina.Iterator * @warn_unused;
}
add_to {
@ -113,7 +109,7 @@ class Evas.Grid (Evas.Smart_Clipped)
@in Evas_Object *child @nonull;
}
}
pack_get {
pack_get @const {
/*@
Get the pack options for a grid child
@ -121,8 +117,6 @@ class Evas.Grid (Evas.Smart_Clipped)
evas_object_grid_pack()
@return 1 on success, 0 on failure.
@since 1.1 */
const;
return bool;
params {
@in Evas_Object *child; /*@ The grid child to query for coordinates */

View File

@ -1100,7 +1100,7 @@ class Evas.Image (Evas.Object)
@in int h; /*@ Height of the region to be updated. */
}
}
animated_frame_duration_get {
animated_frame_duration_get @const {
/*@
Get the duration of a sequence of frames.
@ -1118,15 +1118,13 @@ class Evas.Image (Evas.Object)
@see evas_object_image_animated_frame_duration_get()
@see evas_object_image_animated_frame_set()
@since 1.1 */
const;
return double;
params {
@in int start_frame; /*@ The first frame */
@in int frame_num; /*@ Number of frames in the sequence */
}
}
save {
save @const {
/*@
Save the given image object's contents to an (image) file.
@ -1138,8 +1136,6 @@ class Evas.Image (Evas.Object)
You can specify some flags when saving the image. Currently
acceptable flags are @c quality and @c compress. Eg.: @c
"quality=100 compress=9" */
const;
return bool;
params {
@in const(char)* file @nonull; /*@ The filename to be used to save the image (extension
@ -1167,7 +1163,7 @@ class Evas.Image (Evas.Object)
@in void *data; /*@ The raw data, or @c NULL. */
}
}
data_get {
data_get @const {
/*@
Get a pointer to the raw image data of the given image object.
@ -1193,8 +1189,6 @@ class Evas.Image (Evas.Object)
inform data changes, if you did any.
@see evas_object_image_data_set() */
const;
return void * @warn_unused;
params {
@in bool for_writing; /*@ Whether the data being retrieved will be

View File

@ -1235,14 +1235,12 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
}
}
methods {
clipees_has {
clipees_has @const {
/*@
Test if any object is clipped by @p obj.
@return EINA_TRUE if @p obj clip any object.
@since 1.8 */
const;
return bool @warn_unused;
}
key_grab {
@ -1365,7 +1363,7 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
@in Evas_Object *above @nonull; /*@ the object above which to stack */
}
}
smart_type_check {
smart_type_check @const {
/*@
Checks whether a given smart object or any of its smart object
parents is of a given smart class.
@ -1389,14 +1387,12 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
@see eo_isa
@ingroup Evas_Smart_Object_Group */
const;
return bool @warn_unused;
params {
@in const(char)* type @nonull; /*@ The @b name (type) of the smart class to check for */
}
}
name_child_find {
name_child_find @const {
/*@
Retrieves the object from children of the given object with the given name.
@return If successful, the Evas object with the given name. Otherwise,
@ -1412,8 +1408,6 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
@since 1.2
@ingroup Evas_Object_Group_Find */
const;
return Evas_Object * @warn_unused;
params {
@in const(char)* name; /*@ The given name. */
@ -1490,7 +1484,7 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
@in Evas_Coord dy; /*@ vertical offset (delta). */
}
}
smart_type_check_ptr {
smart_type_check_ptr @const {
/*@
Checks whether a given smart object or any of its smart object
parents is of a given smart class, <b>using pointer comparison</b>.
@ -1502,8 +1496,6 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface)
@see eo_isa
@ingroup Evas_Smart_Object_Group */
const;
return bool @warn_unused;
params {
@in const(char)* type @nonull; /*@ The type (name string) to check for. Must be the name */

View File

@ -166,7 +166,7 @@ class Evas.Object_Smart (Evas.Object, Evas.Signal_Interface)
object's lifetime. */
}
}
callbacks_descriptions_get {
callbacks_descriptions_get @const {
/*@
Retrieve an smart object's know smart callback descriptions (both
instance and class ones).
@ -187,8 +187,6 @@ class Evas.Object_Smart (Evas.Object, Evas.Signal_Interface)
@see evas_smart_callbacks_descriptions_get()
@ingroup Evas_Smart_Object_Group */
const;
params {
@out const(Evas_Smart_Cb_Description)** class_descriptions; /*@ Where to store class callbacks
descriptions array, if any is known. If no descriptions are
@ -202,7 +200,7 @@ class Evas.Object_Smart (Evas.Object, Evas.Signal_Interface)
descriptions are known. */
}
}
iterator_new {
iterator_new @const {
/*@
Retrieves an iterator of the member objects of a given Evas smart
object
@ -214,19 +212,15 @@ class Evas.Object_Smart (Evas.Object, Evas.Signal_Interface)
@see evas_object_smart_member_add()
@see evas_object_smart_member_del()
@see evas_object_smart_members_get() */
const;
return Eina.Iterator * @warn_unused;
}
callback_description_find {
callback_description_find @const {
/*@
Find callback description for callback called @a name.
or @c NULL if not found. If parameter is @c NULL, no search
will be done on instance descriptions.
@return reference to description if found, @c NULL if not found. */
const;
params {
@in const(char)* name @nonull; /*@ name of desired callback, must @b not be @c NULL. The
search have a special case for @a name being the same

View File

@ -158,22 +158,18 @@ class Evas.Table (Evas.Smart_Clipped)
@in bool clear; /*@ if true, it will delete just removed children. */
}
}
accessor_new {
accessor_new @const {
/*@
Get an accessor to get random access to the list of children for the table.
@note Do not remove or delete objects while walking the list. */
const;
return Eina.Accessor * @warn_unused;
}
iterator_new {
iterator_new @const {
/*@
Get an iterator to walk the list of children for the table.
@note Do not remove or delete objects while walking the list. */
const;
return Eina.Iterator * @warn_unused;
}
add_to {
@ -184,14 +180,12 @@ class Evas.Table (Evas.Smart_Clipped)
return Evas_Object * @warn_unused;
}
pack_get {
pack_get @const {
/*@
Get packing location of a child of table
@return 1 on success, 0 on failure.
@since 1.1 */
const;
return bool;
params {
@in Evas_Object *child; /*@ The child object to add. */

View File

@ -394,17 +394,15 @@ class Evas.Text (Evas.Object)
}
}
methods {
last_up_to_pos {
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. */
const;
return int;
params {
@in Evas_Coord x; /*@ in */
@in Evas_Coord y; /*@ in */
}
}
char_coords_get {
const;
char_coords_get @const {
return int;
params {
@in Evas_Coord x; /*@ in */
@ -415,7 +413,7 @@ class Evas.Text (Evas.Object)
@out Evas_Coord ch; /*@ out */
}
}
char_pos_get {
char_pos_get @const {
/*@
Retrieve position and dimension information of a character within a text @c Evas_Object.
@ -426,8 +424,6 @@ class Evas.Text (Evas.Object)
parameter.
@return @c EINA_FALSE on success, @c EINA_TRUE on error. */
const;
return bool;
params {
@in int pos; /*@ The character position to request co-ordinates for. */

View File

@ -204,13 +204,11 @@ class Evas.Textblock (Evas.Object)
}
}
methods {
line_number_geometry_get {
line_number_geometry_get @const {
/*@
Get the geometry of a line number.
@return @c EINA_TRUE on success, @c EINA_FALSE otherwise. */
const;
return bool;
params {
@in int line; /*@ the line number. */
@ -237,7 +235,7 @@ class Evas.Textblock (Evas.Object)
@since 1.2 */
}
cursor_new {
cursor_new @const {
/*@
Create a new cursor, associate it to the obj and init it to point
to the start of the textblock. Association to the object means the cursor
@ -246,28 +244,23 @@ class Evas.Textblock (Evas.Object)
@note if you need speed and you know what you are doing, it's slightly faster to just allocate the cursor yourself and not associate it. (only people developing the actual object, and not users of the object).
@return the new cursor. */
const;
return Evas_Textblock_Cursor *;
}
node_format_list_get {
node_format_list_get @const {
/*@ No description supplied by the EAPI. */
const;
legacy evas_textblock_node_format_list_get;
return const(Eina.List)*;
params {
@in const(char)* anchor;
}
}
style_user_peek {
style_user_peek @const {
/*@
Get (don't remove) the style at the top of the user style stack.
@return the style of the object.
@see evas_object_textblock_style_get
@since 1.2 */
const;
return const(Evas_Textblock_Style)*;
}
node_format_remove_pair {

View File

@ -192,13 +192,13 @@ class Evas.Textgrid (Evas.Object)
@see evas_object_textgrid_update_add()
@since 1.7 */
params {
@in int y; /*@ The row index of the grid. */
@in const(Evas_Textgrid_Cell)* row; /*@ The string as a sequence of #Evas_Textgrid_Cell. */
}
}
cellrow_get {
cellrow_get @const {
/*@
@brief Get the string at the given row of the given textgrid object.
@ -213,8 +213,6 @@ class Evas.Textgrid (Evas.Object)
@see evas_object_textgrid_update_add()
@since 1.7 */
const;
return Evas_Textgrid_Cell*;
params {
@in int y; /*@ The row index of the grid. */
@ -238,7 +236,7 @@ class Evas.Textgrid (Evas.Object)
@see evas_object_textgrid_palette_get()
@since 1.7 */
params {
@in Evas_Textgrid_Palette pal; /*@ The type of the palette to set the color. */
@in int idx; /*@ The index of the paletter to which the color is stored. */
@ -248,7 +246,7 @@ class Evas.Textgrid (Evas.Object)
@in int a; /*@ The alpha component of the color. */
}
}
palette_get {
palette_get @const {
/*@
@brief The retrieve color to the given palette at the given index of the given textgrid object.
@ -263,8 +261,6 @@ class Evas.Textgrid (Evas.Object)
@see evas_object_textgrid_palette_set()
@since 1.7 */
const;
params {
@in Evas_Textgrid_Palette pal; /*@ The type of the palette to set the color. */
@in int idx; /*@ The index of the palette to which the color is stored. */

View File

@ -14,14 +14,13 @@ class Const {
}
}
methods {
foo {
foo @const {
/*@ comment foo */
params {
@in int a; /*@ a */
@inout char b;
@out double c;
}
const;
return char *(NULL); /*@ comment for method return */
}
}

View File

@ -45,13 +45,12 @@ class Object (Base) {
}
return char *(NULL); /*@ comment for method return */
}
foo2 {
foo2 @const {
/*@ comment foo */
params {
@in int a;
@in const(char)* b;
}
const;
}
pure_foo3 {
/* set as virtual pure - no implementation expected */