Typedefs | |
typedef Eina_Value_Union | Eina_Value_Optional |
typedef struct _Eina_Value_Struct | Eina_Value_Struct |
Value type for EINA_VALUE_TYPE_STRUCT. More... | |
Functions | |
static Eina_Value * | eina_value_optional_empty_new (void) |
Creates an empty optional. More... | |
EINA_API Eina_Value * | eina_value_optional_new (const Eina_Value_Type *subtype, const void *value) |
Creates an optional eina value with the passed value. More... | |
static Eina_Bool | eina_value_optional_empty_is (const Eina_Value *value, Eina_Bool *is_empty) |
Function to know if an eina optional is empty or not. More... | |
EINA_API Eina_Bool | eina_value_optional_pset (Eina_Value *value, Eina_Value_Type const *subtype, const void *subvalue) |
Sets the optional with a value. More... | |
EINA_API Eina_Bool | eina_value_optional_pget (Eina_Value *value, void *subvalue) |
Gets the value from an optional. More... | |
EINA_API Eina_Bool | eina_value_optional_reset (Eina_Value *value) |
Resets eina optional to empty. More... | |
static const Eina_Value_Type * | eina_value_optional_type_get (Eina_Value *value) |
Gets type from value that is stored on Eina Value Optional. More... | |
Variables | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_OPTIONAL |
manages optional type. More... | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_FILE |
manages Eina_File type. More... | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_RECTANGLE |
manages Eina_Rectangle type. More... | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_OPTIONAL = NULL |
manages optional type. More... | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_FILE = NULL |
manages Eina_File type. More... | |
EINA_API const Eina_Value_Type * | EINA_VALUE_TYPE_RECTANGLE = NULL |
manages Eina_Rectangle type. More... | |
Eina_Value_Optional type to be used with Eina_Value_Struct |
|
inlinestatic |
Creates an empty optional.
This is the same as eina_value_new(EINA_VALUE_TYPE_OPTIONAL).
EINA_API Eina_Value * eina_value_optional_new | ( | const Eina_Value_Type * | subtype, |
const void * | value | ||
) |
Creates an optional eina value with the passed value.
[in] | subtype | Eina_Value_Type of parameter value |
[in] | value | The value to be used to construct optional eina value |
|
inlinestatic |
Function to know if an eina optional is empty or not.
[in] | value | Eina Value Optional |
[out] | is_empty | EINA_TRUE if optional is empty, EINA_FALSE otherwise. |
EINA_API Eina_Bool eina_value_optional_pset | ( | Eina_Value * | value, |
Eina_Value_Type const * | subtype, | ||
const void * | subvalue | ||
) |
Sets the optional with a value.
[in,out] | value | Eina Value Optional to be set with subvalue |
[in] | subtype | Type of subvalue |
[in] | subvalue | Value to be set in optional |
EINA_API Eina_Bool eina_value_optional_pget | ( | Eina_Value * | value, |
void * | subvalue | ||
) |
Gets the value from an optional.
[in] | value | Eina Value Optional to get value from |
[out] | subvalue | Pointer to where value is to be copied to. You must use the correct type according to eina_value_optional_type_get |
EINA_API Eina_Bool eina_value_optional_reset | ( | Eina_Value * | value | ) |
Resets eina optional to empty.
[in,out] | value | Eina Value Optional |
|
inlinestatic |
Gets type from value that is stored on Eina Value Optional.
[in] | value | Eina Value Optional |
|
extern |
manages optional type.
|
extern |
manages Eina_File type.
|
extern |
manages Eina_Rectangle type.
EINA_VALUE_TYPE_OPTIONAL = NULL |
manages optional type.
EINA_VALUE_TYPE_FILE = NULL |
manages Eina_File type.
EINA_VALUE_TYPE_RECTANGLE = NULL |
manages Eina_Rectangle type.