An opaque structure used to hold different types of values. The data within the structure has protected scope: it is accessible only to
functions within a GTypeValueTable structure, or implementations of the g_value_*() API. That is, code portions which
implement new fundamental types. Value users cannot make any assumptions about how data is
stored within the 2 element data union, and the g_type member should only be accessed through the
type macro.
src_type into values of type dest_type.
src_type and dest_type will be
replaced.
src_value into dest_value.
value and resets it to the default value (as if the value had
just been initialized).
value and "unsets" the type, this releases all resources
associated with this GValue. An unset value is the same as an uninitialized (zero-filled)
Value structure.
value from an instantiatable type via the value_table's collect_value
function.
value will fit inside the size of a pointer value. This is an internal
function introduced mainly for C marshallers.
true for the passed in value. This is an internal function introduced mainly for C marshallers.
src_value into a type appropriate to store in
dest_value, e.g. to transform a G_TYPE_INT value into a G_TYPE_FLOAT value. Performing
transformations between value types might incur precision lossage. Especially transformations into strings might reveal seemingly
arbitrary results and shouldn't be relied upon for production code (such as rcfile value or object property serialization).
G_TYPE_BOOLEAN Value to
v_boolean.
G_TYPE_BOOLEAN Value.
G_TYPE_CHAR Value to
v_char.
G_TYPE_CHAR Value.
G_TYPE_UCHAR Value to
v_uchar.
G_TYPE_UCHAR Value.
G_TYPE_INT Value to
v_int.
G_TYPE_INT Value.
G_TYPE_UINT Value to
v_uint.
G_TYPE_UINT Value.
G_TYPE_LONG Value to
v_long.
G_TYPE_LONG Value.
G_TYPE_ULONG Value to
v_ulong.
G_TYPE_ULONG Value.
G_TYPE_INT64 Value to
v_int64.
G_TYPE_INT64 Value.
G_TYPE_UINT64 Value to
v_uint64.
G_TYPE_UINT64 Value.
G_TYPE_FLOAT Value to
v_float.
G_TYPE_FLOAT Value.
G_TYPE_DOUBLE Value to
v_double.
G_TYPE_DOUBLE Value.
v_pointer
.
G_TYPE_GTYPE Value to
v_gtype.
G_TYPE_GTYPE Value.
