An object represents opaque structs.
More...
Detailed Description
An object represents opaque structs.
Basically an object must have constructors, a destructor and reference counting. It can also have functions and properties, and can inherit from another object.
Function Documentation
Convert an object into a string
Looks for a property that has the flag of ENDER_ITEM_ATTR_FLAG_VALUE_OF that returns a string. If none is found, it looks for a method with flag ENDER_ITEM_FUNCTION_FLAG_VALUE_OF that returns a string, if so, it is called.
- Parameters:
-
| i | The object to convert |
| o | The object instance |
[out] | str | The converted string |
[out] | xfer | The transfer of the string |
[out] | err | In case the call fails, the error informs what happened |
- Returns:
- EINA_TRUE if the call is succesful, EINA_FALSE otherwise
Get the downcasted item of an object
Gets the value of a property that has the flag of ENDER_ITEM_ATTR_FLAG_DOWNCAST, if none is found, it looks for a method with flag ENDER_ITEM_FUNCTION_FLAG_DOWNCAST and uses it for downcasting.
- Parameters:
-
i | The object to downcast |
o | The object instance |
- Returns:
- The downcasted item
Get the parent object in the inheritance hierarchy
- Parameters:
-
i | The object to get the parent from |
- Returns:
- The parent object
Get the list of functions from an object
- Parameters:
-
i | The object to get the functions from |
- Returns:
- The list of functions. Use ender_item_unref to free every item on the list
Get the list of constructors from an object
- Parameters:
-
i | The object to get the constructors from |
- Returns:
- The list of construcots. Use ender_item_unref to free every item on the list
Get the list of properties from an object
- Parameters:
-
i | The object to get the properties from |
- Returns:
- The list of properties. Use ender_item_unref to free every item on the list
Call the object's ref function
- Parameters:
-
i | The object to call the ref function on |
o | The object instance |
- Returns:
- EINA_TRUE if success, EINA_FALSE otherwise
Call the object's unref function
- Parameters:
-
i | The object to call the unref function on |
o | The object instance |
- Returns:
- EINA_TRUE if success, EINA_FALSE otherwise