Sets our main struct and passes it to the parent class.
Create a new #JSCValue referencing an array with the items from @array. If @array is %NULL or empty a new empty array will be created. Elements of @array should be pointers to a #JSCValue.
Create a new #JSCValue referencing an array of strings with the items from @strv. If @array is %NULL or empty a new empty array will be created.
Create a new #JSCValue from @value
Create a function in @context. If @name is %NULL an anonymous function will be created. When the function is called by JavaScript or jsc_value_function_call(), @callback is called receiving an #GPtrArray of #JSCValue<!-- -->s with the arguments and then @user_data as last parameter. When the function is cleared in @context, @destroy_notify is called with @user_data as parameter.
Create a function in @context. If @name is %NULL an anonymous function will be created. When the function is called by JavaScript or jsc_value_function_call(), @callback is called receiving the function parameters and then @user_data as last parameter. When the function is cleared in @context, @destroy_notify is called with @user_data as parameter.
Create a new #JSCValue referencing <function>null</function> in @context.
Create a new #JSCValue from @number.
Create a new #JSCValue 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 #GDestroyNotify passed to jsc_context_register_class().
Create a new #JSCValue from @string. If you need to create a #JSCValue from a string containing null characters, use jsc_value_new_string_from_bytes() instead.
Create a new #JSCValue from @bytes.
Invoke <function>new</function> with constructor referenced by @value. If @n_parameters is 0 no parameters will be passed to the constructor.
Call function referenced by @value, passing the given @parameters. If @n_parameters is 0 no parameters will be passed to the function.
Get the #JSCContext in which @value was created.
the main Gtk struct as a void*
Get the main Gtk struct
Get whether the value referenced by @value is an array.
Get whether the value referenced by @value is a boolean.
Get whether the value referenced by @value is a constructor.
Get whether the value referenced by @value is a function
Get whether the value referenced by @value is <function>null</function>.
Get whether the value referenced by @value is a number.
Get whether the value referenced by @value is an object.
Get whether the value referenced by @value is a string
Get whether the value referenced by @value is <function>undefined</function>.
Define or modify a property with @property_name in object referenced by @value. When the property value needs to be getted or set, @getter and @setter callbacks will be called. When the property is cleared in the #JSCClass context, @destroy_notify is called with @user_data as parameter. This is equivalent to JavaScript <function>Object.defineProperty()</function> when used with an accessor descriptor.
Define or modify a property with @property_name in object referenced by @value. This is equivalent to JavaScript <function>Object.defineProperty()</function> when used with a data descriptor.
Try to delete property with @name from @value. This function will return %FALSE if the property was defined without %JSC_VALUE_PROPERTY_CONFIGURABLE flag.
Get the list of property names of @value. Only properties defined with %JSC_VALUE_PROPERTY_ENUMERABLE flag will be collected.
Get property with @name from @value.
Get property at @index from @value.
Get whether @value has property with @name.
Invoke method with @name on object referenced by @value, passing the given @parameters. If @n_parameters is 0 no parameters will be passed to the method. The object instance will be handled automatically even when the method is a custom one registered with jsc_class_add_method(), so it should never be passed explicitly as parameter of this function.
Get whether the value referenced by @value is an instance of class @name.
Set @property with @name on @value.
Set @property at @index on @value.
Convert @value to a boolean.
Convert @value to a double.
Convert @value to a #gint32.
Create a JSON string of @value serialization. If @indent is 0, the resulting JSON will not contain newlines. The size of the indent is clamped to 10 spaces.
Convert @value to a string. Use jsc_value_to_string_as_bytes() instead, if you need to handle strings containing null characters.
Convert @value to a string and return the results as #GBytes. This is needed to handle strings with null characters.
Create a new #JSCValue referencing a new value created by parsing @json.
Create a new #JSCValue referencing <function>undefined</function> in @context.
the main Gtk struct
JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.