Value.initFromInstance

Initializes and sets @value from an instantiatable type via the value_table's collect_value() function.

Note: The @value will be initialised with the exact type of @instance. If you wish to set the @value's type to a different GType (such as a parent class GType), you need to manually call g_value_init() and g_value_set_instance().

class Value
void
initFromInstance
(
void* instanc
)

Parameters

instanc void*

the instance

Meta

Since

2.42