init_from_instance
Description:
[ Version ( since = "2.42" ) ]
public void init_from_instance (void* instance)
public void init_from_instance (void* instance)
Initializes and sets this from an instantiatable type.
This calls the [callback@GObject.TypeValueCollectFunc] function for the type the [struct@GObject.Value] contains.
Note: The this will be initialised with the exact type of instance. If you wish to set the
this’s type to a different [type@GObject.Type] (such as a parent class type), you need to manually call [
method@GObject.Value.init] and [method@GObject.Value.set_instance].
Parameters:
| this |
a zero-filled (cleared) [struct@GObject.Value] structure |
| instance |
the instance |