Top | ![]() |
![]() |
![]() |
![]() |
SeedObject | seed_make_object () |
SeedObject | seed_make_array () |
SeedValue | seed_object_call () |
void | seed_object_set_property_at_index () |
SeedValue | seed_object_get_property_at_index () |
gboolean | seed_object_is_of_class () |
gpointer | seed_object_get_private () |
void | seed_object_set_private () |
SeedValue | seed_object_get_property () |
gboolean | seed_object_set_property () |
SeedObject | seed_object_get_prototype () |
gchar ** | seed_object_copy_property_names () |
void | (*SeedObjectInitializeCallback) () |
void | (*SeedObjectFinalizeCallback) () |
gboolean | (*SeedObjectHasPropertyCallback) () |
SeedValue | (*SeedObjectGetPropertyCallback) () |
gboolean | (*SeedObjectSetPropertyCallback) () |
gboolean | (*SeedObjectDeletePropertyCallback) () |
void | (*SeedObjectGetPropertyNamesCallback) () |
SeedValue | (*SeedObjectCallAsFunctionCallback) () |
gboolean | (*SeedObjectHasInstanceCallback) () |
SeedValue | (*SeedObjectConvertToTypeCallback) () |
SeedValue | (*SeedObjectCallAsConstructorCallback) () |
SeedObject seed_make_object (SeedContext ctx
,SeedClass klass
,gpointer private_object
);
ctx |
The SeedContext in which to create the new object. |
|
class |
The SeedClass to use to create the new object, or |
|
private |
The initial private data of the new object. |
SeedObject seed_make_array (SeedContext ctx
,const SeedValue elements
,gsize num_elements
,SeedException *exception
);
Creates a JavaScript Array object from elements
, a C-style array of
SeedValues.
ctx |
A valid SeedContext |
|
elements |
An array of SeedValue's with which to populate the array. |
|
num_elements |
The number of values, in |
|
exception |
A SeedException in which to store an exception.
Pass |
SeedValue seed_object_call (SeedContext ctx
,SeedObject object
,SeedObject this_object
,gsize argument_count
,const SeedValue arguments[]
,SeedException *exception
);
Calls object
as a function.
ctx |
A SeedContext. |
|
object |
A SeedObject to call. |
|
this |
The SeedObject to use as the 'this' object inside the called function. |
|
argument_count |
The number of arguments in the |
|
arguments |
An array ( |
|
exception |
A reference to a SeedValue in which to store any exceptions.
Pass |
The SeedValue
returned by the called function, or NULL
if an
exception occurs or the object is not a function.
void seed_object_set_property_at_index (SeedContext ctx
,SeedObject object
,gint index
,SeedValue value
,SeedException *exception
);
Sets the property index
on object
to value
.
ctx |
A SeedContext. |
|
object |
A SeedObject on which to set the property. |
|
index |
The index of the property to set. |
|
value |
The SeedValue to use as the property's value. |
|
exception |
A reference to a SeedValue in which to store any exceptions.
Pass |
SeedValue seed_object_get_property_at_index (SeedContext ctx
,SeedObject object
,gint index
,SeedException *exception
);
gboolean seed_object_is_of_class (SeedContext ctx
,SeedObject obj
,SeedClass klass
);
gpointer
seed_object_get_private (SeedObject object
);
Retrieves the private data of object
.
void seed_object_set_private (SeedObject object
,gpointer value
);
Sets the private data of object
to value
.
SeedValue seed_object_get_property (SeedContext ctx
,SeedObject object
,const gchar *name
);
gboolean seed_object_set_property (SeedContext ctx
,SeedObject object
,const gchar *name
,SeedValue value
);
SeedObject seed_object_get_prototype (SeedContext ctx
,SeedObject obj
);
gchar ** seed_object_copy_property_names (SeedContext ctx
,SeedObject object
);
void (*SeedObjectInitializeCallback) (SeedContext ctx
,SeedObject object
);
gboolean (*SeedObjectHasPropertyCallback) (SeedContext ctx
,SeedObject object
,SeedString string
);
SeedValue (*SeedObjectGetPropertyCallback) (SeedContext ctx
,SeedObject object
,SeedString property_name
,SeedException *e
);
gboolean (*SeedObjectSetPropertyCallback) (SeedContext ctx
,SeedObject object
,SeedString property_name
,SeedValue value
,SeedException *e
);
gboolean (*SeedObjectDeletePropertyCallback) (SeedContext ctx
,SeedObject object
,SeedString property_name
,SeedException *e
);
SeedValue (*SeedObjectCallAsFunctionCallback) (SeedContext ctx
,SeedObject function
,SeedObject this_object
,gsize argument_count
,const SeedValue arguments[]
,SeedException *exception
);
gboolean (*SeedObjectHasInstanceCallback) (SeedContext ctx
,SeedObject constructor
,SeedObject instance_p
,SeedException *exception
);
SeedValue (*SeedObjectConvertToTypeCallback) (SeedContext ctx
,SeedObject object
,SeedType type
,SeedException *exception
);
SeedValue (*SeedObjectCallAsConstructorCallback) (SeedContext ctx
,SeedObject constructor
,gsize argument_count
,const SeedValue arguments[]
,SeedException *exception
);