gobject

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PARAM_MASK int = C.G_PARAM_MASK
View Source
const PARAM_STATIC_STRINGS int = C.G_PARAM_STATIC_STRINGS
View Source
const PARAM_USER_SHIFT int = C.G_PARAM_USER_SHIFT
View Source
const SIGNAL_FLAGS_MASK int = C.G_SIGNAL_FLAGS_MASK
View Source
const SIGNAL_MATCH_MASK int = C.G_SIGNAL_MATCH_MASK
View Source
const TYPE_FUNDAMENTAL_MAX int = C.G_TYPE_FUNDAMENTAL_MAX
View Source
const TYPE_FUNDAMENTAL_SHIFT int = C.G_TYPE_FUNDAMENTAL_SHIFT
View Source
const TYPE_RESERVED_BSE_FIRST int = C.G_TYPE_RESERVED_BSE_FIRST
View Source
const TYPE_RESERVED_BSE_LAST int = C.G_TYPE_RESERVED_BSE_LAST
View Source
const TYPE_RESERVED_GLIB_FIRST int = C.G_TYPE_RESERVED_GLIB_FIRST
View Source
const TYPE_RESERVED_GLIB_LAST int = C.G_TYPE_RESERVED_GLIB_LAST
View Source
const TYPE_RESERVED_USER_FIRST int = C.G_TYPE_RESERVED_USER_FIRST
View Source
const VALUE_NOCOPY_CONTENTS int = C.G_VALUE_NOCOPY_CONTENTS

Variables

This section is empty.

Functions

func BoxedCopy

func BoxedCopy(boxedType Type, srcBoxed uintptr) uintptr

BoxedCopy is a wrapper around the C function g_boxed_copy.

func BoxedFree

func BoxedFree(boxedType Type, boxed uintptr)

BoxedFree is a wrapper around the C function g_boxed_free.

func CclosureMarshalBooleanBoxedBoxed

func CclosureMarshalBooleanBoxedBoxed(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalBooleanBoxedBoxed is a wrapper around the C function g_cclosure_marshal_BOOLEAN__BOXED_BOXED.

func CclosureMarshalBooleanFlags

func CclosureMarshalBooleanFlags(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalBooleanFlags is a wrapper around the C function g_cclosure_marshal_BOOLEAN__FLAGS.

func CclosureMarshalStringObjectPointer

func CclosureMarshalStringObjectPointer(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalStringObjectPointer is a wrapper around the C function g_cclosure_marshal_STRING__OBJECT_POINTER.

func CclosureMarshalVoidBoolean

func CclosureMarshalVoidBoolean(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidBoolean is a wrapper around the C function g_cclosure_marshal_VOID__BOOLEAN.

func CclosureMarshalVoidBoxed

func CclosureMarshalVoidBoxed(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidBoxed is a wrapper around the C function g_cclosure_marshal_VOID__BOXED.

func CclosureMarshalVoidChar

func CclosureMarshalVoidChar(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidChar is a wrapper around the C function g_cclosure_marshal_VOID__CHAR.

func CclosureMarshalVoidDouble

func CclosureMarshalVoidDouble(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidDouble is a wrapper around the C function g_cclosure_marshal_VOID__DOUBLE.

func CclosureMarshalVoidEnum

func CclosureMarshalVoidEnum(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidEnum is a wrapper around the C function g_cclosure_marshal_VOID__ENUM.

func CclosureMarshalVoidFlags

func CclosureMarshalVoidFlags(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidFlags is a wrapper around the C function g_cclosure_marshal_VOID__FLAGS.

func CclosureMarshalVoidFloat

func CclosureMarshalVoidFloat(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidFloat is a wrapper around the C function g_cclosure_marshal_VOID__FLOAT.

func CclosureMarshalVoidInt

func CclosureMarshalVoidInt(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidInt is a wrapper around the C function g_cclosure_marshal_VOID__INT.

func CclosureMarshalVoidLong

func CclosureMarshalVoidLong(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidLong is a wrapper around the C function g_cclosure_marshal_VOID__LONG.

func CclosureMarshalVoidObject

func CclosureMarshalVoidObject(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidObject is a wrapper around the C function g_cclosure_marshal_VOID__OBJECT.

func CclosureMarshalVoidParam

func CclosureMarshalVoidParam(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidParam is a wrapper around the C function g_cclosure_marshal_VOID__PARAM.

func CclosureMarshalVoidPointer

func CclosureMarshalVoidPointer(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidPointer is a wrapper around the C function g_cclosure_marshal_VOID__POINTER.

func CclosureMarshalVoidString

func CclosureMarshalVoidString(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidString is a wrapper around the C function g_cclosure_marshal_VOID__STRING.

func CclosureMarshalVoidUchar

func CclosureMarshalVoidUchar(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidUchar is a wrapper around the C function g_cclosure_marshal_VOID__UCHAR.

func CclosureMarshalVoidUint

func CclosureMarshalVoidUint(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidUint is a wrapper around the C function g_cclosure_marshal_VOID__UINT.

func CclosureMarshalVoidUintPointer

func CclosureMarshalVoidUintPointer(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidUintPointer is a wrapper around the C function g_cclosure_marshal_VOID__UINT_POINTER.

func CclosureMarshalVoidUlong

func CclosureMarshalVoidUlong(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidUlong is a wrapper around the C function g_cclosure_marshal_VOID__ULONG.

func CclosureMarshalVoidVariant

func CclosureMarshalVoidVariant(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidVariant is a wrapper around the C function g_cclosure_marshal_VOID__VARIANT.

func CclosureMarshalVoidVoid

func CclosureMarshalVoidVoid(closure *Closure, returnValue *Value, nParamValues uint32, paramValues *Value, invocationHint uintptr, marshalData uintptr)

CclosureMarshalVoidVoid is a wrapper around the C function g_cclosure_marshal_VOID__VOID.

func SignalConnectClosure

func SignalConnectClosure(instance uintptr, detailedSignal string, closure *Closure, after bool) uint64

SignalConnectClosure is a wrapper around the C function g_signal_connect_closure.

func SignalConnectClosureById

func SignalConnectClosureById(instance uintptr, signalId uint32, detail glib.Quark, closure *Closure, after bool) uint64

SignalConnectClosureById is a wrapper around the C function g_signal_connect_closure_by_id.

func SignalHandlerBlock

func SignalHandlerBlock(instance uintptr, handlerId uint64)

SignalHandlerBlock is a wrapper around the C function g_signal_handler_block.

func SignalHandlerDisconnect

func SignalHandlerDisconnect(instance uintptr, handlerId uint64)

SignalHandlerDisconnect is a wrapper around the C function g_signal_handler_disconnect.

func SignalHandlerFind

func SignalHandlerFind(instance uintptr, mask SignalMatchType, signalId uint32, detail glib.Quark, closure *Closure, func_ uintptr, data uintptr) uint64

SignalHandlerFind is a wrapper around the C function g_signal_handler_find.

func SignalHandlerIsConnected

func SignalHandlerIsConnected(instance uintptr, handlerId uint64) bool

SignalHandlerIsConnected is a wrapper around the C function g_signal_handler_is_connected.

func SignalHandlerUnblock

func SignalHandlerUnblock(instance uintptr, handlerId uint64)

SignalHandlerUnblock is a wrapper around the C function g_signal_handler_unblock.

func SignalHandlersBlockMatched

func SignalHandlersBlockMatched(instance uintptr, mask SignalMatchType, signalId uint32, detail glib.Quark, closure *Closure, func_ uintptr, data uintptr) uint32

SignalHandlersBlockMatched is a wrapper around the C function g_signal_handlers_block_matched.

func SignalHandlersDestroy

func SignalHandlersDestroy(instance uintptr)

SignalHandlersDestroy is a wrapper around the C function g_signal_handlers_destroy.

func SignalHandlersDisconnectMatched

func SignalHandlersDisconnectMatched(instance uintptr, mask SignalMatchType, signalId uint32, detail glib.Quark, closure *Closure, func_ uintptr, data uintptr) uint32

SignalHandlersDisconnectMatched is a wrapper around the C function g_signal_handlers_disconnect_matched.

func SignalHandlersUnblockMatched

func SignalHandlersUnblockMatched(instance uintptr, mask SignalMatchType, signalId uint32, detail glib.Quark, closure *Closure, func_ uintptr, data uintptr) uint32

SignalHandlersUnblockMatched is a wrapper around the C function g_signal_handlers_unblock_matched.

func SignalHasHandlerPending

func SignalHasHandlerPending(instance uintptr, signalId uint32, detail glib.Quark, mayBeBlocked bool) bool

SignalHasHandlerPending is a wrapper around the C function g_signal_has_handler_pending.

func SignalLookup

func SignalLookup(name string, itype Type) uint32

SignalLookup is a wrapper around the C function g_signal_lookup.

func SignalName

func SignalName(signalId uint32) string

SignalName is a wrapper around the C function g_signal_name.

func SignalOverrideClassClosure

func SignalOverrideClassClosure(signalId uint32, instanceType Type, classClosure *Closure)

SignalOverrideClassClosure is a wrapper around the C function g_signal_override_class_closure.

func SignalParseName

func SignalParseName(detailedSignal string, itype Type, forceDetailQuark bool) (bool, uint32, glib.Quark)

SignalParseName is a wrapper around the C function g_signal_parse_name.

func SignalRemoveEmissionHook

func SignalRemoveEmissionHook(signalId uint32, hookId uint64)

SignalRemoveEmissionHook is a wrapper around the C function g_signal_remove_emission_hook.

func SignalStopEmission

func SignalStopEmission(instance uintptr, signalId uint32, detail glib.Quark)

SignalStopEmission is a wrapper around the C function g_signal_stop_emission.

func SignalStopEmissionByName

func SignalStopEmissionByName(instance uintptr, detailedSignal string)

SignalStopEmissionByName is a wrapper around the C function g_signal_stop_emission_by_name.

func SourceSetClosure

func SourceSetClosure(source *glib.Source, closure *Closure)

SourceSetClosure is a wrapper around the C function g_source_set_closure.

func SourceSetDummyCallback

func SourceSetDummyCallback(source *glib.Source)

SourceSetDummyCallback is a wrapper around the C function g_source_set_dummy_callback.

func StrdupValueContents

func StrdupValueContents(value *Value) string

StrdupValueContents is a wrapper around the C function g_strdup_value_contents.

func TypeAddInstancePrivate

func TypeAddInstancePrivate(classType Type, privateSize uint64) int32

TypeAddInstancePrivate is a wrapper around the C function g_type_add_instance_private.

func TypeAddInterfaceDynamic

func TypeAddInterfaceDynamic(instanceType Type, interfaceType Type, plugin *TypePlugin)

TypeAddInterfaceDynamic is a wrapper around the C function g_type_add_interface_dynamic.

func TypeAddInterfaceStatic

func TypeAddInterfaceStatic(instanceType Type, interfaceType Type, info *InterfaceInfo)

TypeAddInterfaceStatic is a wrapper around the C function g_type_add_interface_static.

func TypeCheckClassIsA

func TypeCheckClassIsA(gClass *TypeClass, isAType Type) bool

TypeCheckClassIsA is a wrapper around the C function g_type_check_class_is_a.

func TypeCheckInstance

func TypeCheckInstance(instance *TypeInstance) bool

TypeCheckInstance is a wrapper around the C function g_type_check_instance.

func TypeCheckInstanceIsA

func TypeCheckInstanceIsA(instance *TypeInstance, ifaceType Type) bool

TypeCheckInstanceIsA is a wrapper around the C function g_type_check_instance_is_a.

func TypeCheckInstanceIsFundamentallyA

func TypeCheckInstanceIsFundamentallyA(instance *TypeInstance, fundamentalType Type) bool

TypeCheckInstanceIsFundamentallyA is a wrapper around the C function g_type_check_instance_is_fundamentally_a.

func TypeCheckIsValueType

func TypeCheckIsValueType(type_ Type) bool

TypeCheckIsValueType is a wrapper around the C function g_type_check_is_value_type.

func TypeCheckValue

func TypeCheckValue(value *Value) bool

TypeCheckValue is a wrapper around the C function g_type_check_value.

func TypeCheckValueHolds

func TypeCheckValueHolds(value *Value, type_ Type) bool

TypeCheckValueHolds is a wrapper around the C function g_type_check_value_holds.

func TypeClassAdjustPrivateOffset

func TypeClassAdjustPrivateOffset(gClass uintptr, privateSizeOrOffset int32)

TypeClassAdjustPrivateOffset is a wrapper around the C function g_type_class_adjust_private_offset.

func TypeClassPeek

func TypeClassPeek(type_ Type) uintptr

TypeClassPeek is a wrapper around the C function g_type_class_peek.

func TypeClassRef

func TypeClassRef(type_ Type) uintptr

TypeClassRef is a wrapper around the C function g_type_class_ref.

func TypeDepth

func TypeDepth(type_ Type) uint32

TypeDepth is a wrapper around the C function g_type_depth.

func TypeFreeInstance

func TypeFreeInstance(instance *TypeInstance)

TypeFreeInstance is a wrapper around the C function g_type_free_instance.

func TypeGetQdata

func TypeGetQdata(type_ Type, quark glib.Quark) uintptr

TypeGetQdata is a wrapper around the C function g_type_get_qdata.

func TypeInit

func TypeInit()

TypeInit is a wrapper around the C function g_type_init.

func TypeInitWithDebugFlags

func TypeInitWithDebugFlags(debugFlags TypeDebugFlags)

TypeInitWithDebugFlags is a wrapper around the C function g_type_init_with_debug_flags.

func TypeInterfaceAddPrerequisite

func TypeInterfaceAddPrerequisite(interfaceType Type, prerequisiteType Type)

TypeInterfaceAddPrerequisite is a wrapper around the C function g_type_interface_add_prerequisite.

func TypeInterfacePeek

func TypeInterfacePeek(instanceClass uintptr, ifaceType Type) uintptr

TypeInterfacePeek is a wrapper around the C function g_type_interface_peek.

func TypeIsA

func TypeIsA(type_ Type, isAType Type) bool

TypeIsA is a wrapper around the C function g_type_is_a.

func TypeName

func TypeName(type_ Type) string

TypeName is a wrapper around the C function g_type_name.

func TypeNameFromClass

func TypeNameFromClass(gClass *TypeClass) string

TypeNameFromClass is a wrapper around the C function g_type_name_from_class.

func TypeNameFromInstance

func TypeNameFromInstance(instance *TypeInstance) string

TypeNameFromInstance is a wrapper around the C function g_type_name_from_instance.

func TypeQname

func TypeQname(type_ Type) glib.Quark

TypeQname is a wrapper around the C function g_type_qname.

func TypeSetQdata

func TypeSetQdata(type_ Type, quark glib.Quark, data uintptr)

TypeSetQdata is a wrapper around the C function g_type_set_qdata.

func TypeTestFlags

func TypeTestFlags(type_ Type, flags uint32) bool

TypeTestFlags is a wrapper around the C function g_type_test_flags.

func ValueTypeCompatible

func ValueTypeCompatible(srcType Type, destType Type) bool

ValueTypeCompatible is a wrapper around the C function g_value_type_compatible.

func ValueTypeTransformable

func ValueTypeTransformable(srcType Type, destType Type) bool

ValueTypeTransformable is a wrapper around the C function g_value_type_transformable.

Types

type CClosure

type CClosure struct {

	// closure : record
	Callback uintptr
	// contains filtered or unexported fields
}

CClosure is a wrapper around the C record GCClosure.

func CClosureNewFromC

func CClosureNewFromC(u unsafe.Pointer) *CClosure

func (*CClosure) ToC

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

type Closure

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

Closure is a wrapper around the C record GClosure.

func ClosureNewFromC

func ClosureNewFromC(u unsafe.Pointer) *Closure

func ClosureNewObject

func ClosureNewObject(sizeofClosure uint32, object *Object) *Closure

ClosureNewObject is a wrapper around the C function g_closure_new_object.

func ClosureNewSimple

func ClosureNewSimple(sizeofClosure uint32, data uintptr) *Closure

ClosureNewSimple is a wrapper around the C function g_closure_new_simple.

func SignalTypeCclosureNew

func SignalTypeCclosureNew(itype Type, structOffset uint32) *Closure

SignalTypeCclosureNew is a wrapper around the C function g_signal_type_cclosure_new.

func (*Closure) Invalidate

func (recv *Closure) Invalidate()

Invalidate is a wrapper around the C function g_closure_invalidate.

func (*Closure) Ref

func (recv *Closure) Ref() *Closure

Ref is a wrapper around the C function g_closure_ref.

func (*Closure) Sink

func (recv *Closure) Sink()

Sink is a wrapper around the C function g_closure_sink.

func (*Closure) ToC

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

func (*Closure) Unref

func (recv *Closure) Unref()

Unref is a wrapper around the C function g_closure_unref.

type ClosureNotifyData

type ClosureNotifyData struct {
	Data uintptr
	// contains filtered or unexported fields
}

ClosureNotifyData is a wrapper around the C record GClosureNotifyData.

func ClosureNotifyDataNewFromC

func ClosureNotifyDataNewFromC(u unsafe.Pointer) *ClosureNotifyData

func (*ClosureNotifyData) ToC

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

type ConnectFlags

type ConnectFlags C.GConnectFlags
const (
	CONNECT_AFTER   ConnectFlags = 1
	CONNECT_SWAPPED ConnectFlags = 2
)

type EnumClass

type EnumClass struct {

	// g_type_class : record
	Minimum int32
	Maximum int32
	NValues uint32
	// contains filtered or unexported fields
}

EnumClass is a wrapper around the C record GEnumClass.

func EnumClassNewFromC

func EnumClassNewFromC(u unsafe.Pointer) *EnumClass

func (*EnumClass) ToC

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

type EnumValue

type EnumValue struct {
	Value     int32
	ValueName string
	ValueNick string
	// contains filtered or unexported fields
}

EnumValue is a wrapper around the C record GEnumValue.

func EnumGetValue

func EnumGetValue(enumClass *EnumClass, value int32) *EnumValue

EnumGetValue is a wrapper around the C function g_enum_get_value.

func EnumGetValueByName

func EnumGetValueByName(enumClass *EnumClass, name string) *EnumValue

EnumGetValueByName is a wrapper around the C function g_enum_get_value_by_name.

func EnumGetValueByNick

func EnumGetValueByNick(enumClass *EnumClass, nick string) *EnumValue

EnumGetValueByNick is a wrapper around the C function g_enum_get_value_by_nick.

func EnumValueNewFromC

func EnumValueNewFromC(u unsafe.Pointer) *EnumValue

func (*EnumValue) ToC

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

type FlagsClass

type FlagsClass struct {

	// g_type_class : record
	Mask    uint32
	NValues uint32
	// contains filtered or unexported fields
}

FlagsClass is a wrapper around the C record GFlagsClass.

func FlagsClassNewFromC

func FlagsClassNewFromC(u unsafe.Pointer) *FlagsClass

func (*FlagsClass) ToC

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

type FlagsValue

type FlagsValue struct {
	Value     uint32
	ValueName string
	ValueNick string
	// contains filtered or unexported fields
}

FlagsValue is a wrapper around the C record GFlagsValue.

func FlagsGetFirstValue

func FlagsGetFirstValue(flagsClass *FlagsClass, value uint32) *FlagsValue

FlagsGetFirstValue is a wrapper around the C function g_flags_get_first_value.

func FlagsGetValueByName

func FlagsGetValueByName(flagsClass *FlagsClass, name string) *FlagsValue

FlagsGetValueByName is a wrapper around the C function g_flags_get_value_by_name.

func FlagsGetValueByNick

func FlagsGetValueByNick(flagsClass *FlagsClass, nick string) *FlagsValue

FlagsGetValueByNick is a wrapper around the C function g_flags_get_value_by_nick.

func FlagsValueNewFromC

func FlagsValueNewFromC(u unsafe.Pointer) *FlagsValue

func (*FlagsValue) ToC

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

type InitiallyUnowned

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

InitiallyUnowned is a wrapper around the C record GInitiallyUnowned.

func CastToInitiallyUnowned

func CastToInitiallyUnowned(object *Object) *InitiallyUnowned

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

func InitiallyUnownedNewFromC

func InitiallyUnownedNewFromC(u unsafe.Pointer) *InitiallyUnowned

func (*InitiallyUnowned) Object

func (recv *InitiallyUnowned) Object() *Object

Object upcasts to *Object

func (*InitiallyUnowned) ToC

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

type InitiallyUnownedClass

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

InitiallyUnownedClass is a wrapper around the C record GInitiallyUnownedClass.

func InitiallyUnownedClassNewFromC

func InitiallyUnownedClassNewFromC(u unsafe.Pointer) *InitiallyUnownedClass

func (*InitiallyUnownedClass) ToC

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

type InterfaceInfo

type InterfaceInfo struct {

	// interface_init : no type generator for InterfaceInitFunc, GInterfaceInitFunc
	// interface_finalize : no type generator for InterfaceFinalizeFunc, GInterfaceFinalizeFunc
	InterfaceData uintptr
	// contains filtered or unexported fields
}

InterfaceInfo is a wrapper around the C record GInterfaceInfo.

func InterfaceInfoNewFromC

func InterfaceInfoNewFromC(u unsafe.Pointer) *InterfaceInfo

func (*InterfaceInfo) ToC

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

type Object

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

Object is a wrapper around the C record GObject.

func CastToObject

func CastToObject(object *Object) *Object

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

func ObjectNewFromC

func ObjectNewFromC(u unsafe.Pointer) *Object

func (*Object) AddWeakPointer

func (recv *Object) AddWeakPointer(weakPointerLocation uintptr)

AddWeakPointer is a wrapper around the C function g_object_add_weak_pointer.

func (*Object) FreezeNotify

func (recv *Object) FreezeNotify()

FreezeNotify is a wrapper around the C function g_object_freeze_notify.

func (*Object) GetData

func (recv *Object) GetData(key string) uintptr

GetData is a wrapper around the C function g_object_get_data.

func (*Object) GetProperty

func (recv *Object) GetProperty(propertyName string, value *Value)

GetProperty is a wrapper around the C function g_object_get_property.

func (*Object) GetQdata

func (recv *Object) GetQdata(quark glib.Quark) uintptr

GetQdata is a wrapper around the C function g_object_get_qdata.

func (*Object) Notify

func (recv *Object) Notify(propertyName string)

Notify is a wrapper around the C function g_object_notify.

func (*Object) Ref

func (recv *Object) Ref() uintptr

Ref is a wrapper around the C function g_object_ref.

func (*Object) RemoveWeakPointer

func (recv *Object) RemoveWeakPointer(weakPointerLocation uintptr)

RemoveWeakPointer is a wrapper around the C function g_object_remove_weak_pointer.

func (*Object) RunDispose

func (recv *Object) RunDispose()

RunDispose is a wrapper around the C function g_object_run_dispose.

func (*Object) SetData

func (recv *Object) SetData(key string, data uintptr)

SetData is a wrapper around the C function g_object_set_data.

func (*Object) SetProperty

func (recv *Object) SetProperty(propertyName string, value *Value)

SetProperty is a wrapper around the C function g_object_set_property.

func (*Object) SetQdata

func (recv *Object) SetQdata(quark glib.Quark, data uintptr)

SetQdata is a wrapper around the C function g_object_set_qdata.

func (*Object) StealData

func (recv *Object) StealData(key string) uintptr

StealData is a wrapper around the C function g_object_steal_data.

func (*Object) StealQdata

func (recv *Object) StealQdata(quark glib.Quark) uintptr

StealQdata is a wrapper around the C function g_object_steal_qdata.

func (*Object) ThawNotify

func (recv *Object) ThawNotify()

ThawNotify is a wrapper around the C function g_object_thaw_notify.

func (*Object) ToC

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

func (*Object) Unref

func (recv *Object) Unref()

Unref is a wrapper around the C function g_object_unref.

func (*Object) WatchClosure

func (recv *Object) WatchClosure(closure *Closure)

WatchClosure is a wrapper around the C function g_object_watch_closure.

type ObjectClass

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

ObjectClass is a wrapper around the C record GObjectClass.

func ObjectClassNewFromC

func ObjectClassNewFromC(u unsafe.Pointer) *ObjectClass

func (*ObjectClass) ToC

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

type ObjectConstructParam

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

ObjectConstructParam is a wrapper around the C record GObjectConstructParam.

func ObjectConstructParamNewFromC

func ObjectConstructParamNewFromC(u unsafe.Pointer) *ObjectConstructParam

func (*ObjectConstructParam) ToC

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

type ParamFlags

type ParamFlags C.GParamFlags
const (
	PARAM_READABLE        ParamFlags = 1
	PARAM_WRITABLE        ParamFlags = 2
	PARAM_READWRITE       ParamFlags = 3
	PARAM_CONSTRUCT       ParamFlags = 4
	PARAM_CONSTRUCT_ONLY  ParamFlags = 8
	PARAM_LAX_VALIDATION  ParamFlags = 16
	PARAM_STATIC_NAME     ParamFlags = 32
	PARAM_PRIVATE         ParamFlags = 32
	PARAM_STATIC_NICK     ParamFlags = 64
	PARAM_STATIC_BLURB    ParamFlags = 128
	PARAM_EXPLICIT_NOTIFY ParamFlags = 1073741824
)

type ParamSpecClass

type ParamSpecClass struct {

	// g_type_class : record
	ValueType Type
	// contains filtered or unexported fields
}

ParamSpecClass is a wrapper around the C record GParamSpecClass.

func ParamSpecClassNewFromC

func ParamSpecClassNewFromC(u unsafe.Pointer) *ParamSpecClass

func (*ParamSpecClass) ToC

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

type ParamSpecPool

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

ParamSpecPool is a wrapper around the C record GParamSpecPool.

func ParamSpecPoolNew

func ParamSpecPoolNew(typePrefixing bool) *ParamSpecPool

ParamSpecPoolNew is a wrapper around the C function g_param_spec_pool_new.

func ParamSpecPoolNewFromC

func ParamSpecPoolNewFromC(u unsafe.Pointer) *ParamSpecPool

func (*ParamSpecPool) ListOwned

func (recv *ParamSpecPool) ListOwned(ownerType Type) *glib.List

ListOwned is a wrapper around the C function g_param_spec_pool_list_owned.

func (*ParamSpecPool) ToC

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

type ParamSpecTypeInfo

type ParamSpecTypeInfo struct {
	InstanceSize uint16
	NPreallocs   uint16
	// no type for instance_init
	ValueType Type
	// contains filtered or unexported fields
}

ParamSpecTypeInfo is a wrapper around the C record GParamSpecTypeInfo.

func ParamSpecTypeInfoNewFromC

func ParamSpecTypeInfoNewFromC(u unsafe.Pointer) *ParamSpecTypeInfo

func (*ParamSpecTypeInfo) ToC

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

type Parameter

type Parameter struct {
	Name string
	// contains filtered or unexported fields
}

Parameter is a wrapper around the C record GParameter.

func ParameterNewFromC

func ParameterNewFromC(u unsafe.Pointer) *Parameter

func (*Parameter) ToC

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

type SignalFlags

type SignalFlags C.GSignalFlags
const (
	SIGNAL_RUN_FIRST    SignalFlags = 1
	SIGNAL_RUN_LAST     SignalFlags = 2
	SIGNAL_RUN_CLEANUP  SignalFlags = 4
	SIGNAL_NO_RECURSE   SignalFlags = 8
	SIGNAL_DETAILED     SignalFlags = 16
	SIGNAL_ACTION       SignalFlags = 32
	SIGNAL_NO_HOOKS     SignalFlags = 64
	SIGNAL_MUST_COLLECT SignalFlags = 128
	SIGNAL_DEPRECATED   SignalFlags = 256
)

type SignalInvocationHint

type SignalInvocationHint struct {
	SignalId uint32
	Detail   glib.Quark
	RunType  SignalFlags
	// contains filtered or unexported fields
}

SignalInvocationHint is a wrapper around the C record GSignalInvocationHint.

func SignalGetInvocationHint

func SignalGetInvocationHint(instance uintptr) *SignalInvocationHint

SignalGetInvocationHint is a wrapper around the C function g_signal_get_invocation_hint.

func SignalInvocationHintNewFromC

func SignalInvocationHintNewFromC(u unsafe.Pointer) *SignalInvocationHint

func (*SignalInvocationHint) ToC

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

type SignalMatchType

type SignalMatchType C.GSignalMatchType
const (
	SIGNAL_MATCH_ID        SignalMatchType = 1
	SIGNAL_MATCH_DETAIL    SignalMatchType = 2
	SIGNAL_MATCH_CLOSURE   SignalMatchType = 4
	SIGNAL_MATCH_FUNC      SignalMatchType = 8
	SIGNAL_MATCH_DATA      SignalMatchType = 16
	SIGNAL_MATCH_UNBLOCKED SignalMatchType = 32
)

type SignalQuery

type SignalQuery struct {
	SignalId    uint32
	SignalName  string
	Itype       Type
	SignalFlags SignalFlags
	ReturnType  Type
	NParams     uint32
	// contains filtered or unexported fields
}

SignalQuery is a wrapper around the C record GSignalQuery.

func SignalQueryNewFromC

func SignalQueryNewFromC(u unsafe.Pointer) *SignalQuery

func SignalQuery_

func SignalQuery_(signalId uint32) *SignalQuery

SignalQuery_ is a wrapper around the C function g_signal_query.

func (*SignalQuery) ToC

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

type Type

type Type uint64

Type is a representation of the C alias GType.

const (
	TYPE_INVALID   Type = C.G_TYPE_INVALID
	TYPE_NONE      Type = C.G_TYPE_NONE
	TYPE_INTERFACE Type = C.G_TYPE_INTERFACE
	TYPE_CHAR      Type = C.G_TYPE_CHAR
	TYPE_UCHAR     Type = C.G_TYPE_UCHAR
	TYPE_BOOLEAN   Type = C.G_TYPE_BOOLEAN
	TYPE_INT       Type = C.G_TYPE_INT
	TYPE_UINT      Type = C.G_TYPE_UINT
	TYPE_LONG      Type = C.G_TYPE_LONG
	TYPE_ULONG     Type = C.G_TYPE_ULONG
	TYPE_INT64     Type = C.G_TYPE_INT64
	TYPE_UINT64    Type = C.G_TYPE_UINT64
	TYPE_ENUM      Type = C.G_TYPE_ENUM
	TYPE_FLAGS     Type = C.G_TYPE_FLAGS
	TYPE_FLOAT     Type = C.G_TYPE_FLOAT
	TYPE_DOUBLE    Type = C.G_TYPE_DOUBLE
	TYPE_STRING    Type = C.G_TYPE_STRING
	TYPE_POINTER   Type = C.G_TYPE_POINTER
	TYPE_BOXED     Type = C.G_TYPE_BOXED
	TYPE_PARAM     Type = C.G_TYPE_PARAM
	TYPE_OBJECT    Type = C.G_TYPE_OBJECT
	TYPE_VARIANT   Type = C.G_TYPE_VARIANT
)

func EnumRegisterStatic

func EnumRegisterStatic(name string, constStaticValues *EnumValue) Type

EnumRegisterStatic is a wrapper around the C function g_enum_register_static.

func FlagsRegisterStatic

func FlagsRegisterStatic(name string, constStaticValues *FlagsValue) Type

FlagsRegisterStatic is a wrapper around the C function g_flags_register_static.

func GtypeGetType

func GtypeGetType() Type

GtypeGetType is a wrapper around the C function g_gtype_get_type.

func ParamTypeRegisterStatic

func ParamTypeRegisterStatic(name string, pspecInfo *ParamSpecTypeInfo) Type

ParamTypeRegisterStatic is a wrapper around the C function g_param_type_register_static.

func PointerTypeRegisterStatic

func PointerTypeRegisterStatic(name string) Type

PointerTypeRegisterStatic is a wrapper around the C function g_pointer_type_register_static.

func TypeFromName

func TypeFromName(name string) Type

TypeFromName is a wrapper around the C function g_type_from_name.

func TypeFundamental

func TypeFundamental(typeId Type) Type

TypeFundamental is a wrapper around the C function g_type_fundamental.

func TypeFundamentalNext

func TypeFundamentalNext() Type

TypeFundamentalNext is a wrapper around the C function g_type_fundamental_next.

func TypeNextBase

func TypeNextBase(leafType Type, rootType Type) Type

TypeNextBase is a wrapper around the C function g_type_next_base.

func TypeParent

func TypeParent(type_ Type) Type

TypeParent is a wrapper around the C function g_type_parent.

func TypeRegisterDynamic

func TypeRegisterDynamic(parentType Type, typeName string, plugin *TypePlugin, flags TypeFlags) Type

TypeRegisterDynamic is a wrapper around the C function g_type_register_dynamic.

func TypeRegisterFundamental

func TypeRegisterFundamental(typeId Type, typeName string, info *TypeInfo, finfo *TypeFundamentalInfo, flags TypeFlags) Type

TypeRegisterFundamental is a wrapper around the C function g_type_register_fundamental.

func TypeRegisterStatic

func TypeRegisterStatic(parentType Type, typeName string, info *TypeInfo, flags TypeFlags) Type

TypeRegisterStatic is a wrapper around the C function g_type_register_static.

type TypeClass

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

TypeClass is a wrapper around the C record GTypeClass.

func TypeCheckClassCast

func TypeCheckClassCast(gClass *TypeClass, isAType Type) *TypeClass

TypeCheckClassCast is a wrapper around the C function g_type_check_class_cast.

func TypeClassNewFromC

func TypeClassNewFromC(u unsafe.Pointer) *TypeClass

func (*TypeClass) GetPrivate

func (recv *TypeClass) GetPrivate(privateType Type) uintptr

GetPrivate is a wrapper around the C function g_type_class_get_private.

func (*TypeClass) PeekParent

func (recv *TypeClass) PeekParent() uintptr

PeekParent is a wrapper around the C function g_type_class_peek_parent.

func (*TypeClass) ToC

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

func (*TypeClass) Unref

func (recv *TypeClass) Unref()

Unref is a wrapper around the C function g_type_class_unref.

func (*TypeClass) UnrefUncached

func (recv *TypeClass) UnrefUncached()

UnrefUncached is a wrapper around the C function g_type_class_unref_uncached.

type TypeDebugFlags

type TypeDebugFlags C.GTypeDebugFlags
const (
	TYPE_DEBUG_NONE           TypeDebugFlags = 0
	TYPE_DEBUG_OBJECTS        TypeDebugFlags = 1
	TYPE_DEBUG_SIGNALS        TypeDebugFlags = 2
	TYPE_DEBUG_INSTANCE_COUNT TypeDebugFlags = 4
	TYPE_DEBUG_MASK           TypeDebugFlags = 7
)

type TypeFlags

type TypeFlags C.GTypeFlags
const (
	TYPE_FLAG_ABSTRACT       TypeFlags = 16
	TYPE_FLAG_VALUE_ABSTRACT TypeFlags = 32
)

type TypeFundamentalFlags

type TypeFundamentalFlags C.GTypeFundamentalFlags
const (
	TYPE_FLAG_CLASSED        TypeFundamentalFlags = 1
	TYPE_FLAG_INSTANTIATABLE TypeFundamentalFlags = 2
	TYPE_FLAG_DERIVABLE      TypeFundamentalFlags = 4
	TYPE_FLAG_DEEP_DERIVABLE TypeFundamentalFlags = 8
)

type TypeFundamentalInfo

type TypeFundamentalInfo struct {
	TypeFlags TypeFundamentalFlags
	// contains filtered or unexported fields
}

TypeFundamentalInfo is a wrapper around the C record GTypeFundamentalInfo.

func TypeFundamentalInfoNewFromC

func TypeFundamentalInfoNewFromC(u unsafe.Pointer) *TypeFundamentalInfo

func (*TypeFundamentalInfo) ToC

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

type TypeInfo

type TypeInfo struct {
	ClassSize uint16
	// base_init : no type generator for BaseInitFunc, GBaseInitFunc
	// base_finalize : no type generator for BaseFinalizeFunc, GBaseFinalizeFunc
	// class_init : no type generator for ClassInitFunc, GClassInitFunc
	// class_finalize : no type generator for ClassFinalizeFunc, GClassFinalizeFunc
	ClassData    uintptr
	InstanceSize uint16
	NPreallocs   uint16
	// contains filtered or unexported fields
}

TypeInfo is a wrapper around the C record GTypeInfo.

func EnumCompleteTypeInfo

func EnumCompleteTypeInfo(gEnumType Type, constValues *EnumValue) *TypeInfo

EnumCompleteTypeInfo is a wrapper around the C function g_enum_complete_type_info.

func FlagsCompleteTypeInfo

func FlagsCompleteTypeInfo(gFlagsType Type, constValues *FlagsValue) *TypeInfo

FlagsCompleteTypeInfo is a wrapper around the C function g_flags_complete_type_info.

func TypeInfoNewFromC

func TypeInfoNewFromC(u unsafe.Pointer) *TypeInfo

func (*TypeInfo) ToC

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

type TypeInstance

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

TypeInstance is a wrapper around the C record GTypeInstance.

func TypeCheckInstanceCast

func TypeCheckInstanceCast(instance *TypeInstance, ifaceType Type) *TypeInstance

TypeCheckInstanceCast is a wrapper around the C function g_type_check_instance_cast.

func TypeCreateInstance

func TypeCreateInstance(type_ Type) *TypeInstance

TypeCreateInstance is a wrapper around the C function g_type_create_instance.

func TypeInstanceNewFromC

func TypeInstanceNewFromC(u unsafe.Pointer) *TypeInstance

func (*TypeInstance) GetPrivate

func (recv *TypeInstance) GetPrivate(privateType Type) uintptr

GetPrivate is a wrapper around the C function g_type_instance_get_private.

func (*TypeInstance) ToC

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

type TypeInterface

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

TypeInterface is a wrapper around the C record GTypeInterface.

func TypeInterfaceNewFromC

func TypeInterfaceNewFromC(u unsafe.Pointer) *TypeInterface

func (*TypeInterface) PeekParent

func (recv *TypeInterface) PeekParent() uintptr

PeekParent is a wrapper around the C function g_type_interface_peek_parent.

func (*TypeInterface) ToC

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

type TypeModuleClass

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

TypeModuleClass is a wrapper around the C record GTypeModuleClass.

func TypeModuleClassNewFromC

func TypeModuleClassNewFromC(u unsafe.Pointer) *TypeModuleClass

func (*TypeModuleClass) ToC

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

type TypePlugin

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

TypePlugin is a wrapper around the C record GTypePlugin.

func TypeGetPlugin

func TypeGetPlugin(type_ Type) *TypePlugin

TypeGetPlugin is a wrapper around the C function g_type_get_plugin.

func TypeInterfaceGetPlugin

func TypeInterfaceGetPlugin(instanceType Type, interfaceType Type) *TypePlugin

TypeInterfaceGetPlugin is a wrapper around the C function g_type_interface_get_plugin.

func TypePluginNewFromC

func TypePluginNewFromC(u unsafe.Pointer) *TypePlugin

func (*TypePlugin) CompleteInterfaceInfo

func (recv *TypePlugin) CompleteInterfaceInfo(instanceType Type, interfaceType Type, info *InterfaceInfo)

CompleteInterfaceInfo is a wrapper around the C function g_type_plugin_complete_interface_info.

func (*TypePlugin) CompleteTypeInfo

func (recv *TypePlugin) CompleteTypeInfo(gType Type, info *TypeInfo, valueTable *TypeValueTable)

CompleteTypeInfo is a wrapper around the C function g_type_plugin_complete_type_info.

func (*TypePlugin) ToC

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

func (*TypePlugin) Unuse

func (recv *TypePlugin) Unuse()

Unuse is a wrapper around the C function g_type_plugin_unuse.

func (*TypePlugin) Use

func (recv *TypePlugin) Use()

Use is a wrapper around the C function g_type_plugin_use.

type TypePluginClass

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

TypePluginClass is a wrapper around the C record GTypePluginClass.

func TypePluginClassNewFromC

func TypePluginClassNewFromC(u unsafe.Pointer) *TypePluginClass

func (*TypePluginClass) ToC

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

type TypeQuery

type TypeQuery struct {
	Type         Type
	TypeName     string
	ClassSize    uint32
	InstanceSize uint32
	// contains filtered or unexported fields
}

TypeQuery is a wrapper around the C record GTypeQuery.

func TypeQueryNewFromC

func TypeQueryNewFromC(u unsafe.Pointer) *TypeQuery

func TypeQuery_

func TypeQuery_(type_ Type) *TypeQuery

TypeQuery_ is a wrapper around the C function g_type_query.

func (*TypeQuery) ToC

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

type TypeValueTable

type TypeValueTable struct {

	// no type for value_init
	// no type for value_free
	// no type for value_copy
	// no type for value_peek_pointer
	CollectFormat string
	// no type for collect_value
	LcopyFormat string
	// contains filtered or unexported fields
}

TypeValueTable is a wrapper around the C record GTypeValueTable.

func TypeValueTableNewFromC

func TypeValueTableNewFromC(u unsafe.Pointer) *TypeValueTable

func TypeValueTablePeek

func TypeValueTablePeek(type_ Type) *TypeValueTable

TypeValueTablePeek is a wrapper around the C function g_type_value_table_peek.

func (*TypeValueTable) ToC

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

type Value

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

Value is a wrapper around the C record GValue.

func ValueNew

func ValueNew(typ Type) *Value

ValueNew create a new Value initialised for the supplied Type.

func ValueNewFromC

func ValueNewFromC(u unsafe.Pointer) *Value

func (*Value) Copy

func (recv *Value) Copy(destValue *Value)

Copy is a wrapper around the C function g_value_copy.

func (*Value) DupBoxed

func (recv *Value) DupBoxed() uintptr

DupBoxed is a wrapper around the C function g_value_dup_boxed.

func (*Value) DupObject

func (recv *Value) DupObject() uintptr

DupObject is a wrapper around the C function g_value_dup_object.

func (*Value) DupString

func (recv *Value) DupString() string

DupString is a wrapper around the C function g_value_dup_string.

func (*Value) FitsPointer

func (recv *Value) FitsPointer() bool

FitsPointer is a wrapper around the C function g_value_fits_pointer.

func (*Value) GetBoolean

func (recv *Value) GetBoolean() bool

GetBoolean is a wrapper around the C function g_value_get_boolean.

func (*Value) GetBoxed

func (recv *Value) GetBoxed() uintptr

GetBoxed is a wrapper around the C function g_value_get_boxed.

func (*Value) GetChar

func (recv *Value) GetChar() rune

GetChar is a wrapper around the C function g_value_get_char.

func (*Value) GetDouble

func (recv *Value) GetDouble() float64

GetDouble is a wrapper around the C function g_value_get_double.

func (*Value) GetEnum

func (recv *Value) GetEnum() int32

GetEnum is a wrapper around the C function g_value_get_enum.

func (*Value) GetFlags

func (recv *Value) GetFlags() uint32

GetFlags is a wrapper around the C function g_value_get_flags.

func (*Value) GetFloat

func (recv *Value) GetFloat() float32

GetFloat is a wrapper around the C function g_value_get_float.

func (*Value) GetInt

func (recv *Value) GetInt() int32

GetInt is a wrapper around the C function g_value_get_int.

func (*Value) GetInt64

func (recv *Value) GetInt64() int64

GetInt64 is a wrapper around the C function g_value_get_int64.

func (*Value) GetLong

func (recv *Value) GetLong() int64

GetLong is a wrapper around the C function g_value_get_long.

func (*Value) GetObject

func (recv *Value) GetObject() uintptr

GetObject is a wrapper around the C function g_value_get_object.

func (*Value) GetPointer

func (recv *Value) GetPointer() uintptr

GetPointer is a wrapper around the C function g_value_get_pointer.

func (*Value) GetString

func (recv *Value) GetString() string

GetString is a wrapper around the C function g_value_get_string.

func (*Value) GetUchar

func (recv *Value) GetUchar() uint8

GetUchar is a wrapper around the C function g_value_get_uchar.

func (*Value) GetUint

func (recv *Value) GetUint() uint32

GetUint is a wrapper around the C function g_value_get_uint.

func (*Value) GetUint64

func (recv *Value) GetUint64() uint64

GetUint64 is a wrapper around the C function g_value_get_uint64.

func (*Value) GetUlong

func (recv *Value) GetUlong() uint64

GetUlong is a wrapper around the C function g_value_get_ulong.

func (*Value) Init

func (recv *Value) Init(gType Type) *Value

Init is a wrapper around the C function g_value_init.

func (*Value) PeekPointer

func (recv *Value) PeekPointer() uintptr

PeekPointer is a wrapper around the C function g_value_peek_pointer.

func (*Value) Reset

func (recv *Value) Reset() *Value

Reset is a wrapper around the C function g_value_reset.

func (*Value) SetBoolean

func (recv *Value) SetBoolean(vBoolean bool)

SetBoolean is a wrapper around the C function g_value_set_boolean.

func (*Value) SetBoxed

func (recv *Value) SetBoxed(vBoxed uintptr)

SetBoxed is a wrapper around the C function g_value_set_boxed.

func (*Value) SetBoxedTakeOwnership

func (recv *Value) SetBoxedTakeOwnership(vBoxed uintptr)

SetBoxedTakeOwnership is a wrapper around the C function g_value_set_boxed_take_ownership.

func (*Value) SetChar

func (recv *Value) SetChar(vChar rune)

SetChar is a wrapper around the C function g_value_set_char.

func (*Value) SetDouble

func (recv *Value) SetDouble(vDouble float64)

SetDouble is a wrapper around the C function g_value_set_double.

func (*Value) SetEnum

func (recv *Value) SetEnum(vEnum int32)

SetEnum is a wrapper around the C function g_value_set_enum.

func (*Value) SetFlags

func (recv *Value) SetFlags(vFlags uint32)

SetFlags is a wrapper around the C function g_value_set_flags.

func (*Value) SetFloat

func (recv *Value) SetFloat(vFloat float32)

SetFloat is a wrapper around the C function g_value_set_float.

func (*Value) SetInstance

func (recv *Value) SetInstance(instance uintptr)

SetInstance is a wrapper around the C function g_value_set_instance.

func (*Value) SetInt

func (recv *Value) SetInt(vInt int32)

SetInt is a wrapper around the C function g_value_set_int.

func (*Value) SetInt64

func (recv *Value) SetInt64(vInt64 int64)

SetInt64 is a wrapper around the C function g_value_set_int64.

func (*Value) SetLong

func (recv *Value) SetLong(vLong int64)

SetLong is a wrapper around the C function g_value_set_long.

func (*Value) SetObject

func (recv *Value) SetObject(vObject uintptr)

SetObject is a wrapper around the C function g_value_set_object.

func (*Value) SetObjectTakeOwnership

func (recv *Value) SetObjectTakeOwnership(vObject uintptr)

SetObjectTakeOwnership is a wrapper around the C function g_value_set_object_take_ownership.

func (*Value) SetPointer

func (recv *Value) SetPointer(vPointer uintptr)

SetPointer is a wrapper around the C function g_value_set_pointer.

func (*Value) SetStaticBoxed

func (recv *Value) SetStaticBoxed(vBoxed uintptr)

SetStaticBoxed is a wrapper around the C function g_value_set_static_boxed.

func (*Value) SetStaticString

func (recv *Value) SetStaticString(vString string)

SetStaticString is a wrapper around the C function g_value_set_static_string.

func (*Value) SetString

func (recv *Value) SetString(vString string)

SetString is a wrapper around the C function g_value_set_string.

func (*Value) SetStringTakeOwnership

func (recv *Value) SetStringTakeOwnership(vString string)

SetStringTakeOwnership is a wrapper around the C function g_value_set_string_take_ownership.

func (*Value) SetUchar

func (recv *Value) SetUchar(vUchar uint8)

SetUchar is a wrapper around the C function g_value_set_uchar.

func (*Value) SetUint

func (recv *Value) SetUint(vUint uint32)

SetUint is a wrapper around the C function g_value_set_uint.

func (*Value) SetUint64

func (recv *Value) SetUint64(vUint64 uint64)

SetUint64 is a wrapper around the C function g_value_set_uint64.

func (*Value) SetUlong

func (recv *Value) SetUlong(vUlong uint64)

SetUlong is a wrapper around the C function g_value_set_ulong.

func (*Value) ToC

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

func (*Value) Transform

func (recv *Value) Transform(destValue *Value) bool

Transform is a wrapper around the C function g_value_transform.

func (*Value) Unset

func (recv *Value) Unset()

Unset is a wrapper around the C function g_value_unset.

type ValueArray

type ValueArray struct {
	NValues uint32
	// contains filtered or unexported fields
}

ValueArray is a wrapper around the C record GValueArray.

func ValueArrayNew

func ValueArrayNew(nPrealloced uint32) *ValueArray

ValueArrayNew is a wrapper around the C function g_value_array_new.

func ValueArrayNewFromC

func ValueArrayNewFromC(u unsafe.Pointer) *ValueArray

func (*ValueArray) Append

func (recv *ValueArray) Append(value *Value) *ValueArray

Append is a wrapper around the C function g_value_array_append.

func (*ValueArray) Copy

func (recv *ValueArray) Copy() *ValueArray

Copy is a wrapper around the C function g_value_array_copy.

func (*ValueArray) Free

func (recv *ValueArray) Free()

Free is a wrapper around the C function g_value_array_free.

func (*ValueArray) GetNth

func (recv *ValueArray) GetNth(index uint32) *Value

GetNth is a wrapper around the C function g_value_array_get_nth.

func (*ValueArray) Insert

func (recv *ValueArray) Insert(index uint32, value *Value) *ValueArray

Insert is a wrapper around the C function g_value_array_insert.

func (*ValueArray) Prepend

func (recv *ValueArray) Prepend(value *Value) *ValueArray

Prepend is a wrapper around the C function g_value_array_prepend.

func (*ValueArray) Remove

func (recv *ValueArray) Remove(index uint32) *ValueArray

Remove is a wrapper around the C function g_value_array_remove.

func (*ValueArray) ToC

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

type WeakRef

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

WeakRef is a wrapper around the C record GWeakRef.

func WeakRefNewFromC

func WeakRefNewFromC(u unsafe.Pointer) *WeakRef

func (*WeakRef) ToC

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

Jump to

Keyboard shortcuts

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