javascriptcore

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAJOR_VERSION int32 = C.JSC_MAJOR_VERSION
View Source
const MICRO_VERSION int32 = C.JSC_MICRO_VERSION
View Source
const MINOR_VERSION int32 = C.JSC_MINOR_VERSION

Variables

This section is empty.

Functions

func GetMajorVersion

func GetMajorVersion() uint32

GetMajorVersion is a wrapper around the C function jsc_get_major_version.

func GetMicroVersion

func GetMicroVersion() uint32

GetMicroVersion is a wrapper around the C function jsc_get_micro_version.

func GetMinorVersion

func GetMinorVersion() uint32

GetMinorVersion is a wrapper around the C function jsc_get_minor_version.

Types

type CheckSyntaxMode

type CheckSyntaxMode C.JSCCheckSyntaxMode
const (
	CHECK_SYNTAX_MODE_SCRIPT CheckSyntaxMode = 0
	CHECK_SYNTAX_MODE_MODULE CheckSyntaxMode = 1
)

type CheckSyntaxResult

type CheckSyntaxResult C.JSCCheckSyntaxResult
const (
	CHECK_SYNTAX_RESULT_SUCCESS                    CheckSyntaxResult = 0
	CHECK_SYNTAX_RESULT_RECOVERABLE_ERROR          CheckSyntaxResult = 1
	CHECK_SYNTAX_RESULT_IRRECOVERABLE_ERROR        CheckSyntaxResult = 2
	CHECK_SYNTAX_RESULT_UNTERMINATED_LITERAL_ERROR CheckSyntaxResult = 3
	CHECK_SYNTAX_RESULT_OUT_OF_MEMORY_ERROR        CheckSyntaxResult = 4
	CHECK_SYNTAX_RESULT_STACK_OVERFLOW_ERROR       CheckSyntaxResult = 5
)

type Class

type Class struct {
	// contains filtered or unexported fields
}

Class is a wrapper around the C record JSCClass.

func CastToClass

func CastToClass(object *gobject.Object) *Class

CastToWidget down casts any arbitrary Object to Class. Exercise care, as this is a potentially dangerous function if the Object is not a Class.

func ClassNewFromC

func ClassNewFromC(u unsafe.Pointer) *Class

func (*Class) Equals

func (recv *Class) Equals(other *Class) bool

Equals compares this Class with another Class, and returns true if they represent the same GObject.

func (*Class) GetName

func (recv *Class) GetName() string

GetName is a wrapper around the C function jsc_class_get_name.

func (*Class) GetParent

func (recv *Class) GetParent() *Class

GetParent is a wrapper around the C function jsc_class_get_parent.

func (*Class) Object

func (recv *Class) Object() *gobject.Object

Object upcasts to *Object

func (*Class) ToC

func (recv *Class) ToC() unsafe.Pointer

type ClassClass

type ClassClass struct {
	// contains filtered or unexported fields
}

ClassClass is a wrapper around the C record JSCClassClass.

func ClassClassNewFromC

func ClassClassNewFromC(u unsafe.Pointer) *ClassClass

func (*ClassClass) Equals

func (recv *ClassClass) Equals(other *ClassClass) bool

Equals compares this ClassClass with another ClassClass, and returns true if they represent the same GObject.

func (*ClassClass) ToC

func (recv *ClassClass) ToC() unsafe.Pointer

type ClassVTable

type ClassVTable struct {
	// contains filtered or unexported fields
}

ClassVTable is a wrapper around the C record JSCClassVTable.

func ClassVTableNewFromC

func ClassVTableNewFromC(u unsafe.Pointer) *ClassVTable

func (*ClassVTable) Equals

func (recv *ClassVTable) Equals(other *ClassVTable) bool

Equals compares this ClassVTable with another ClassVTable, and returns true if they represent the same GObject.

func (*ClassVTable) ToC

func (recv *ClassVTable) ToC() unsafe.Pointer

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context is a wrapper around the C record JSCContext.

func CastToContext

func CastToContext(object *gobject.Object) *Context

CastToWidget down casts any arbitrary Object to Context. Exercise care, as this is a potentially dangerous function if the Object is not a Context.

func ContextGetCurrent

func ContextGetCurrent() *Context

ContextGetCurrent is a wrapper around the C function jsc_context_get_current.

func ContextNew

func ContextNew() *Context

ContextNew is a wrapper around the C function jsc_context_new.

func ContextNewFromC

func ContextNewFromC(u unsafe.Pointer) *Context

func ContextNewWithVirtualMachine

func ContextNewWithVirtualMachine(vm *VirtualMachine) *Context

ContextNewWithVirtualMachine is a wrapper around the C function jsc_context_new_with_virtual_machine.

func (*Context) CheckSyntax

func (recv *Context) CheckSyntax(code string, mode CheckSyntaxMode, uri string, lineNumber uint32) (CheckSyntaxResult, *Exception)

CheckSyntax is a wrapper around the C function jsc_context_check_syntax.

func (*Context) ClearException

func (recv *Context) ClearException()

ClearException is a wrapper around the C function jsc_context_clear_exception.

func (*Context) Equals

func (recv *Context) Equals(other *Context) bool

Equals compares this Context with another Context, and returns true if they represent the same GObject.

func (*Context) Evaluate

func (recv *Context) Evaluate(code string) *Value

Evaluate is a wrapper around the C function jsc_context_evaluate.

func (*Context) EvaluateInObject

func (recv *Context) EvaluateInObject(code string, objectInstance uintptr, objectClass *Class, uri string, lineNumber uint32) (*Value, *Value)

EvaluateInObject is a wrapper around the C function jsc_context_evaluate_in_object.

func (*Context) EvaluateWithSourceUri

func (recv *Context) EvaluateWithSourceUri(code string, uri string, lineNumber uint32) *Value

EvaluateWithSourceUri is a wrapper around the C function jsc_context_evaluate_with_source_uri.

func (*Context) GetException

func (recv *Context) GetException() *Exception

GetException is a wrapper around the C function jsc_context_get_exception.

func (*Context) GetGlobalObject

func (recv *Context) GetGlobalObject() *Value

GetGlobalObject is a wrapper around the C function jsc_context_get_global_object.

func (*Context) GetValue

func (recv *Context) GetValue(name string) *Value

GetValue is a wrapper around the C function jsc_context_get_value.

func (*Context) GetVirtualMachine

func (recv *Context) GetVirtualMachine() *VirtualMachine

GetVirtualMachine is a wrapper around the C function jsc_context_get_virtual_machine.

func (*Context) Object

func (recv *Context) Object() *gobject.Object

Object upcasts to *Object

func (*Context) PopExceptionHandler

func (recv *Context) PopExceptionHandler()

PopExceptionHandler is a wrapper around the C function jsc_context_pop_exception_handler.

func (*Context) SetValue

func (recv *Context) SetValue(name string, value *Value)

SetValue is a wrapper around the C function jsc_context_set_value.

func (*Context) Throw

func (recv *Context) Throw(errorMessage string)

Throw is a wrapper around the C function jsc_context_throw.

func (*Context) ThrowException

func (recv *Context) ThrowException(exception *Exception)

ThrowException is a wrapper around the C function jsc_context_throw_exception.

func (*Context) ThrowPrintf

func (recv *Context) ThrowPrintf(format string, args ...interface{})

ThrowPrintf is a wrapper around the C function jsc_context_throw_printf.

func (*Context) ThrowWithName

func (recv *Context) ThrowWithName(errorName string, errorMessage string)

ThrowWithName is a wrapper around the C function jsc_context_throw_with_name.

func (*Context) ThrowWithNamePrintf

func (recv *Context) ThrowWithNamePrintf(errorName string, format string, args ...interface{})

ThrowWithNamePrintf is a wrapper around the C function jsc_context_throw_with_name_printf.

func (*Context) ToC

func (recv *Context) ToC() unsafe.Pointer

type ContextClass

type ContextClass struct {
	// contains filtered or unexported fields
}

ContextClass is a wrapper around the C record JSCContextClass.

func ContextClassNewFromC

func ContextClassNewFromC(u unsafe.Pointer) *ContextClass

func (*ContextClass) Equals

func (recv *ContextClass) Equals(other *ContextClass) bool

Equals compares this ContextClass with another ContextClass, and returns true if they represent the same GObject.

func (*ContextClass) ToC

func (recv *ContextClass) ToC() unsafe.Pointer

type ContextPrivate

type ContextPrivate struct {
	// contains filtered or unexported fields
}

ContextPrivate is a wrapper around the C record JSCContextPrivate.

func ContextPrivateNewFromC

func ContextPrivateNewFromC(u unsafe.Pointer) *ContextPrivate

func (*ContextPrivate) Equals

func (recv *ContextPrivate) Equals(other *ContextPrivate) bool

Equals compares this ContextPrivate with another ContextPrivate, and returns true if they represent the same GObject.

func (*ContextPrivate) ToC

func (recv *ContextPrivate) ToC() unsafe.Pointer

type Exception

type Exception struct {
	// contains filtered or unexported fields
}

Exception is a wrapper around the C record JSCException.

func CastToException

func CastToException(object *gobject.Object) *Exception

CastToWidget down casts any arbitrary Object to Exception. Exercise care, as this is a potentially dangerous function if the Object is not a Exception.

func ExceptionNew

func ExceptionNew(context *Context, message string) *Exception

ExceptionNew is a wrapper around the C function jsc_exception_new.

func ExceptionNewFromC

func ExceptionNewFromC(u unsafe.Pointer) *Exception

func ExceptionNewPrintf

func ExceptionNewPrintf(context *Context, format string, args ...interface{}) *Exception

ExceptionNewPrintf is a wrapper around the C function jsc_exception_new_printf.

func ExceptionNewWithName

func ExceptionNewWithName(context *Context, name string, message string) *Exception

ExceptionNewWithName is a wrapper around the C function jsc_exception_new_with_name.

func ExceptionNewWithNamePrintf

func ExceptionNewWithNamePrintf(context *Context, name string, format string, args ...interface{}) *Exception

ExceptionNewWithNamePrintf is a wrapper around the C function jsc_exception_new_with_name_printf.

func (*Exception) Equals

func (recv *Exception) Equals(other *Exception) bool

Equals compares this Exception with another Exception, and returns true if they represent the same GObject.

func (*Exception) GetBacktraceString

func (recv *Exception) GetBacktraceString() string

GetBacktraceString is a wrapper around the C function jsc_exception_get_backtrace_string.

func (*Exception) GetColumnNumber

func (recv *Exception) GetColumnNumber() uint32

GetColumnNumber is a wrapper around the C function jsc_exception_get_column_number.

func (*Exception) GetLineNumber

func (recv *Exception) GetLineNumber() uint32

GetLineNumber is a wrapper around the C function jsc_exception_get_line_number.

func (*Exception) GetMessage

func (recv *Exception) GetMessage() string

GetMessage is a wrapper around the C function jsc_exception_get_message.

func (*Exception) GetName

func (recv *Exception) GetName() string

GetName is a wrapper around the C function jsc_exception_get_name.

func (*Exception) GetSourceUri

func (recv *Exception) GetSourceUri() string

GetSourceUri is a wrapper around the C function jsc_exception_get_source_uri.

func (*Exception) Object

func (recv *Exception) Object() *gobject.Object

Object upcasts to *Object

func (*Exception) Report

func (recv *Exception) Report() string

Report is a wrapper around the C function jsc_exception_report.

func (*Exception) ToC

func (recv *Exception) ToC() unsafe.Pointer

func (*Exception) ToString

func (recv *Exception) ToString() string

ToString is a wrapper around the C function jsc_exception_to_string.

type ExceptionClass

type ExceptionClass struct {
	// contains filtered or unexported fields
}

ExceptionClass is a wrapper around the C record JSCExceptionClass.

func ExceptionClassNewFromC

func ExceptionClassNewFromC(u unsafe.Pointer) *ExceptionClass

func (*ExceptionClass) Equals

func (recv *ExceptionClass) Equals(other *ExceptionClass) bool

Equals compares this ExceptionClass with another ExceptionClass, and returns true if they represent the same GObject.

func (*ExceptionClass) ToC

func (recv *ExceptionClass) ToC() unsafe.Pointer

type ExceptionPrivate

type ExceptionPrivate struct {
	// contains filtered or unexported fields
}

ExceptionPrivate is a wrapper around the C record JSCExceptionPrivate.

func ExceptionPrivateNewFromC

func ExceptionPrivateNewFromC(u unsafe.Pointer) *ExceptionPrivate

func (*ExceptionPrivate) Equals

func (recv *ExceptionPrivate) Equals(other *ExceptionPrivate) bool

Equals compares this ExceptionPrivate with another ExceptionPrivate, and returns true if they represent the same GObject.

func (*ExceptionPrivate) ToC

func (recv *ExceptionPrivate) ToC() unsafe.Pointer

type Value

type Value struct {
	// contains filtered or unexported fields
}

Value is a wrapper around the C record JSCValue.

func CastToValue

func CastToValue(object *gobject.Object) *Value

CastToWidget down casts any arbitrary Object to Value. Exercise care, as this is a potentially dangerous function if the Object is not a Value.

func ValueNewArrayFromStrv

func ValueNewArrayFromStrv(context *Context, strv []string) *Value

ValueNewArrayFromStrv is a wrapper around the C function jsc_value_new_array_from_strv.

func ValueNewBoolean

func ValueNewBoolean(context *Context, value bool) *Value

ValueNewBoolean is a wrapper around the C function jsc_value_new_boolean.

func ValueNewFromC

func ValueNewFromC(u unsafe.Pointer) *Value

func ValueNewNull

func ValueNewNull(context *Context) *Value

ValueNewNull is a wrapper around the C function jsc_value_new_null.

func ValueNewNumber

func ValueNewNumber(context *Context, number float64) *Value

ValueNewNumber is a wrapper around the C function jsc_value_new_number.

func ValueNewObject

func ValueNewObject(context *Context, instance uintptr, jscClass *Class) *Value

ValueNewObject is a wrapper around the C function jsc_value_new_object.

func ValueNewString

func ValueNewString(context *Context, string_ string) *Value

ValueNewString is a wrapper around the C function jsc_value_new_string.

func ValueNewStringFromBytes

func ValueNewStringFromBytes(context *Context, bytes *glib.Bytes) *Value

ValueNewStringFromBytes is a wrapper around the C function jsc_value_new_string_from_bytes.

func ValueNewUndefined

func ValueNewUndefined(context *Context) *Value

ValueNewUndefined is a wrapper around the C function jsc_value_new_undefined.

func (*Value) Equals

func (recv *Value) Equals(other *Value) bool

Equals compares this Value with another Value, and returns true if they represent the same GObject.

func (*Value) GetContext

func (recv *Value) GetContext() *Context

GetContext is a wrapper around the C function jsc_value_get_context.

func (*Value) IsArray

func (recv *Value) IsArray() bool

IsArray is a wrapper around the C function jsc_value_is_array.

func (*Value) IsBoolean

func (recv *Value) IsBoolean() bool

IsBoolean is a wrapper around the C function jsc_value_is_boolean.

func (*Value) IsConstructor

func (recv *Value) IsConstructor() bool

IsConstructor is a wrapper around the C function jsc_value_is_constructor.

func (*Value) IsFunction

func (recv *Value) IsFunction() bool

IsFunction is a wrapper around the C function jsc_value_is_function.

func (*Value) IsNull

func (recv *Value) IsNull() bool

IsNull is a wrapper around the C function jsc_value_is_null.

func (*Value) IsNumber

func (recv *Value) IsNumber() bool

IsNumber is a wrapper around the C function jsc_value_is_number.

func (*Value) IsObject

func (recv *Value) IsObject() bool

IsObject is a wrapper around the C function jsc_value_is_object.

func (*Value) IsString

func (recv *Value) IsString() bool

IsString is a wrapper around the C function jsc_value_is_string.

func (*Value) IsUndefined

func (recv *Value) IsUndefined() bool

IsUndefined is a wrapper around the C function jsc_value_is_undefined.

func (*Value) Object

func (recv *Value) Object() *gobject.Object

Object upcasts to *Object

func (*Value) ObjectDefinePropertyData

func (recv *Value) ObjectDefinePropertyData(propertyName string, flags ValuePropertyFlags, propertyValue *Value)

ObjectDefinePropertyData is a wrapper around the C function jsc_value_object_define_property_data.

func (*Value) ObjectDeleteProperty

func (recv *Value) ObjectDeleteProperty(name string) bool

ObjectDeleteProperty is a wrapper around the C function jsc_value_object_delete_property.

func (*Value) ObjectEnumerateProperties

func (recv *Value) ObjectEnumerateProperties() []string

ObjectEnumerateProperties is a wrapper around the C function jsc_value_object_enumerate_properties.

func (*Value) ObjectGetProperty

func (recv *Value) ObjectGetProperty(name string) *Value

ObjectGetProperty is a wrapper around the C function jsc_value_object_get_property.

func (*Value) ObjectGetPropertyAtIndex

func (recv *Value) ObjectGetPropertyAtIndex(index uint32) *Value

ObjectGetPropertyAtIndex is a wrapper around the C function jsc_value_object_get_property_at_index.

func (*Value) ObjectHasProperty

func (recv *Value) ObjectHasProperty(name string) bool

ObjectHasProperty is a wrapper around the C function jsc_value_object_has_property.

func (*Value) ObjectIsInstanceOf

func (recv *Value) ObjectIsInstanceOf(name string) bool

ObjectIsInstanceOf is a wrapper around the C function jsc_value_object_is_instance_of.

func (*Value) ObjectSetProperty

func (recv *Value) ObjectSetProperty(name string, property *Value)

ObjectSetProperty is a wrapper around the C function jsc_value_object_set_property.

func (*Value) ObjectSetPropertyAtIndex

func (recv *Value) ObjectSetPropertyAtIndex(index uint32, property *Value)

ObjectSetPropertyAtIndex is a wrapper around the C function jsc_value_object_set_property_at_index.

func (*Value) ToBoolean

func (recv *Value) ToBoolean() bool

ToBoolean is a wrapper around the C function jsc_value_to_boolean.

func (*Value) ToC

func (recv *Value) ToC() unsafe.Pointer

func (*Value) ToDouble

func (recv *Value) ToDouble() float64

ToDouble is a wrapper around the C function jsc_value_to_double.

func (*Value) ToInt32

func (recv *Value) ToInt32() int32

ToInt32 is a wrapper around the C function jsc_value_to_int32.

func (*Value) ToString

func (recv *Value) ToString() string

ToString is a wrapper around the C function jsc_value_to_string.

func (*Value) ToStringAsBytes

func (recv *Value) ToStringAsBytes() *glib.Bytes

ToStringAsBytes is a wrapper around the C function jsc_value_to_string_as_bytes.

type ValueClass

type ValueClass struct {
	// contains filtered or unexported fields
}

ValueClass is a wrapper around the C record JSCValueClass.

func ValueClassNewFromC

func ValueClassNewFromC(u unsafe.Pointer) *ValueClass

func (*ValueClass) Equals

func (recv *ValueClass) Equals(other *ValueClass) bool

Equals compares this ValueClass with another ValueClass, and returns true if they represent the same GObject.

func (*ValueClass) ToC

func (recv *ValueClass) ToC() unsafe.Pointer

type ValuePrivate

type ValuePrivate struct {
	// contains filtered or unexported fields
}

ValuePrivate is a wrapper around the C record JSCValuePrivate.

func ValuePrivateNewFromC

func ValuePrivateNewFromC(u unsafe.Pointer) *ValuePrivate

func (*ValuePrivate) Equals

func (recv *ValuePrivate) Equals(other *ValuePrivate) bool

Equals compares this ValuePrivate with another ValuePrivate, and returns true if they represent the same GObject.

func (*ValuePrivate) ToC

func (recv *ValuePrivate) ToC() unsafe.Pointer

type ValuePropertyFlags

type ValuePropertyFlags C.JSCValuePropertyFlags
const (
	VALUE_PROPERTY_CONFIGURABLE ValuePropertyFlags = 1
	VALUE_PROPERTY_ENUMERABLE   ValuePropertyFlags = 2
	VALUE_PROPERTY_WRITABLE     ValuePropertyFlags = 4
)

type VirtualMachine

type VirtualMachine struct {
	// contains filtered or unexported fields
}

VirtualMachine is a wrapper around the C record JSCVirtualMachine.

func CastToVirtualMachine

func CastToVirtualMachine(object *gobject.Object) *VirtualMachine

CastToWidget down casts any arbitrary Object to VirtualMachine. Exercise care, as this is a potentially dangerous function if the Object is not a VirtualMachine.

func VirtualMachineNew

func VirtualMachineNew() *VirtualMachine

VirtualMachineNew is a wrapper around the C function jsc_virtual_machine_new.

func VirtualMachineNewFromC

func VirtualMachineNewFromC(u unsafe.Pointer) *VirtualMachine

func (*VirtualMachine) Equals

func (recv *VirtualMachine) Equals(other *VirtualMachine) bool

Equals compares this VirtualMachine with another VirtualMachine, and returns true if they represent the same GObject.

func (*VirtualMachine) Object

func (recv *VirtualMachine) Object() *gobject.Object

Object upcasts to *Object

func (*VirtualMachine) ToC

func (recv *VirtualMachine) ToC() unsafe.Pointer

type VirtualMachineClass

type VirtualMachineClass struct {
	// contains filtered or unexported fields
}

VirtualMachineClass is a wrapper around the C record JSCVirtualMachineClass.

func VirtualMachineClassNewFromC

func VirtualMachineClassNewFromC(u unsafe.Pointer) *VirtualMachineClass

func (*VirtualMachineClass) Equals

func (recv *VirtualMachineClass) Equals(other *VirtualMachineClass) bool

Equals compares this VirtualMachineClass with another VirtualMachineClass, and returns true if they represent the same GObject.

func (*VirtualMachineClass) ToC

func (recv *VirtualMachineClass) ToC() unsafe.Pointer

type VirtualMachinePrivate

type VirtualMachinePrivate struct {
	// contains filtered or unexported fields
}

VirtualMachinePrivate is a wrapper around the C record JSCVirtualMachinePrivate.

func VirtualMachinePrivateNewFromC

func VirtualMachinePrivateNewFromC(u unsafe.Pointer) *VirtualMachinePrivate

func (*VirtualMachinePrivate) Equals

func (recv *VirtualMachinePrivate) Equals(other *VirtualMachinePrivate) bool

Equals compares this VirtualMachinePrivate with another VirtualMachinePrivate, and returns true if they represent the same GObject.

func (*VirtualMachinePrivate) ToC

func (recv *VirtualMachinePrivate) ToC() unsafe.Pointer

type WeakValue

type WeakValue struct {
	// contains filtered or unexported fields
}

WeakValue is a wrapper around the C record JSCWeakValue.

func CastToWeakValue

func CastToWeakValue(object *gobject.Object) *WeakValue

CastToWidget down casts any arbitrary Object to WeakValue. Exercise care, as this is a potentially dangerous function if the Object is not a WeakValue.

func WeakValueNew

func WeakValueNew(value *Value) *WeakValue

WeakValueNew is a wrapper around the C function jsc_weak_value_new.

func WeakValueNewFromC

func WeakValueNewFromC(u unsafe.Pointer) *WeakValue

func (*WeakValue) ConnectCleared

func (recv *WeakValue) ConnectCleared(callback WeakValueSignalClearedCallback) int

ConnectCleared connects the callback to the 'cleared' signal for the WeakValue.

The returned value represents the connection, and may be passed to DisconnectCleared to remove it.

func (*WeakValue) DisconnectCleared

func (recv *WeakValue) DisconnectCleared(connectionID int)

DisconnectCleared disconnects a callback from the 'cleared' signal for the WeakValue.

The connectionID should be a value returned from a call to ConnectCleared.

func (*WeakValue) Equals

func (recv *WeakValue) Equals(other *WeakValue) bool

Equals compares this WeakValue with another WeakValue, and returns true if they represent the same GObject.

func (*WeakValue) GetValue

func (recv *WeakValue) GetValue() *Value

GetValue is a wrapper around the C function jsc_weak_value_get_value.

func (*WeakValue) Object

func (recv *WeakValue) Object() *gobject.Object

Object upcasts to *Object

func (*WeakValue) ToC

func (recv *WeakValue) ToC() unsafe.Pointer

type WeakValueClass

type WeakValueClass struct {
	// contains filtered or unexported fields
}

WeakValueClass is a wrapper around the C record JSCWeakValueClass.

func WeakValueClassNewFromC

func WeakValueClassNewFromC(u unsafe.Pointer) *WeakValueClass

func (*WeakValueClass) Equals

func (recv *WeakValueClass) Equals(other *WeakValueClass) bool

Equals compares this WeakValueClass with another WeakValueClass, and returns true if they represent the same GObject.

func (*WeakValueClass) ToC

func (recv *WeakValueClass) ToC() unsafe.Pointer

type WeakValuePrivate

type WeakValuePrivate struct {
	// contains filtered or unexported fields
}

WeakValuePrivate is a wrapper around the C record JSCWeakValuePrivate.

func WeakValuePrivateNewFromC

func WeakValuePrivateNewFromC(u unsafe.Pointer) *WeakValuePrivate

func (*WeakValuePrivate) Equals

func (recv *WeakValuePrivate) Equals(other *WeakValuePrivate) bool

Equals compares this WeakValuePrivate with another WeakValuePrivate, and returns true if they represent the same GObject.

func (*WeakValuePrivate) ToC

func (recv *WeakValuePrivate) ToC() unsafe.Pointer

type WeakValueSignalClearedCallback

type WeakValueSignalClearedCallback func(targetObject *WeakValue)

WeakValueSignalClearedCallback is a callback function for a 'cleared' signal emitted from a WeakValue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL