Template to create a new Value from a D type.
Copies the value of src_value into dest_value.
Get the contents of a G_TYPE_OBJECT derived #GValue, increasing its reference count. If the contents of the #GValue are null, then null will be returned.
Get a copy the contents of a G_TYPE_STRING #GValue.
Get the contents of a variant #GValue, increasing its refcount. The returned #GVariant is never floating.
Determines if value will fit inside the size of a pointer value. This is an internal function introduced mainly for C marshallers.
Template to get a Value of a specific type.
Get the contents of a G_TYPE_BOOLEAN #GValue.
Get the contents of a G_TYPE_BOXED derived #GValue.
Do not use this function; it is broken on platforms where the glib.types.char type is unsigned, such as ARM and PowerPC. See gobject.value.Value.getSchar.
Get the contents of a G_TYPE_DOUBLE #GValue.
Get the contents of a G_TYPE_ENUM #GValue.
Get the contents of a G_TYPE_FLAGS #GValue.
Get the contents of a G_TYPE_FLOAT #GValue.
Get the contents of a G_TYPE_GTYPE #GValue.
Get the contents of a G_TYPE_INT #GValue.
Get the contents of a G_TYPE_INT64 #GValue.
Get the contents of a G_TYPE_LONG #GValue.
Get the contents of a G_TYPE_OBJECT derived #GValue.
Get the contents of a G_TYPE_PARAM #GValue.
Get the contents of a pointer #GValue.
Get the contents of a G_TYPE_CHAR #GValue.
Get the contents of a G_TYPE_STRING #GValue.
Get the contents of a G_TYPE_UCHAR #GValue.
Get the contents of a G_TYPE_UINT #GValue.
Get the contents of a G_TYPE_UINT64 #GValue.
Get the contents of a G_TYPE_ULONG #GValue.
Get the contents of a variant #GValue.
Initializes and sets value from an instantiatable type via the value_table's collect_value() function.
Template to initialize a Value to a D type.
Initializes value with the default value of type.
Returns the value contents as pointer. This function asserts that gobject.value.Value.fitsPointer returned true for the passed in value. This is an internal function introduced mainly for C marshallers.
Clears the current value in value and resets it to the default value (as if the value had just been initialized).
Template to set a Value of a specific type.
Set the contents of a G_TYPE_BOOLEAN #GValue to v_boolean.
Set the contents of a G_TYPE_BOXED derived #GValue to v_boxed.
This is an internal function introduced mainly for C marshallers.
Set the contents of a G_TYPE_CHAR #GValue to v_char.
Set the contents of a G_TYPE_DOUBLE #GValue to v_double.
Set the contents of a G_TYPE_ENUM #GValue to v_enum.
Set the contents of a G_TYPE_FLAGS #GValue to v_flags.
Set the contents of a G_TYPE_FLOAT #GValue to v_float.
Set the contents of a G_TYPE_GTYPE #GValue to v_gtype.
Sets value from an instantiatable type via the value_table's collect_value() function.
Set the contents of a G_TYPE_INT #GValue to v_int.
Set the contents of a G_TYPE_INT64 #GValue to v_int64.
Set the contents of a G_TYPE_STRING #GValue to v_string. The string is assumed to be static and interned (canonical, for example from glib.global.internString), and is thus not duplicated when setting the #GValue.
Set the contents of a G_TYPE_LONG #GValue to v_long.
Set the contents of a G_TYPE_OBJECT derived #GValue to v_object.
Set the contents of a G_TYPE_PARAM #GValue to param.
Set the contents of a pointer #GValue to v_pointer.
Set the contents of a G_TYPE_CHAR #GValue to v_char.
Set the contents of a G_TYPE_BOXED derived #GValue to v_boxed.
Set the contents of a G_TYPE_STRING #GValue to v_string. The string is assumed to be static, and is thus not duplicated when setting the #GValue.
Set the contents of a G_TYPE_STRING #GValue to a copy of v_string.
This is an internal function introduced mainly for C marshallers.
Set the contents of a G_TYPE_UCHAR #GValue to v_uchar.
Set the contents of a G_TYPE_UINT #GValue to v_uint.
Set the contents of a G_TYPE_UINT64 #GValue to v_uint64.
Set the contents of a G_TYPE_ULONG #GValue to v_ulong.
Set the contents of a variant #GValue to variant. If the variant is floating, it is consumed.
Steal ownership on contents of a G_TYPE_STRING #GValue. As a result of this operation the value's contents will be reset to null.
Sets the contents of a G_TYPE_BOXED derived #GValue to v_boxed and takes over the ownership of the caller’s reference to v_boxed; the caller doesn’t have to unref it any more.
Sets the contents of a G_TYPE_STRING #GValue to v_string.
Set the contents of a variant #GValue to variant, and takes over the ownership of the caller's reference to variant; the caller doesn't have to unref it any more (i.e. the reference count of the variant is not increased).
Tries to cast the contents of 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).
Clears the current value in value (if any) and "unsets" the type, this releases all resources associated with this GValue. An unset value is the same as an uninitialized (zero-filled) #GValue structure.
Returns whether a #GValue of type src_type can be copied into a #GValue of type dest_type.
Check whether gobject.value.Value.transform is able to transform values of type src_type into values of type dest_type. Note that for the types to be transformable, they must be compatible or a transformation function must be registered.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
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.
#GValue 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 G_VALUE_TYPE() macro.