Value.object
Description:
[ CCode ( has_construct_function = false ) ]
public Value.object (Context context, void* instance, Class? jsc_class)
public Value.object (Context context, void* instance, Class? jsc_class)
Create a new Value from instance
.
If instance
is null a new empty object is created. When instance
is provided,
jsc_class
must be provided too. jsc_class
takes ownership of instance
that will be freed by the
DestroyNotify passed to
register_class.
Parameters:
context |
a Context |
instance |
an object instance or null |
jsc_class |
the Class of |
Returns:
a Value. |