SketchUp C API
|
Variant object used to represent the value of a key-value attribute pair. More...
#include <SketchUpAPI/model/typed_value.h>
Related Functions | |
(Note that these are not member functions.) | |
enum SUResult | SUTypedValueCreate (SUTypedValueRef *typed_value) |
Creates a typed value object. The created object must be released with SUTypedValueRelease(). More... | |
enum SUResult | SUTypedValueRelease (SUTypedValueRef *typed_value) |
Releases a typed value object that was previously created with SUTypedValueCreate(). More... | |
enum SUResult | SUTypedValueGetType (SUTypedValueRef typed_value, enum SUTypedValueType *type) |
Retrieves the type information of a typed value object. More... | |
enum SUResult | SUTypedValueGetByte (SUTypedValueRef typed_value, char *byte_value) |
Retrieves the byte value of a typed value object. More... | |
enum SUResult | SUTypedValueSetByte (SUTypedValueRef typed_value, char byte_value) |
Sets the byte value of a typed value object. More... | |
enum SUResult | SUTypedValueGetInt16 (SUTypedValueRef typed_value, int16_t *int16_value) |
Retrieves the int16 value of a typed value object. More... | |
enum SUResult | SUTypedValueSetInt16 (SUTypedValueRef typed_value, int16_t int16_value) |
Sets the int16 value of a typed value object. More... | |
enum SUResult | SUTypedValueGetInt32 (SUTypedValueRef typed_value, int32_t *int32_value) |
Retrieves the int32 value of a typed value object. More... | |
enum SUResult | SUTypedValueSetInt32 (SUTypedValueRef typed_value, int32_t int32_value) |
Sets the int32 value of a typed value object. More... | |
enum SUResult | SUTypedValueGetFloat (SUTypedValueRef typed_value, float *float_value) |
Retrieves the float value of a typed value object. More... | |
enum SUResult | SUTypedValueSetFloat (SUTypedValueRef typed_value, float float_value) |
Sets the float value of a typed value object. More... | |
enum SUResult | SUTypedValueGetDouble (SUTypedValueRef typed_value, double *double_value) |
Retrieves the double value of a typed value object. More... | |
enum SUResult | SUTypedValueSetDouble (SUTypedValueRef typed_value, double double_value) |
Sets the double value of a typed value object. More... | |
enum SUResult | SUTypedValueGetBool (SUTypedValueRef typed_value, bool *bool_value) |
Retrieves the boolean value of a typed value object. More... | |
enum SUResult | SUTypedValueSetBool (SUTypedValueRef typed_value, bool bool_value) |
Sets the boolean value of a typed value object. More... | |
enum SUResult | SUTypedValueGetColor (SUTypedValueRef typed_value, SUColor *color) |
Retrieves the color value of a typed value object. More... | |
enum SUResult | SUTypedValueSetColor (SUTypedValueRef typed_value, const SUColor *color) |
Sets the color value of a typed value object. More... | |
enum SUResult | SUTypedValueGetTime (SUTypedValueRef typed_value, int64_t *time_value) |
Retrieves the time value of a typed value object. The time value is in seconds since January 1, 1970. More... | |
enum SUResult | SUTypedValueSetTime (SUTypedValueRef typed_value, int64_t time_value) |
Sets the time value of a typed value object. The time value is in seconds since January 1, 1970. More... | |
enum SUResult | SUTypedValueGetString (SUTypedValueRef typed_value, SUStringRef *string_value) |
Retrieves the string value of a typed value object. More... | |
enum SUResult | SUTypedValueSetString (SUTypedValueRef typed_value, const char *string_value) |
Sets the string value of a typed value object. More... | |
enum SUResult | SUTypedValueGetVector3d (SUTypedValueRef typed_value, double vector3d_value[3]) |
Retrieves the 3-element vector value of a typed value object. More... | |
enum SUResult | SUTypedValueSetVector3d (SUTypedValueRef typed_value, const double vector3d_value[3]) |
Sets the 3-element vector value of a typed value object. More... | |
enum SUResult | SUTypedValueSetUnitVector3d (SUTypedValueRef typed_value, const double vector3d_value[3]) |
Sets the 3D unit vector value of a typed value object. More... | |
enum SUResult | SUTypedValueGetArrayItems (SUTypedValueRef typed_value, size_t len, SUTypedValueRef values[], size_t *count) |
Retrieves the array of typed value objects from a typed value of type SUTypedValueType_Array. Note that the returned SUTypedValueRef objects will still be owned by their parent typed value array and therefore they must not be released by the caller. More... | |
enum SUResult | SUTypedValueSetArrayItems (SUTypedValueRef typed_value, size_t len, SUTypedValueRef values[]) |
Sets the array of typed value objects of a typed value object. The elements of the given array are copied to the type value object. More... | |
enum SUResult | SUTypedValueGetNumArrayItems (SUTypedValueRef typed_value, size_t *count) |
Retrieves the number of typed value objects from a typed value of type SUTypedValueType_Array. More... | |
Variant object used to represent the value of a key-value attribute pair.
|
related |
Creates a typed value object. The created object must be released with SUTypedValueRelease().
[out] | typed_value | The created typed value object. |
|
related |
Retrieves the array of typed value objects from a typed value of type SUTypedValueType_Array. Note that the returned SUTypedValueRef objects will still be owned by their parent typed value array and therefore they must not be released by the caller.
[in] | typed_value | The typed value object. |
[in] | len | The length of the array to retrieve. |
[out] | values | The typed value objects retrieved. |
[out] | count | The actual number of typed value objects retrieved. |
|
related |
Retrieves the boolean value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | bool_value | The boolean value retrieved. |
|
related |
Retrieves the byte value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | byte_value | The byte value retrieved. |
|
related |
Retrieves the color value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | color | The color value retrieved. |
|
related |
Retrieves the double value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | double_value | The double value retrieved. |
|
related |
Retrieves the float value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | float_value | The float value retrieved. |
|
related |
Retrieves the int16 value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | int16_value | The int16 value retrieved. |
|
related |
Retrieves the int32 value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | int32_value | The int32 value retrieved. |
|
related |
Retrieves the number of typed value objects from a typed value of type SUTypedValueType_Array.
[in] | typed_value | The typed value object. |
[out] | count | The number of typed value objects in the array. |
|
related |
Retrieves the string value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | string_value | The string value retrieved. |
|
related |
Retrieves the time value of a typed value object. The time value is in seconds since January 1, 1970.
[in] | typed_value | The typed value object. |
[out] | time_value | The time value retrieved. |
|
related |
Retrieves the type information of a typed value object.
[in] | typed_value | The typed value object. |
[out] | type | The type information retrieved. |
|
related |
Retrieves the 3-element vector value of a typed value object.
[in] | typed_value | The typed value object. |
[out] | vector3d_value | The 3-element vector value retrieved. |
|
related |
Releases a typed value object that was previously created with SUTypedValueCreate().
[in] | typed_value | The typed value object. |
|
related |
Sets the array of typed value objects of a typed value object. The elements of the given array are copied to the type value object.
[in] | typed_value | The typed value object. |
[in] | len | The number of typed value objects to set. |
[in] | values | The array of typed value objects to set. |
|
related |
Sets the boolean value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | bool_value | The boolean value to set. |
|
related |
Sets the byte value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | byte_value | The byte value that is assigned. |
|
related |
Sets the color value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | color | The color value to set. |
|
related |
Sets the double value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | double_value | The double value to set. |
|
related |
Sets the float value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | float_value | The float value to set. |
|
related |
Sets the int16 value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | int16_value | The int16 value to set. |
|
related |
Sets the int32 value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | int32_value | The int32 value to set. |
|
related |
Sets the string value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | string_value | The string value to set. Assumed to be UTF-8 encoded. |
|
related |
Sets the time value of a typed value object. The time value is in seconds since January 1, 1970.
[in] | typed_value | The typed value object. |
[in] | time_value | The time value that is set. |
|
related |
Sets the 3D unit vector value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | vector3d_value | The 3 vector components. Magnitude is ignored. |
|
related |
Sets the 3-element vector value of a typed value object.
[in] | typed_value | The typed value object. |
[in] | vector3d_value | The 3-element vector value to set. |