public class Class : GLib.Object {
[CCode (has_construct_function = false)]
protected Class ();
- public JSC.Value add_constructor_variadic (string? name, GLib.Callback callback, void* user_data, GLib.DestroyNotify? destroy_notify, GLib.Type return_type);
- public JSC.Value add_constructorv (string? name, GLib.Callback callback, void* user_data, GLib.DestroyNotify? destroy_notify, GLib.Type return_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 5.5, array_length_type = "guint")] GLib.Type[]? parameter_types);
- public void add_method_variadic (string name, GLib.Callback callback, void* user_data, GLib.DestroyNotify? destroy_notify, GLib.Type return_type);
- public void add_methodv (string name, GLib.Callback callback, void* user_data, GLib.DestroyNotify? destroy_notify, GLib.Type return_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 5.5, array_length_type = "guint")] GLib.Type[]? parameter_types);
+ [CCode (cname = "jsc_class_add_constructor_variadic")]
+ public JSC.Value add_constructor (string? name, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667, type = "GCallback")] owned JSC.ClassConstructorCb callback, GLib.Type return_type);
+ [CCode (cname = "jsc_class_add_method_variadic")]
+ public void add_method (string name, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667, type = "GCallback")] owned JSC.ClassMethodCb callback, GLib.Type return_type);
public void add_property (string name, GLib.Type property_type, [CCode (scope = "async")] GLib.Callback? getter, GLib.Callback? setter, void* user_data, GLib.DestroyNotify? destroy_notify);
public unowned string get_name ();
public unowned JSC.Class get_parent ();
ENUMERABLE,
WRITABLE
}
+ [CCode (cheader_filename = "jsc/jsc.h", instance_pos = 1.9, type_cname = "GCallback")]
+ public delegate T ClassConstructorCb<T> (GLib.GenericArray<JSC.Value> values);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate bool ClassDeletePropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate JSC.Value? ClassGetPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate bool ClassHasPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name);
+ [CCode (cheader_filename = "jsc/jsc.h", instance_pos = 2.9, type_cname = "GCallback")]
+ public delegate T ClassMethodCb<T> (JSC.Class instance, GLib.GenericArray<JSC.Value> values);
[CCode (cheader_filename = "jsc/jsc.h", has_target = false)]
public delegate bool ClassSetPropertyFunction (JSC.Class jsc_class, JSC.Context context, void* instance, string name, JSC.Value value);
[CCode (cheader_filename = "jsc/jsc.h", instance_pos = 2.9)]
Class
.add_property.getter closure=-1 destroy=-1 owned=false
.add_property.setter closure=-1 destroy=-1 owned=false
- .add_constructor_variadic.callback closure=-1 destroy=-1 owned=false
- .add_constructorv.callback closure=-1 destroy=-1 owned=false
- .add_method_variadic.callback closure=-1 destroy=-1 owned=false
- .add_methodv.callback closure=-1 destroy=-1 owned=false
+ .add_constructor skip
+ .add_constructorv skip
+ .add_constructor_variadic name="add_constructor"
+ .add_constructor_variadic.callback type="owned JSC.ClassConstructorCb"
+ .add_method skip
+ .add_methodv skip
+ .add_method_variadic name="add_method"
+ .add_method_variadic.callback type="owned JSC.ClassMethodCb"
Value
.new_function_variadic.callback closure=-1 destroy=-1 owned=false
.new_functionv.callback closure=-1 destroy=-1 owned=false