Sets our main struct and passes it to the parent class.
Copies the value of src_value into dest_value.
Get the contents of a G_TYPE_BOXED derived gobject.Value Upon getting, the boxed value is duplicated and needs to be later freed with g_boxed_free(), e.g. like: g_boxed_free (G_VALUE_TYPE (value), return_value);
Get the contents of a G_TYPE_OBJECT derived gobject.Value, increasing its reference count. If the contents of the gobject.Value are NULL, then NULL will be returned.
Get the contents of a G_TYPE_PARAM gobject.Value, increasing its reference count.
Get a copy the contents of a G_TYPE_STRING gobject.Value
Get the contents of a variant gobject.Value, increasing its refcount. The returned glib.Variant 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.
Retrieves a TYPE from Value, the Value must contain the appropriate type.
Get the contents of a G_TYPE_BOOLEAN gobject.Value
Get the contents of a G_TYPE_BOXED derived gobject.Value
Do not use this function; it is broken on platforms where the char type is unsigned, such as ARM and PowerPC. See Value.getSchar.
Get the contents of a G_TYPE_DOUBLE gobject.Value
Get the contents of a G_TYPE_ENUM gobject.Value
Get the contents of a G_TYPE_FLAGS gobject.Value
Get the contents of a G_TYPE_FLOAT gobject.Value
Get the contents of a G_TYPE_GTYPE gobject.Value
Get the contents of a G_TYPE_INT gobject.Value
Get the contents of a G_TYPE_INT64 gobject.Value
Get the contents of a G_TYPE_LONG gobject.Value
Get the contents of a G_TYPE_OBJECT derived gobject.Value
Get the contents of a G_TYPE_PARAM gobject.Value
Get the contents of a pointer gobject.Value
Get the contents of a G_TYPE_CHAR gobject.Value
Get the contents of a G_TYPE_STRING gobject.Value
the main Gtk struct as a void*
Get the contents of a G_TYPE_UCHAR gobject.Value
Get the contents of a G_TYPE_UINT gobject.Value
Get the contents of a G_TYPE_UINT64 gobject.Value
Get the contents of a G_TYPE_ULONG gobject.Value
Get the main Gtk struct
Get the contents of a variant gobject.Value
Initializes value with the default value of type.
Initializes and sets value from an instantiatable type via the value_table's collect_value() function.
Returns the value contents as pointer. This function asserts that 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).
Set the contents of a G_TYPE_BOOLEAN gobject.Value to v_boolean.
Set the contents of a G_TYPE_BOXED derived gobject.Value to v_boxed.
This is an internal function introduced mainly for C marshallers.
Set the contents of a G_TYPE_CHAR gobject.Value to v_char.
Set the contents of a G_TYPE_DOUBLE gobject.Value to v_double.
Set the contents of a G_TYPE_ENUM gobject.Value to v_enum.
Set the contents of a G_TYPE_FLAGS gobject.Value to v_flags.
Set the contents of a G_TYPE_FLOAT gobject.Value to v_float.
Set the contents of a G_TYPE_GTYPE gobject.Value 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 gobject.Value to v_int.
Set the contents of a G_TYPE_INT64 gobject.Value to v_int64.
Set the contents of a G_TYPE_LONG gobject.Value to v_long.
Set the contents of a G_TYPE_OBJECT derived gobject.Value to v_object.
This is an internal function introduced mainly for C marshallers.
Set the contents of a G_TYPE_PARAM gobject.Value to param.
This is an internal function introduced mainly for C marshallers.
Set the contents of a pointer gobject.Value to v_pointer.
Set the contents of a G_TYPE_CHAR gobject.Value to v_char.
Set the contents of a G_TYPE_BOXED derived gobject.Value to v_boxed. The boxed value is assumed to be static, and is thus not duplicated when setting the gobject.Value
Set the contents of a G_TYPE_STRING gobject.Value to v_string. The string is assumed to be static, and is thus not duplicated when setting the gobject.Value
Set the contents of a G_TYPE_STRING gobject.Value to v_string.
This is an internal function introduced mainly for C marshallers.
Set the contents of a G_TYPE_UCHAR gobject.Value to v_uchar.
Set the contents of a G_TYPE_UINT gobject.Value to v_uint.
Set the contents of a G_TYPE_UINT64 gobject.Value to v_uint64.
Set the contents of a G_TYPE_ULONG gobject.Value to v_ulong.
Set the contents of a variant gobject.Value to variant. If the variant is floating, it is consumed.
Sets the contents of a G_TYPE_BOXED derived gobject.Value 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_OBJECT derived gobject.Value to v_object and takes over the ownership of the caller’s reference to v_object; the caller doesn’t have to unref it any more (i.e. the reference count of the object is not increased).
Sets the contents of a G_TYPE_PARAM gobject.Value to param and takes over the ownership of the caller’s reference to param; the caller doesn’t have to unref it any more.
Sets the contents of a G_TYPE_STRING gobject.Value to v_string.
Set the contents of a variant gobject.Value 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) gobject.Value structure.
The GType of the contianed value.
Creates a new GParamSpecBoolean instance specifying a G_TYPE_BOOLEAN property. In many cases, it may be more appropriate to use an enum with ParamSpec.enum, both to improve code clarity by using explicitly named values, and to allow for more values to be added in future without breaking API.
Creates a new GParamSpecBoxed instance specifying a G_TYPE_BOXED derived property.
Creates a new GParamSpecChar instance specifying a G_TYPE_CHAR property.
Creates a new GParamSpecDouble instance specifying a G_TYPE_DOUBLE property.
Creates a new GParamSpecEnum instance specifying a G_TYPE_ENUM property.
Creates a new GParamSpecFlags instance specifying a G_TYPE_FLAGS property.
Creates a new GParamSpecFloat instance specifying a G_TYPE_FLOAT property.
Creates a new GParamSpecGType instance specifying a G_TYPE_GTYPE property.
Creates a new GParamSpecInt instance specifying a G_TYPE_INT property.
Creates a new GParamSpecInt64 instance specifying a G_TYPE_INT64 property.
Creates a new GParamSpecLong instance specifying a G_TYPE_LONG property.
Creates a new GParamSpecBoxed instance specifying a G_TYPE_OBJECT derived property.
Creates a new property of type GParamSpecOverride This is used to direct operations to another paramspec, and will not be directly useful unless you are implementing a new base type similar to GObject.
Creates a new GParamSpecParam instance specifying a G_TYPE_PARAM property.
Creates a new GParamSpecPointer instance specifying a pointer property. Where possible, it is better to use ParamSpec.object or ParamSpec.boxed to expose memory management information.
Creates a new GParamSpecString instance.
Creates a new GParamSpecUChar instance specifying a G_TYPE_UCHAR property.
Creates a new GParamSpecUInt instance specifying a G_TYPE_UINT property.
Creates a new GParamSpecUInt64 instance specifying a G_TYPE_UINT64 property.
Creates a new GParamSpecULong instance specifying a G_TYPE_ULONG property.
Creates a new GParamSpecUnichar instance specifying a G_TYPE_UINT property. gobject.Value structures for this property can be accessed with Value.setUint and Value.getUint.
Creates a new GParamSpecValueArray instance specifying a G_TYPE_VALUE_ARRAY property. G_TYPE_VALUE_ARRAY is a G_TYPE_BOXED type, as such, gobject.Value structures for this property can be accessed with Value.setBoxed and Value.getBoxed.
Creates a new GParamSpecVariant instance specifying a glib.Variant property.
Registers a value transformation function for use in Value.transform. A previously registered transformation function for src_type and dest_type will be replaced.
Return a newly allocated string, which describes the contents of a gobject.Value The main purpose of this function is to describe gobject.Value contents for debugging output, the way in which the contents are described may change between different GLib versions.
Returns whether a gobject.Value of type src_type can be copied into a gobject.Value of type dest_type.
Check whether 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.
the main Gtk struct
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. gobject.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 G_VALUE_TYPE() macro.