LayOut C API
|
Go to the source code of this file.
Enumerations | |
enum | LOTypedValueType { LOTypedValueType_Empty = 0, LOTypedValueType_Bool, LOTypedValueType_Int32, LOTypedValueType_Double, LOTypedValueType_String, LONumTypedValueTypes } |
Defines the set of types that a LOTypedValueRef can represent. More... | |
Functions | |
LO_RESULT | LOTypedValueCreate (LOTypedValueRef *typed_value) |
Creates a new typed value object. More... | |
LO_RESULT | LOTypedValueRelease (LOTypedValueRef *typed_value) |
Releases a typed value object. *typed_value will be set to invalid by this function. More... | |
LO_RESULT | LOTypedValueGetType (LOTypedValueRef typed_value, LOTypedValueType *type) |
Gets the type of value stored by a typed value object. More... | |
LO_RESULT | LOTypedValueGetBool (LOTypedValueRef typed_value, bool *bool_value) |
Gets the boolean value of a typed value object. More... | |
LO_RESULT | LOTypedValueSetBool (LOTypedValueRef typed_value, bool bool_value) |
Sets the boolean value of a typed value object. More... | |
LO_RESULT | LOTypedValueGetInt32 (LOTypedValueRef typed_value, int32_t *int32_value) |
Gets the int32 value of a typed value object. More... | |
LO_RESULT | LOTypedValueSetInt32 (LOTypedValueRef typed_value, int32_t int32_value) |
Sets the int32 value of a typed value object. More... | |
LO_RESULT | LOTypedValueGetDouble (LOTypedValueRef typed_value, double *double_value) |
Gets the double value of a typed value object. More... | |
LO_RESULT | LOTypedValueSetDouble (LOTypedValueRef typed_value, double double_value) |
Sets the double value of a typed value object. More... | |
LO_RESULT | LOTypedValueGetString (LOTypedValueRef typed_value, SUStringRef *out_string) |
Gets a string value from the typed value object. More... | |
LO_RESULT | LOTypedValueSetString (LOTypedValueRef typed_value, const char *string) |
Sets the value of typed_value to the given string. More... | |
enum LOTypedValueType |
Defines the set of types that a LOTypedValueRef can represent.
Enumerator | |
---|---|
LOTypedValueType_Empty | |
LOTypedValueType_Bool | |
LOTypedValueType_Int32 | |
LOTypedValueType_Double | |
LOTypedValueType_String | |
LONumTypedValueTypes |
LO_RESULT LOTypedValueCreate | ( | LOTypedValueRef * | typed_value | ) |
Creates a new typed value object.
[out] | typed_value | The created typed value object. |
LO_RESULT LOTypedValueGetBool | ( | LOTypedValueRef | typed_value, |
bool * | bool_value | ||
) |
Gets the boolean value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | bool_value | The boolean value. |
LO_RESULT LOTypedValueGetDouble | ( | LOTypedValueRef | typed_value, |
double * | double_value | ||
) |
Gets the double value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | double_value | The double value. |
LO_RESULT LOTypedValueGetInt32 | ( | LOTypedValueRef | typed_value, |
int32_t * | int32_value | ||
) |
Gets the int32 value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | int32_value | The int32 value. |
LO_RESULT LOTypedValueGetString | ( | LOTypedValueRef | typed_value, |
SUStringRef * | out_string | ||
) |
Gets a string value from the typed value object.
LO_RESULT LOTypedValueGetType | ( | LOTypedValueRef | typed_value, |
LOTypedValueType * | type | ||
) |
Gets the type of value stored by a typed value object.
[in] | typed_value | The typed value object. |
[out] | type | The type of value stored by typed_value. |
LO_RESULT LOTypedValueRelease | ( | LOTypedValueRef * | typed_value | ) |
Releases a typed value object. *typed_value will be set to invalid by this function.
[in] | typed_value | The typed value object. |
LO_RESULT LOTypedValueSetBool | ( | LOTypedValueRef | typed_value, |
bool | bool_value | ||
) |
Sets the boolean value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | bool_value | The boolean value to set. |
LO_RESULT LOTypedValueSetDouble | ( | LOTypedValueRef | typed_value, |
double | double_value | ||
) |
Sets the double value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | double_value | The double value to set. |
LO_RESULT LOTypedValueSetInt32 | ( | LOTypedValueRef | typed_value, |
int32_t | int32_value | ||
) |
Sets the int32 value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | int32_value | The int32 value to set. |
LO_RESULT LOTypedValueSetString | ( | LOTypedValueRef | typed_value, |
const char * | string | ||
) |
Sets the value of typed_value to the given string.