ender
0.0.9
Descriptorlibrary
|
An attr represents a Object attribute. More...
Enumerations | |
enum | Ender_Item_Attr_Flag { ENDER_ITEM_ATTR_FLAG_VALUE_OF = (1 << 0), ENDER_ITEM_ATTR_FLAG_DOWNCAST = (1 << 1), ENDER_ITEM_ATTR_FLAG_NULLABLE = (1 << 2) } |
Functions | |
EAPI Ender_Item * | ender_item_attr_type_get (Ender_Item *i) |
EAPI ssize_t | ender_item_attr_offset_get (Ender_Item *i) |
EAPI Eina_Bool | ender_item_attr_value_get (Ender_Item *i, void *o, Ender_Item_Transfer *xfer, Ender_Value *v, Eina_Error *err) |
EAPI Eina_Bool | ender_item_attr_value_set (Ender_Item *i, void *o, Ender_Value *v, Eina_Error *err) |
EAPI int | ender_item_attr_flags_get (Ender_Item *i) |
EAPI Ender_Item * | ender_item_attr_getter_get (Ender_Item *i) |
EAPI Ender_Item * | ender_item_attr_setter_get (Ender_Item *i) |
An attr represents a Object attribute.
enum Ender_Item_Attr_Flag |
Different flags an attribute can have
ENDER_ITEM_ATTR_FLAG_VALUE_OF |
In case the attribute represents a way to convert the item into another type |
ENDER_ITEM_ATTR_FLAG_DOWNCAST |
In case the attribute returns an Item representing the downcasted value of the owner of the attribute |
ENDER_ITEM_ATTR_FLAG_NULLABLE |
In case the attribute can be NULL |
EAPI Ender_Item* ender_item_attr_type_get | ( | Ender_Item * | i | ) |
Get the type of an attribute
i | The attribute to get the type from |
EAPI ssize_t ender_item_attr_offset_get | ( | Ender_Item * | i | ) |
Get the offset of an attribute
This is only valid for attributes that Struct fields
i | The attribute to get the offset from |
EAPI Eina_Bool ender_item_attr_value_get | ( | Ender_Item * | i, |
void * | o, | ||
Ender_Item_Transfer * | xfer, | ||
Ender_Value * | v, | ||
Eina_Error * | err | ||
) |
Get the value from an attribute
i | The attribute to get the value from | |
o | The object instance that has such attribute | |
[out] | xfer | The transfer of the value. It is responsible of the caller to free the resource based on the transfer type |
v | The value of the attribute | |
[out] | err | In case the return value is EINA_FALSE, an error will be set |
EAPI Eina_Bool ender_item_attr_value_set | ( | Ender_Item * | i, |
void * | o, | ||
Ender_Value * | v, | ||
Eina_Error * | err | ||
) |
Set the value from an attribute
i | The attribute to set the value | |
o | The object instance that has such attribute | |
v | The value of the attribute | |
[out] | err | In case the return value is EINA_FALSE, an error will be set |
EAPI int ender_item_attr_flags_get | ( | Ender_Item * | i | ) |
Get the flags of an attribute
i | The attribute to get the flags from |
EAPI Ender_Item* ender_item_attr_getter_get | ( | Ender_Item * | i | ) |
Get the getter for the attribute
i | The attribute to get the getter from |
EAPI Ender_Item* ender_item_attr_setter_get | ( | Ender_Item * | i | ) |
Get the setter for the attribute
i | The attribute to get the setter from |