gobject

package
v0.0.0-...-f05e200 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2013 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package gobject provides API definitions for accessing libgobject-2.0-0.dll.

Index

Constants

This section is empty.

Variables

View Source
var (
	GTypeInit func()

	ArrayGetType            func() Type
	ByteArrayGetType        func() Type
	DateGetType             func() Type
	DateTimeGetType         func() Type
	ErrorGetType            func() Type
	GstringGetType          func() Type
	GtypeGetType            func() Type
	HashTableGetType        func() Type
	InitiallyUnownedGetType func() Type
	IoChannelGetType        func() Type
	IoConditionGetType      func() Type
	PtrArrayGetType         func() Type
	RegexGetType            func() Type
	StrvGetType             func() Type
	VariantGetGtype         func() Type
	VariantTypeGetGtype     func() Type

	ObjectInterfaceInstallProperty func(
		gIface T.Gpointer, pspec *ParamSpec)

	ObjectInterfaceFindProperty func(
		gIface T.Gpointer, propertyName string) *ParamSpec

	ObjectInterfaceListProperties func(
		gIface T.Gpointer, nPropertiesP *uint) **ParamSpec

	CclosureNewObject func(
		callbackFunc Callback, object *Object) *Closure

	CclosureNewObjectSwap func(
		callbackFunc Callback, object *Object) *Closure

	SignalConnectObject func(instance T.Gpointer,
		detailedSignal string, cHandler Callback,
		gobject T.Gpointer, connectFlags ConnectFlags) T.Gulong

	ObjectCompatControl func(what T.Gsize, data T.Gpointer) T.Gsize

	ClearObject func(objectPtr **Object)

	BoxedCopy func(boxedType Type, srcBoxed T.Gconstpointer) T.Gpointer

	BoxedFree func(boxedType Type, boxed T.Gpointer)

	BoxedTypeRegisterStatic func(name string,
		boxedCopy T.GBoxedCopyFunc, boxedFree T.GBoxedFreeFunc) Type

	CclosureNew func(callbackFunc Callback,
		userData T.Gpointer, destroyData ClosureNotify) *Closure

	CclosureNewSwap func(callbackFunc Callback,
		userData T.Gpointer, destroyData ClosureNotify) *Closure

	CclosureMarshal_VOID__VOID func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__BOOLEAN func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__CHAR func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__UCHAR func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__INT func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__UINT func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__LONG func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__ULONG func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__ENUM func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__FLAGS func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__FLOAT func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__DOUBLE func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__STRING func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__PARAM func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__BOXED func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__POINTER func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__OBJECT func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__VARIANT func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_VOID__UINT_POINTER func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_BOOLEAN__FLAGS func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_STRING__OBJECT_POINTER func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	CclosureMarshal_BOOLEAN__BOXED_BOXED func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)

	PointerTypeRegisterStatic func(name string) Type

	StrdupValueContents func(value *Value) string

	UnicharValidate func(ch T.Unichar) bool

	SlistRemoveAll func(list *SList, data T.Gconstpointer) *SList
)
View Source
var (
	BindingGetType func() Type

	BindingGetFlags          func(b *Binding) BindingFlags
	BindingGetSource         func(b *Binding) *Object
	BindingGetTarget         func(b *Binding) *Object
	BindingGetSourceProperty func(b *Binding) string
	BindingGetTargetProperty func(b *Binding) string
)
View Source
var (
	ClosureGetType   func() Type
	ClosureNewObject func(sizeofClosure uint, object *Object) *Closure
	ClosureNewSimple func(sizeofClosure uint, data T.Gpointer) *Closure

	ClosureAddFinalizeNotifier      func(c Closure, notifyData T.Gpointer, notifyFunc ClosureNotify)
	ClosureAddInvalidateNotifier    func(c Closure, notifyData T.Gpointer, notifyFunc ClosureNotify)
	ClosureAddMarshalGuards         func(c Closure, preMarshalData T.Gpointer, preMarshalNotify ClosureNotify, postMarshalData T.Gpointer, postMarshalNotify ClosureNotify)
	ClosureInvalidate               func(c Closure)
	ClosureInvoke                   func(c Closure, returnValue *Value, nParamValues uint, paramValues *Value, invocationHint T.Gpointer)
	ClosureRef                      func(c Closure) *Closure
	ClosureRemoveFinalizeNotifier   func(c Closure, notifyData T.Gpointer, notifyFunc ClosureNotify)
	ClosureRemoveInvalidateNotifier func(c Closure, notifyData T.Gpointer, notifyFunc ClosureNotify)
	ClosureSetMarshal               func(c Closure, marshal ClosureMarshal)
	ClosureSetMetaMarshal           func(c Closure, marshalData T.Gpointer, metaMarshal ClosureMarshal)
	ClosureSink                     func(c Closure)
	ClosureUnref                    func(c Closure)
)
View Source
var (
	EnumCompleteTypeInfo func(gEnumType Type, info *TypeInfo, constValues *EnumValue)
	EnumRegisterStatic   func(name string, constStaticValues *EnumValue) Type

	EnumGetValue       func(e *EnumClass, value int) *EnumValue
	EnumGetValueByName func(e *EnumClass, name string) *EnumValue
	EnumGetValueByNick func(e *EnumClass, nick string) *EnumValue
)
View Source
var (
	FlagsCompleteTypeInfo func(gFlagsType Type, info *TypeInfo, constValues *FlagsValue)
	FlagsRegisterStatic   func(name string, constStaticValues *FlagsValue) Type
)
View Source
var (
	FlagsGetFirstValue  func(f *FlagsClass, value uint) *FlagsValue
	FlagsGetValueByName func(f *FlagsClass, name string) *FlagsValue
	FlagsGetValueByNick func(f *FlagsClass, nick string) *FlagsValue
)
View Source
var (
	ObjectGetType   func() Type
	ObjectNew       func(objectType Type, firstPropertyName string, v ...VArg) T.Gpointer
	ObjectNewv      func(objectType Type, nParameters uint, parameters *Parameter) T.Gpointer
	ObjectNewValist func(objectType Type, firstPropertyName string, varArgs VAList) *Object

	ObjectBindProperty             func(source T.Gpointer, sourceProperty string, target T.Gpointer, targetProperty string, flags BindingFlags) *Binding
	ObjectBindPropertyFull         func(source T.Gpointer, sourceProperty string, target T.Gpointer, targetProperty string, flags BindingFlags, transformTo BindingTransformFunc, transformFrom BindingTransformFunc, userData T.Gpointer, notify DestroyNotify) *Binding
	ObjectBindPropertyWithClosures func(source T.Gpointer, sourceProperty string, target T.Gpointer, targetProperty string, flags BindingFlags, transformTo *Closure, transformFrom *Closure) *Binding
	ObjectConnect                  func(object T.Gpointer, signalSpec string, v ...VArg) T.Gpointer
	ObjectDisconnect               func(object T.Gpointer, signalSpec string, v ...VArg)
	ObjectGet                      func(object T.Gpointer, firstPropertyName string, v ...VArg)
	ObjectIsFloating               func(object T.Gpointer) bool
	ObjectRef                      func(object T.Gpointer) T.Gpointer
	ObjectRefSink                  func(object T.Gpointer) T.Gpointer
	ObjectSet                      func(object T.Gpointer, firstPropertyName string, v ...VArg)
	ObjectUnref                    func(object T.Gpointer)

	ObjectAddToggleRef      func(o *Object, notify T.GToggleNotify, data T.Gpointer)
	ObjectAddWeakPointer    func(o *Object, weakPointerLocation *T.Gpointer)
	ObjectForceFloating     func(o *Object)
	ObjectFreezeNotify      func(o *Object)
	ObjectGetData           func(o *Object, key string) T.Gpointer
	ObjectGetProperty       func(o *Object, propertyName string, value *Value)
	ObjectGetQdata          func(o *Object, quark T.Quark) T.Gpointer
	ObjectGetValist         func(o *Object, firstPropertyName string, varArgs VAList)
	ObjectNotify            func(o *Object, propertyName string)
	ObjectNotifyByPspec     func(o *Object, pspec *ParamSpec)
	ObjectRemoveToggleRef   func(o *Object, notify T.GToggleNotify, data T.Gpointer)
	ObjectRemoveWeakPointer func(o *Object, weakPointerLocation *T.Gpointer)
	ObjectRunDispose        func(o *Object)
	ObjectSetData           func(o *Object, key string, data T.Gpointer)
	ObjectSetDataFull       func(o *Object, key string, data T.Gpointer, destroy DestroyNotify)
	ObjectSetProperty       func(o *Object, propertyName string, value *Value)
	ObjectSetQdata          func(o *Object, quark T.Quark, data T.Gpointer)
	ObjectSetQdataFull      func(o *Object, quark T.Quark, data T.Gpointer, destroy DestroyNotify)
	ObjectSetValist         func(o *Object, firstPropertyName string, varArgs VAList)
	ObjectStealData         func(o *Object, key string) T.Gpointer
	ObjectStealQdata        func(o *Object, quark T.Quark) T.Gpointer
	ObjectThawNotify        func(o *Object)
	ObjectWatchClosure      func(o *Object, closure *Closure)
	ObjectWeakRef           func(o *Object, notify T.GWeakNotify, data T.Gpointer)
	ObjectWeakUnref         func(o *Object, notify T.GWeakNotify, data T.Gpointer)
)
View Source
var (
	ObjectClassFindProperty      func(o *ObjectClass, propertyName string) *ParamSpec
	ObjectClassInstallProperties func(o *ObjectClass, nPspecs uint, pspecs **ParamSpec)
	ObjectClassInstallProperty   func(o *ObjectClass, propertyId uint, pspec *ParamSpec)
	ObjectClassListProperties    func(o *ObjectClass, nProperties *uint) **ParamSpec
	ObjectClassOverrideProperty  func(o *ObjectClass, propertyId uint, name string)
)
View Source
var (
	ParamSpecBoolean    func(name, nick, blurb string, defaultValue bool, flags ParamFlags) *ParamSpec
	ParamSpecBoxed      func(name, nick, blurb string, boxedType Type, flags ParamFlags) *ParamSpec
	ParamSpecChar       func(name, nick, blurb string, minimum, maximum, defaultValue int8, flags ParamFlags) *ParamSpec
	ParamSpecDouble     func(name, nick, blurb string, minimum, maximum, defaultValue float64, flags ParamFlags) *ParamSpec
	ParamSpecEnum       func(name, nick, blurb string, enumType Type, defaultValue int, flags ParamFlags) *ParamSpec
	ParamSpecFlags      func(name, nick, blurb string, flagsType Type, defaultValue uint, flags ParamFlags) *ParamSpec
	ParamSpecFloat      func(name, nick, blurb string, minimum, maximum, defaultValue float32, flags ParamFlags) *ParamSpec
	ParamSpecGtype      func(name, nick, blurb string, isAType Type, flags ParamFlags) *ParamSpec
	ParamSpecInt        func(name, nick, blurb string, minimum, maximum, defaultValue int, flags ParamFlags) *ParamSpec
	ParamSpecInt64      func(name, nick, blurb string, minimum, maximum, defaultValue int64, flags ParamFlags) *ParamSpec
	ParamSpecInternal   func(paramType Type, name, nick, blurb string, flags ParamFlags) T.Gpointer
	ParamSpecLong       func(name, nick, blurb string, minimum, maximum, defaultValue T.Glong, flags ParamFlags) *ParamSpec
	ParamSpecObject     func(name, nick, blurb string, objectType Type, flags ParamFlags) *ParamSpec
	ParamSpecOverride   func(name string, overridden *ParamSpec) *ParamSpec
	ParamSpecParam      func(name, nick, blurb string, paramType Type, flags ParamFlags) *ParamSpec
	ParamSpecPointer    func(name, nick, blurb string, flags ParamFlags) *ParamSpec
	ParamSpecString     func(name, nick, blurb, defaultValue string, flags ParamFlags) *ParamSpec
	ParamSpecUchar      func(name, nick, blurb string, minimum, maximum, defaultValue uint8, flags ParamFlags) *ParamSpec
	ParamSpecUint       func(name, nick, blurb string, minimum, maximum, defaultValue uint, flags ParamFlags) *ParamSpec
	ParamSpecUint64     func(name, nick, blurb string, minimum, maximum, defaultValue uint64, flags ParamFlags) *ParamSpec
	ParamSpecUlong      func(name, nick, blurb string, minimum, maximum, defaultValue T.Gulong, flags ParamFlags) *ParamSpec
	ParamSpecUnichar    func(name, nick, blurb string, defaultValue T.Unichar, flags ParamFlags) *ParamSpec
	ParamSpecValueArray func(name, nick, blurb string, elementSpec *ParamSpec, flags ParamFlags) *ParamSpec
	ParamSpecVariant    func(name, nick, blurb string, t *T.VariantType, defaultValue *T.Variant, flags ParamFlags) *ParamSpec

	ParamSpecGetBlurb          func(p *ParamSpec) string
	ParamSpecGetName           func(p *ParamSpec) string
	ParamSpecGetNick           func(p *ParamSpec) string
	ParamSpecGetQdata          func(p *ParamSpec, quark T.Quark) T.Gpointer
	ParamSpecGetRedirectTarget func(p *ParamSpec) *ParamSpec
	ParamSpecRef               func(p *ParamSpec) *ParamSpec
	ParamSpecRefSink           func(p *ParamSpec) *ParamSpec
	ParamSpecSetQdata          func(p *ParamSpec, quark T.Quark, data T.Gpointer)
	ParamSpecSetQdataFull      func(p *ParamSpec, quark T.Quark, data T.Gpointer, destroy DestroyNotify)
	ParamSpecSink              func(p *ParamSpec)
	ParamSpecStealQdata        func(p *ParamSpec, quark T.Quark) T.Gpointer
	ParamSpecUnref             func(p *ParamSpec)
	ParamValueSetDefault       func(p *ParamSpec, value *Value)
	ParamValueDefaults         func(p *ParamSpec, value *Value) bool
	ParamValueValidate         func(p *ParamSpec, value *Value) bool
	ParamValueConvert          func(p *ParamSpec, srcValue, destValue *Value, strictValidation bool) bool
	ParamValuesCmp             func(p *ParamSpec, value1, value2 *Value) int
)
View Source
var (
	ParamSpecPoolNew func(typePrefixing bool) *ParamSpecPool

	ParamSpecPoolInsert    func(p *ParamSpecPool, pspec *ParamSpec, ownerType Type)
	ParamSpecPoolList      func(p *ParamSpecPool, ownerType Type, nPspecsP *uint) **ParamSpec
	ParamSpecPoolListOwned func(p *ParamSpecPool, ownerType Type) *T.List
	ParamSpecPoolLookup    func(p *ParamSpecPool, paramName string, ownerType Type, walkAncestors bool) *ParamSpec
	ParamSpecPoolRemove    func(p *ParamSpecPool, pspec *ParamSpec)
)
View Source
var (
	SignalTypeCclosureNew func(
		itype Type, structOffset uint) *Closure

	SignalNewv func(
		signalName string,
		itype Type,
		signalFlags SignalFlags,
		classClosure *Closure,
		accumulator SignalAccumulator,
		accuData T.Gpointer,
		cMarshaller SignalCMarshaller,
		returnType Type,
		nParams uint,
		paramTypes *Type) uint

	SignalNewValist func(
		signalName string,
		itype Type,
		signalFlags SignalFlags,
		classClosure *Closure,
		accumulator SignalAccumulator,
		accuData T.Gpointer,
		cMarshaller SignalCMarshaller,
		returnType Type,
		nParams uint,
		args VAList) uint

	SignalNew func(signalName string, itype Type,
		signalFlags SignalFlags, classOffset uint,
		accumulator SignalAccumulator, accuData T.Gpointer,
		cMarshaller SignalCMarshaller, returnType Type,
		nParams uint, v ...VArg) uint

	SignalNewClassHandler func(signalName string,
		itype Type, signalFlags SignalFlags,
		classHandler Callback, accumulator SignalAccumulator,
		accuData T.Gpointer, cMarshaller SignalCMarshaller,
		returnType Type, nParams uint, v ...VArg) uint

	SignalEmitv func(
		instanceAndParams *Value,
		signalId uint,
		detail T.Quark,
		returnValue *Value)

	SignalEmitValist func(
		instance T.Gpointer,
		signalId uint,
		detail T.Quark,
		varArgs VAList)

	SignalEmit func(instance T.Gpointer, signalId uint,
		detail T.Quark, v ...VArg)

	SignalEmitByName func(instance T.Gpointer,
		detailedSignal string, v ...VArg)

	SignalLookup func(name string, itype Type) uint

	SignalName func(signalId uint) string

	SignalQuery func(signalId uint, query SignalQueryFunc)

	SignalListIds func(itype Type, nIds *uint) *uint

	SignalParseName func(
		detailedSignal string,
		itype Type,
		signalIdP *uint,
		detailP *T.Quark,
		forceDetailQuark bool) bool

	SignalGetInvocationHint func(
		instance T.Gpointer) *SignalInvocationHint

	SignalStopEmission func(
		instance T.Gpointer, signalId uint, detail T.Quark)

	SignalStopEmissionByName func(
		instance T.Gpointer, detailedSignal string)

	SignalAddEmissionHook func(
		signalId uint,
		detail T.Quark,
		hookFunc SignalEmissionHook,
		hookData T.Gpointer,
		dataDestroy DestroyNotify) T.Gulong

	SignalRemoveEmissionHook func(signalId uint, hookId T.Gulong)

	SignalHasHandlerPending func(
		instance T.Gpointer,
		signalId uint,
		detail T.Quark,
		mayBeBlocked bool) bool

	SignalConnectClosureById func(
		instance T.Gpointer,
		signalId uint,
		detail T.Quark,
		closure *Closure,
		after bool) T.Gulong

	SignalConnectClosure func(
		instance T.Gpointer,
		detailedSignal string,
		closure *Closure,
		after bool) T.Gulong

	SignalConnectData func(
		instance T.Gpointer,
		detailedSignal string,
		cHandler Callback,
		data T.Gpointer,
		destroyData ClosureNotify,
		connectFlags ConnectFlags) T.Gulong

	SignalHandlerBlock func(instance T.Gpointer, handlerId T.Gulong)

	SignalHandlerUnblock func(instance T.Gpointer, handlerId T.Gulong)

	SignalHandlerDisconnect func(
		instance T.Gpointer, handlerId T.Gulong)

	SignalHandlerIsConnected func(
		instance T.Gpointer, handlerId T.Gulong) bool

	SignalHandlerFind func(
		instance T.Gpointer,
		mask SignalMatchType,
		signalId uint,
		detail T.Quark,
		closure *Closure,
		fnc T.Gpointer,
		data T.Gpointer) T.Gulong

	SignalHandlersBlockMatched func(
		instance T.Gpointer,
		mask SignalMatchType,
		signalId uint,
		detail T.Quark,
		closure *Closure,
		fnc T.Gpointer,
		data T.Gpointer) uint

	SignalHandlersUnblockMatched func(
		instance T.Gpointer,
		mask SignalMatchType,
		signalId uint,
		detail T.Quark,
		closure *Closure,
		fnc T.Gpointer,
		data T.Gpointer) uint

	SignalHandlersDisconnectMatched func(
		instance T.Gpointer,
		mask SignalMatchType,
		signalId uint,
		detail T.Quark,
		closure *Closure,
		fnc T.Gpointer,
		data T.Gpointer) uint

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

	SignalOverrideClassHandler func(
		signalName string, instanceType Type, classHandler Callback)

	SignalChainFromOverridden func(
		instanceAndParams *Value, returnValue *Value)

	SignalChainFromOverriddenHandler func(
		instance T.Gpointer, v ...VArg)

	SignalAccumulatorTrueHandled func(ihint *SignalInvocationHint,
		returnAccu, handlerReturn *Value, dummy T.Gpointer) bool

	SignalAccumulatorFirstWins func(ihint *SignalInvocationHint,
		returnAccu, handlerReturn *Value, dummy T.Gpointer) bool

	SignalHandlersDestroy func(instance T.Gpointer)
)
View Source
var (
	SourceSetClosure       func(s *Source, closure *Closure)
	SourceSetDummyCallback func(s *Source)
)
View Source
var (
	TypeFromName func(name string) Type

	TypeAddClassCacheFunc     func(cacheData T.Gpointer, cacheFunc T.GTypeClassCacheFunc)
	TypeAddInterfaceCheck     func(checkData T.Gpointer, checkFunc T.GTypeInterfaceCheckFunc)
	TypeCheckValue            func(value *Value) bool
	TypeCheckValueHolds       func(value *Value, t Type) bool
	TypeClassAddPrivate       func(gClass T.Gpointer, privateSize T.Gsize)
	TypeClassPeekParent       func(gClass T.Gpointer) T.Gpointer
	TypeClassUnref            func(gClass T.Gpointer)
	TypeClassUnrefUncached    func(gClass T.Gpointer)
	TypeDefaultInterfaceUnref func(gIface T.Gpointer)
	TypeFundamentalNext       func() Type
	TypeInitWithDebugFlags    func(debugFlags TypeDebugFlags)
	TypeInterfacePeek         func(instanceClass T.Gpointer, ifaceType Type) T.Gpointer
	TypeInterfacePeekParent   func(gIface T.Gpointer) T.Gpointer
	TypeRemoveClassCacheFunc  func(cacheData T.Gpointer, cacheFunc T.GTypeClassCacheFunc)
	TypeRemoveInterfaceCheck  func(checkData T.Gpointer, checkFunc T.GTypeInterfaceCheckFunc)

	TypeAddClassPrivate          func(classType Type, privateSize T.Gsize)
	TypeAddInterfaceDynamic      func(instanceType Type, interfaceType Type, plugin *TypePlugin)
	TypeAddInterfaceStatic       func(instanceType Type, interfaceType Type, info *T.GInterfaceInfo)
	TypeCheckIsValueType         func(t Type) bool
	TypeChildren                 func(t Type, nChildren *uint) *Type
	TypeClassPeek                func(t Type) T.Gpointer
	TypeClassPeekStatic          func(t Type) T.Gpointer
	TypeClassRef                 func(t Type) T.Gpointer
	TypeDefaultInterfacePeek     func(gType Type) T.Gpointer
	TypeDefaultInterfaceRef      func(gType Type) T.Gpointer
	TypeDepth                    func(t Type) uint
	TypeFundamental              func(typeId Type) Type
	TypeGetPlugin                func(t Type) *TypePlugin
	TypeGetQdata                 func(t Type, quark T.Quark) T.Gpointer
	TypeInterfaceAddPrerequisite func(interfaceType Type, prerequisiteType Type)
	TypeInterfaceGetPlugin       func(instanceType Type, interfaceType Type) *TypePlugin
	TypeInterfacePrerequisites   func(interfaceType Type, nPrerequisites *uint) *Type
	TypeInterfaces               func(t Type, nInterfaces *uint) *Type
	TypeIsA                      func(t, isAType Type) bool
	TypeName                     func(t Type) string
	TypeNextBase                 func(leafType, rootType Type) Type
	TypeParent                   func(t Type) Type
	TypeQname                    func(t Type) T.Quark
	TypeQuery                    func(t Type, query *T.GTypeQuery)
	TypeRegisterDynamic          func(parentType Type, typeName string, plugin *TypePlugin, flags TypeFlags) Type
	TypeRegisterFundamental      func(typeId Type, typeName string, info *TypeInfo, finfo *T.GTypeFundamentalInfo, flags TypeFlags) Type
	TypeRegisterStatic           func(parentType Type, typeName string, info *TypeInfo, flags TypeFlags) Type
	TypeRegisterStaticSimple     func(parentType Type, typeName string, classSize uint, classInit T.GClassInitFunc, instanceSize uint, instanceInit T.GInstanceInitFunc, flags TypeFlags) Type
	TypeSetQdata                 func(t Type, quark T.Quark, data T.Gpointer)
	TypeTestFlags                func(t Type, flags uint) bool
	TypeValueTablePeek           func(t Type) *TypeValueTable
)
View Source
var (
	TypeCheckClassCast  func(class *TypeClass, isAType Type) *TypeClass
	TypeCheckClassIsA   func(class *TypeClass, isAType Type) bool
	TypeClassGetPrivate func(class *TypeClass, privateType Type) T.Gpointer
	TypeNameFromClass   func(class *TypeClass) string
)
View Source
var (
	TypeCreateInstance func(t Type) *TypeInstance

	TypeCheckInstance      func(i *TypeInstance) bool
	TypeCheckInstanceCast  func(i *TypeInstance, ifaceType Type) *TypeInstance
	TypeCheckInstanceIsA   func(i *TypeInstance, ifaceType Type) bool
	TypeFreeInstance       func(i *TypeInstance)
	TypeInstanceGetPrivate func(i *TypeInstance, privateType Type) T.Gpointer
	TypeNameFromInstance   func(i *TypeInstance) string
)
View Source
var (
	TypeModuleGetType func() Type

	TypeModuleAddInterface  func(m *TypeModule, instanceType, interfaceType Type, interfaceInfo *T.GInterfaceInfo)
	TypeModuleRegisterEnum  func(m *TypeModule, name string, constStaticValues *EnumValue) Type
	TypeModuleRegisterFlags func(m *TypeModule, name string, constStaticValues *FlagsValue) Type
	TypeModuleRegisterType  func(m *TypeModule, parentType Type, typeName string, typeInfo *TypeInfo, flags TypeFlags) Type
	TypeModuleSetName       func(m *TypeModule, name string)
	TypeModuleUnuse         func(m *TypeModule)
	TypeModuleUse           func(m *TypeModule) bool
)
View Source
var (
	TypePluginGetType func() Type

	TypePluginCompleteInterfaceInfo func(p *TypePlugin, instanceType, interfaceType Type, info *T.GInterfaceInfo)
	TypePluginCompleteTypeInfo      func(p *TypePlugin, gType Type, info *TypeInfo, valueTable *TypeValueTable)
	TypePluginUnuse                 func(p *TypePlugin)
	TypePluginUse                   func(p *TypePlugin)
)
View Source
var (
	ValueGetType func() Type

	ValueRegisterTransformFunc func(srcType Type, destType Type, transformFunc ValueTransformFunc)
	ValueTypeCompatible        func(srcType Type, destType Type) bool
	ValueTypeTransformable     func(srcType Type, destType Type) bool

	ValueCopy                   func(v *Value, destValue *Value)
	ValueDupBoxed               func(v *Value) T.Gpointer
	ValueDupObject              func(v *Value) T.Gpointer
	ValueDupParam               func(v *Value) *ParamSpec
	ValueDupString              func(v *Value) string
	ValueDupVariant             func(v *Value) *T.Variant
	ValueFitsPointer            func(v *Value) bool
	ValueGetBoolean             func(v *Value) bool
	ValueGetBoxed               func(v *Value) T.Gpointer
	ValueGetChar                func(v *Value) T.Gchar
	ValueGetDouble              func(v *Value) float64
	ValueGetEnum                func(v *Value) int
	ValueGetFlags               func(v *Value) uint
	ValueGetFloat               func(v *Value) float32
	ValueGetGtype               func(v *Value) Type
	ValueGetInt                 func(v *Value) int
	ValueGetInt64               func(v *Value) int64
	ValueGetLong                func(v *Value) T.Glong
	ValueGetObject              func(v *Value) T.Gpointer
	ValueGetParam               func(v *Value) *ParamSpec
	ValueGetPointer             func(v *Value) T.Gpointer
	ValueGetString              func(v *Value) string
	ValueGetUchar               func(v *Value) T.Guchar
	ValueGetUint                func(v *Value) uint
	ValueGetUint64              func(v *Value) uint64
	ValueGetUlong               func(v *Value) T.Gulong
	ValueGetVariant             func(v *Value) *T.Variant
	ValueInit                   func(v *Value, gType Type) *Value
	ValuePeekPointer            func(v *Value) T.Gpointer
	ValueReset                  func(v *Value) *Value
	ValueSetBoolean             func(v *Value, vBoolean bool)
	ValueSetBoxed               func(v *Value, vBoxed T.Gconstpointer)
	ValueSetBoxedTakeOwnership  func(v *Value, vBoxed T.Gconstpointer)
	ValueSetChar                func(v *Value, vChar T.Gchar)
	ValueSetDouble              func(v *Value, vDouble float64)
	ValueSetEnum                func(v *Value, vEnum int)
	ValueSetFlags               func(v *Value, vFlags uint)
	ValueSetFloat               func(v *Value, vFloat float32)
	ValueSetGtype               func(v *Value, vGtype Type)
	ValueSetInstance            func(v *Value, instance T.Gpointer)
	ValueSetInt                 func(v *Value, vInt int)
	ValueSetInt64               func(v *Value, vInt64 int64)
	ValueSetLong                func(v *Value, vLong T.Glong)
	ValueSetObject              func(v *Value, vObject T.Gpointer)
	ValueSetObjectTakeOwnership func(v *Value, vObject T.Gpointer)
	ValueSetParam               func(v *Value, param *ParamSpec)
	ValueSetParamTakeOwnership  func(v *Value, param *ParamSpec)
	ValueSetPointer             func(v *Value, vPointer T.Gpointer)
	ValueSetStaticBoxed         func(v *Value, vBoxed T.Gconstpointer)
	ValueSetStaticString        func(v *Value, vString string)
	ValueSetString              func(v *Value, vString string)
	ValueSetStringTakeOwnership func(v *Value, vString string)
	ValueSetUchar               func(v *Value, vUchar T.Guchar)
	ValueSetUint                func(v *Value, vUint uint)
	ValueSetUint64              func(v *Value, vUint64 uint64)
	ValueSetUlong               func(v *Value, vUlong T.Gulong)
	ValueSetVariant             func(v *Value, variant *T.Variant)
	ValueTakeBoxed              func(v *Value, vBoxed T.Gconstpointer)
	ValueTakeObject             func(v *Value, vObject T.Gpointer)
	ValueTakeParam              func(v *Value, param *ParamSpec)
	ValueTakeString             func(v *Value, vString string)
	ValueTakeVariant            func(v *Value, variant *T.Variant)
	ValueTransform              func(v *Value, dest *Value) bool //
	ValueUnset                  func(v *Value)
)
View Source
var (
	ValueArrayGetType func() Type
	ValueArrayNew     func(nPrealloced uint) *ValueArray

	ValueArrayGetNth       func(v *ValueArray, index uint) *Value
	ValueArrayFree         func(v *ValueArray)
	ValueArrayCopy         func(v *ValueArray) *ValueArray
	ValueArrayPrepend      func(v *ValueArray, value *Value) *ValueArray
	ValueArrayAppend       func(v *ValueArray, value *Value) *ValueArray
	ValueArrayInsert       func(v *ValueArray, index uint, value *Value) *ValueArray
	ValueArrayRemove       func(v *ValueArray, index uint) *ValueArray
	ValueArraySort         func(v *ValueArray, compareFunc T.GCompareFunc) *ValueArray
	ValueArraySortWithData func(v *ValueArray, compareFunc T.GCompareDataFunc, userData T.Gpointer) *ValueArray
)
View Source
var BindingFlagsGetType func() Type
View Source
var ObjectTypeInit func()
View Source
var (
	ParamTypeRegisterStatic func(
		name string, pspecInfo *ParamSpecTypeInfo) Type
)

Functions

func SignalConnect

func SignalConnect(i T.Gpointer, s string,
	cb Callback, d T.Gpointer) T.Gulong

Types

type Binding

type Binding struct{}

type BindingFlags

type BindingFlags Enum
const (
	BINDING_BIDIRECTIONAL BindingFlags = 1 << iota
	BINDING_SYNC_CREATE
	BINDING_INVERT_BOOLEAN
	BINDING_DEFAULT BindingFlags = 0
)

type BindingTransformFunc

type BindingTransformFunc func(
	binding *Binding,
	sourceValue, targetValue *Value,
	userData T.Gpointer) bool

type Callback

type Callback func() T.Dummy

type Closure

type Closure struct {
	Bits uint
	// RefCount : 15
	// MetaMarshal : 1
	// NGuards : 1
	// NFnotifiers : 2
	// NInotifiers : 8
	// InInotify : 1
	// Floating : 1
	// DerivativeFlag : 1
	// InMarshal : 1
	// IsInvalid : 1
	Marshal func(
		closure *Closure,
		returnValue *Value,
		nParamValues uint,
		paramValues *Value,
		invocationHint T.Gpointer,
		marshalData T.Gpointer)
	Data      T.Gpointer
	Notifiers *ClosureNotifyData
}

func (Closure) AddFinalizeNotifier

func (c Closure) AddFinalizeNotifier(notifyData T.Gpointer, notifyFunc ClosureNotify)

func (Closure) AddInvalidateNotifier

func (c Closure) AddInvalidateNotifier(notifyData T.Gpointer, notifyFunc ClosureNotify)

func (Closure) AddMarshalGuards

func (c Closure) AddMarshalGuards(preMarshalData T.Gpointer, preMarshalNotify ClosureNotify, postMarshalData T.Gpointer, postMarshalNotify ClosureNotify)

func (Closure) Invalidate

func (c Closure) Invalidate()

func (Closure) Invoke

func (c Closure) Invoke(returnValue *Value, nParamValues uint, paramValues *Value, invocationHint T.Gpointer)

func (Closure) Ref

func (c Closure) Ref() *Closure

func (Closure) RemoveFinalizeNotifier

func (c Closure) RemoveFinalizeNotifier(notifyData T.Gpointer, notifyFunc ClosureNotify)

func (Closure) RemoveInvalidateNotifier

func (c Closure) RemoveInvalidateNotifier(notifyData T.Gpointer, notifyFunc ClosureNotify)

func (Closure) SetMarshal

func (c Closure) SetMarshal(marshal ClosureMarshal)

func (Closure) SetMetaMarshal

func (c Closure) SetMetaMarshal(marshalData T.Gpointer, metaMarshal ClosureMarshal)

func (Closure) Sink

func (c Closure) Sink()

func (Closure) Unref

func (c Closure) Unref()

type ClosureMarshal

type ClosureMarshal func(
	Closure *Closure,
	returnValue *Value,
	nParamValues uint,
	paramValues *Value,
	invocationHint, marshalData T.Gpointer)

type ClosureNotify

type ClosureNotify func(data T.Gpointer, closure *Closure)

type ClosureNotifyData

type ClosureNotifyData struct {
	Data   T.Gpointer
	Notify ClosureNotify
}

type ConnectFlags

type ConnectFlags Enum
const (
	CONNECT_AFTER ConnectFlags = 1 << iota
	CONNECT_SWAPPED
)

type DestroyNotify

type DestroyNotify func(data T.Gpointer)

type Enum

type Enum int

type EnumClass

type EnumClass struct {
	TypeClass TypeClass
	Minimum   int
	Maximum   int
	NValues   uint
	Values    *EnumValue
}

type EnumValue

type EnumValue struct {
	Value     int
	ValueName *T.Gchar
	ValueNick *T.Gchar
}

type FlagsClass

type FlagsClass struct {
	TypeClass TypeClass
	Mask      uint
	NValues   uint
	Values    *FlagsValue
}

func (*FlagsClass) GetFirstValue

func (f *FlagsClass) GetFirstValue(value uint) *FlagsValue

func (*FlagsClass) GetValueByName

func (f *FlagsClass) GetValueByName(name string) *FlagsValue

func (*FlagsClass) GetValueByNick

func (f *FlagsClass) GetValueByNick(nick string) *FlagsValue

type FlagsValue

type FlagsValue struct {
	Value     uint
	ValueName *T.Gchar
	ValueNick *T.Gchar
}

type Object

type Object struct {
	TypeInstance TypeInstance
	RefCount     uint
	Qdata        *T.GData
}

func (*Object) AddToggleRef

func (o *Object) AddToggleRef(notify T.GToggleNotify, data T.Gpointer)

func (*Object) AddWeakPointer

func (o *Object) AddWeakPointer(weakPointerLocation *T.Gpointer)

func (*Object) ForceFloating

func (o *Object) ForceFloating()

func (*Object) FreezeNotify

func (o *Object) FreezeNotify()

func (*Object) GetData

func (o *Object) GetData(key string) T.Gpointer

func (*Object) GetProperty

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

func (*Object) GetQdata

func (o *Object) GetQdata(quark T.Quark) T.Gpointer

func (*Object) GetValist

func (o *Object) GetValist(firstPropertyName string, varArgs VAList)

func (*Object) Notify

func (o *Object) Notify(propertyName string)

func (*Object) NotifyByPspec

func (o *Object) NotifyByPspec(pspec *ParamSpec)

func (*Object) RemoveToggleRef

func (o *Object) RemoveToggleRef(notify T.GToggleNotify, data T.Gpointer)

func (*Object) RemoveWeakPointer

func (o *Object) RemoveWeakPointer(weakPointerLocation *T.Gpointer)

func (*Object) RunDispose

func (o *Object) RunDispose()

func (*Object) SetData

func (o *Object) SetData(key string, data T.Gpointer)

func (*Object) SetDataFull

func (o *Object) SetDataFull(key string, data T.Gpointer, destroy DestroyNotify)

func (*Object) SetProperty

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

func (*Object) SetQdata

func (o *Object) SetQdata(quark T.Quark, data T.Gpointer)

func (*Object) SetQdataFull

func (o *Object) SetQdataFull(quark T.Quark, data T.Gpointer, destroy DestroyNotify)

func (*Object) SetValist

func (o *Object) SetValist(firstPropertyName string, varArgs VAList)

func (*Object) StealData

func (o *Object) StealData(key string) T.Gpointer

func (*Object) StealQdata

func (o *Object) StealQdata(quark T.Quark) T.Gpointer

func (*Object) ThawNotify

func (o *Object) ThawNotify()

func (*Object) WatchClosure

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

func (*Object) WeakRef

func (o *Object) WeakRef(notify T.GWeakNotify, data T.Gpointer)

func (*Object) WeakUnref

func (o *Object) WeakUnref(notify T.GWeakNotify, data T.Gpointer)

type ObjectClass

type ObjectClass struct {
	TypeClass           TypeClass
	ConstructProperties *SList

	Constructor               func(Type Type, nConstructProperties uint, constructProperties *ObjectConstructParam) *Object
	SetProperty               func(object *Object, propertyId uint, value Value, pspec *ParamSpec)
	GetProperty               func(object *Object, propertyId uint, value *Value, pspec *ParamSpec)
	Dispose                   func(object *Object)
	Finalize                  func(object *Object)
	DispatchPropertiesChanged func(object *Object, nPspecs uint, pspecs **ParamSpec)
	Notify                    func(object *Object, pspec *ParamSpec)
	Constructed               func(object *Object)
	Flags                     T.Gsize
	Pdummy                    [6]T.Gpointer
}

func (*ObjectClass) FindProperty

func (o *ObjectClass) FindProperty(propertyName string) *ParamSpec

func (*ObjectClass) InstallProperties

func (o *ObjectClass) InstallProperties(nPspecs uint, pspecs **ParamSpec)

func (*ObjectClass) InstallProperty

func (o *ObjectClass) InstallProperty(propertyId uint, pspec *ParamSpec)

func (*ObjectClass) ListProperties

func (o *ObjectClass) ListProperties(nProperties *uint) **ParamSpec

func (*ObjectClass) OverrideProperty

func (o *ObjectClass) OverrideProperty(propertyId uint, name string)

type ObjectConstructParam

type ObjectConstructParam struct {
	Pspec *ParamSpec
	Value *Value
}

type ParamFlags

type ParamFlags Enum
const (
	PARAM_READABLE ParamFlags = 1 << iota
	PARAM_WRITABLE
	PARAM_CONSTRUCT
	PARAM_CONSTRUCT_ONLY
	PARAM_LAX_VALIDATION
	PARAM_STATIC_NAME
	PARAM_STATIC_NICK
	PARAM_STATIC_BLURB
	PARAM_DEPRECATED ParamFlags = -(1 << 31)
	PARAM_PRIVATE               = PARAM_STATIC_NAME
)

type ParamSpec

type ParamSpec struct {
	TypeInstance TypeInstance
	Name         *T.Gchar
	Flags        ParamFlags
	Value_type   Type
	Owner_type   Type

	Qdata     *T.GData
	Ref_count uint
	Param_id  uint
	// contains filtered or unexported fields
}

func (*ParamSpec) Convert

func (p *ParamSpec) Convert(srcValue, destValue *Value, strictValidation bool) bool

func (*ParamSpec) Defaults

func (p *ParamSpec) Defaults(value *Value) bool

func (*ParamSpec) GetBlurb

func (p *ParamSpec) GetBlurb() string

func (*ParamSpec) GetName

func (p *ParamSpec) GetName() string

func (*ParamSpec) GetNick

func (p *ParamSpec) GetNick() string

func (*ParamSpec) GetQdata

func (p *ParamSpec) GetQdata(quark T.Quark) T.Gpointer

func (*ParamSpec) GetRedirectTarget

func (p *ParamSpec) GetRedirectTarget() *ParamSpec

func (*ParamSpec) Ref

func (p *ParamSpec) Ref() *ParamSpec

func (*ParamSpec) RefSink

func (p *ParamSpec) RefSink() *ParamSpec

func (*ParamSpec) SetDefault

func (p *ParamSpec) SetDefault(value *Value)

func (*ParamSpec) SetQdata

func (p *ParamSpec) SetQdata(quark T.Quark, data T.Gpointer)

func (*ParamSpec) SetQdataFull

func (p *ParamSpec) SetQdataFull(quark T.Quark, data T.Gpointer, destroy DestroyNotify)

func (*ParamSpec) Sink

func (p *ParamSpec) Sink()

func (*ParamSpec) StealQdata

func (p *ParamSpec) StealQdata(quark T.Quark) T.Gpointer

func (*ParamSpec) Unref

func (p *ParamSpec) Unref()

func (*ParamSpec) Validate

func (p *ParamSpec) Validate(value *Value) bool

func (*ParamSpec) ValuesCmp

func (p *ParamSpec) ValuesCmp(value1, value2 *Value) int

type ParamSpecPool

type ParamSpecPool struct{}

func (*ParamSpecPool) Insert

func (p *ParamSpecPool) Insert(pspec *ParamSpec, ownerType Type)

func (*ParamSpecPool) List

func (p *ParamSpecPool) List(ownerType Type, nPspecsP *uint) **ParamSpec

func (*ParamSpecPool) ListOwned

func (p *ParamSpecPool) ListOwned(ownerType Type) *T.List

func (*ParamSpecPool) Lookup

func (p *ParamSpecPool) Lookup(paramName string, ownerType Type, walkAncestors bool) *ParamSpec

func (*ParamSpecPool) Remove

func (p *ParamSpecPool) Remove(pspec *ParamSpec)

type ParamSpecTypeInfo

type ParamSpecTypeInfo struct {
	InstanceSize      uint16
	NPreallocs        uint16
	InstanceInit      func(pspec *ParamSpec)
	ValueType         Type
	Finalize          func(pspec *ParamSpec)
	Value_set_default func(
		pspec *ParamSpec, value *Value)
	Value_validate func(
		pspec *ParamSpec, value *Value) bool
	Values_cmp func(pspec *ParamSpec,
		value1 *Value, value2 *Value) int
}

type Parameter

type Parameter struct {
	Name  string
	Value Value
}

type SList

type SList T.SList

type SignalAccumulator

type SignalAccumulator func(
	ihint *SignalInvocationHint,
	returnAccu *Value,
	handlerReturn *Value,
	data T.Gpointer) T.Gboolean

type SignalCMarshaller

type SignalCMarshaller ClosureMarshal

type SignalEmissionHook

type SignalEmissionHook func(
	ihint *SignalInvocationHint,
	nParamValues uint,
	paramValues *Value,
	data T.Gpointer) T.Gboolean

type SignalFlags

type SignalFlags Enum
const (
	SIGNAL_RUN_FIRST SignalFlags = 1 << iota
	SIGNAL_RUN_LAST
	SIGNAL_RUN_CLEANUP
	SIGNAL_NO_RECURSE
	SIGNAL_DETAILED
	SIGNAL_ACTION
	SIGNAL_NO_HOOKS
)

type SignalInvocationHint

type SignalInvocationHint struct {
	SignalId uint
	Detail   T.Quark
	RunType  SignalFlags
}

type SignalMatchType

type SignalMatchType Enum
const (
	SIGNAL_MATCH_ID SignalMatchType = 1 << iota
	SIGNAL_MATCH_DETAIL
	SIGNAL_MATCH_CLOSURE
	SIGNAL_MATCH_FUNC
	SIGNAL_MATCH_DATA
	SIGNAL_MATCH_UNBLOCKED
)

type SignalQueryFunc

type SignalQueryFunc struct {
	SignalId    uint
	SignalName  string
	Itype       T.GType
	SignalFlags SignalFlags
	ReturnType  T.GType
	NParams     uint
	ParamTypes  *T.GType
}

type Source

type Source struct {
	CallbackData  T.Gpointer
	CallbackFuncs *SourceCallbackFuncs
	Source_funcs  *SourceFuncs
	RefCount      uint
	Context       *T.MainContext
	Priority      int
	Flags         uint
	SourceId      uint
	PollFds       *SList
	Prev          *Source
	Next          *Source
	Name          *T.Char
	// contains filtered or unexported fields
}

type SourceCallbackFuncs

type SourceCallbackFuncs struct {
	Ref   func(cbData T.Gpointer)
	Unref func(cbData T.Gpointer)
	Get   func(cbData T.Gpointer,
		source *Source, fnc *SourceFunc, data *T.Gpointer)
}

type SourceDummyMarshal

type SourceDummyMarshal func()

type SourceFunc

type SourceFunc func(data T.Gpointer) bool

type SourceFuncs

type SourceFuncs struct {
	Prepare  func(source *Source, timeout *int) bool
	Check    func(source *Source) bool
	Dispatch func(
		source *Source, callback SourceFunc, userData T.Gpointer) bool
	Finalize func(source *Source)

	ClosureCallback SourceFunc
	ClosureMarshal  SourceDummyMarshal
}

type Type

type Type T.Gsize

func (Type) AddClassPrivate

func (t Type) AddClassPrivate(privateSize T.Gsize)

func (Type) AddInterfaceDynamic

func (t Type) AddInterfaceDynamic(interfaceType Type, plugin *TypePlugin)

func (Type) AddInterfaceStatic

func (t Type) AddInterfaceStatic(interfaceType Type, info *T.GInterfaceInfo)

func (Type) CheckIsValueType

func (t Type) CheckIsValueType() bool

func (Type) Children

func (t Type) Children(nChildren *uint) *Type

func (Type) ClassPeek

func (t Type) ClassPeek() T.Gpointer

func (Type) ClassPeekStatic

func (t Type) ClassPeekStatic() T.Gpointer

func (Type) ClassRef

func (t Type) ClassRef() T.Gpointer

func (Type) DefaultInterfacePeek

func (t Type) DefaultInterfacePeek() T.Gpointer

func (Type) DefaultInterfaceRef

func (t Type) DefaultInterfaceRef() T.Gpointer

func (Type) Depth

func (t Type) Depth() uint

func (Type) Fundamental

func (t Type) Fundamental() Type

func (Type) GetPlugin

func (t Type) GetPlugin() *TypePlugin

func (Type) GetQdata

func (t Type) GetQdata(quark T.Quark) T.Gpointer

func (Type) InterfaceAddPrerequisite

func (t Type) InterfaceAddPrerequisite(prerequisiteType Type)

func (Type) InterfaceGetPlugin

func (t Type) InterfaceGetPlugin(interfaceType Type) *TypePlugin

func (Type) InterfacePrerequisites

func (t Type) InterfacePrerequisites(nPrerequisites *uint) *Type

func (Type) Interfaces

func (t Type) Interfaces(nInterfaces *uint) *Type

func (Type) IsA

func (t Type) IsA(isAType Type) bool

func (Type) Name

func (t Type) Name() string

func (Type) NextBase

func (t Type) NextBase(rootType Type) Type

func (Type) Parent

func (t Type) Parent() Type

func (Type) Qname

func (t Type) Qname() T.Quark

func (Type) Query

func (t Type) Query(query *T.GTypeQuery)

func (Type) RegisterDynamic

func (t Type) RegisterDynamic(typeName string, plugin *TypePlugin, flags TypeFlags) Type

func (Type) RegisterFundamental

func (t Type) RegisterFundamental(typeName string, info *TypeInfo, finfo *T.GTypeFundamentalInfo, flags TypeFlags) Type

func (Type) RegisterStatic

func (t Type) RegisterStatic(typeName string, info *TypeInfo, flags TypeFlags) Type

func (Type) RegisterStaticSimple

func (t Type) RegisterStaticSimple(typeName string, classSize uint, classInit T.GClassInitFunc, instanceSize uint, instanceInit T.GInstanceInitFunc, flags TypeFlags) Type

func (Type) SetQdata

func (t Type) SetQdata(quark T.Quark, data T.Gpointer)

func (Type) TestFlags

func (t Type) TestFlags(flags uint) bool

func (Type) ValueTablePeek

func (t Type) ValueTablePeek() *TypeValueTable

type TypeCValue

type TypeCValue struct{}

type TypeClass

type TypeClass struct {
	Type Type
}

func (*TypeClass) CheckCast

func (t *TypeClass) CheckCast(isAType Type) *TypeClass

func (*TypeClass) GetPrivate

func (t *TypeClass) GetPrivate(privateType Type) T.Gpointer

func (*TypeClass) IsA

func (t *TypeClass) IsA(isAType Type) bool

func (*TypeClass) Name

func (t *TypeClass) Name() string

type TypeDebugFlags

type TypeDebugFlags Enum
const (
	TYPE_DEBUG_OBJECTS TypeDebugFlags = 1 << iota
	TYPE_DEBUG_SIGNALS
	TYPE_DEBUG_NONE TypeDebugFlags = 0
	TYPE_DEBUG_MASK TypeDebugFlags = 0x03
)

type TypeFlags

type TypeFlags Enum
const (
	TYPE_FLAG_ABSTRACT TypeFlags = 1 << (4 + iota)
	TYPE_FLAG_VALUE_ABSTRACT
)

type TypeInfo

type TypeInfo struct {
	ClassSize     uint16
	BaseInit      T.GBaseInitFunc
	BaseFinalize  T.GBaseFinalizeFunc
	ClassInit     T.GClassInitFunc
	ClassFinalize T.GClassFinalizeFunc
	ClassData     T.Gconstpointer
	InstanceSize  uint16
	NPreallocs    uint16
	InstanceInit  T.GInstanceInitFunc
	ValueTable    *TypeValueTable
}

type TypeInstance

type TypeInstance struct {
	Class *TypeClass
}

func (*TypeInstance) CheckCast

func (i *TypeInstance) CheckCast(ifaceType Type) *TypeInstance

func (*TypeInstance) CheckInstance

func (i *TypeInstance) CheckInstance() bool

func (*TypeInstance) Free

func (i *TypeInstance) Free()

func (*TypeInstance) GetPrivate

func (i *TypeInstance) GetPrivate(privateType Type) T.Gpointer

func (*TypeInstance) IsA

func (i *TypeInstance) IsA(ifaceType Type) bool

func (*TypeInstance) NameFromInstance

func (i *TypeInstance) NameFromInstance() string

type TypeModule

type TypeModule struct {
	Parent         Object
	UseCount       uint
	TypeInfos      *SList
	InterfaceInfos *SList
	Name           *T.Gchar
}

func (*TypeModule) AddInterface

func (m *TypeModule) AddInterface(instanceType, interfaceType Type, interfaceInfo *T.GInterfaceInfo)

func (*TypeModule) RegisterEnum

func (m *TypeModule) RegisterEnum(name string, constStaticValues *EnumValue) Type

func (*TypeModule) RegisterFlags

func (m *TypeModule) RegisterFlags(name string, constStaticValues *FlagsValue) Type

func (*TypeModule) RegisterType

func (m *TypeModule) RegisterType(parentType Type, typeName string, typeInfo *TypeInfo, flags TypeFlags) Type

func (*TypeModule) SetName

func (m *TypeModule) SetName(name string)

func (*TypeModule) Unuse

func (m *TypeModule) Unuse()

func (*TypeModule) Use

func (m *TypeModule) Use() bool

type TypePlugin

type TypePlugin struct{}

func (*TypePlugin) CompleteInterfaceInfo

func (p *TypePlugin) CompleteInterfaceInfo(instanceType, interfaceType Type, info *T.GInterfaceInfo)

func (*TypePlugin) CompleteTypeInfo

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

func (*TypePlugin) Unuse

func (p *TypePlugin) Unuse()

func (*TypePlugin) Use

func (p *TypePlugin) Use()

type TypeValueTable

type TypeValueTable struct {
	ValueInit func(value *Value)
	ValueFree func(value *Value)
	ValueCopy func(
		srcValue *Value, destValue *Value)
	ValuePeekPointer func(value *Value) T.Gpointer
	CollectFormat    *T.Gchar
	CollectValue     func(
		value *Value,
		nCollectValues uint,
		collectValues *TypeCValue,
		collectFlags uint) *T.Gchar
	LcopyFormat *T.Gchar
	LcopyValue  func(
		value *Value,
		nCollectValues uint,
		collectValues *TypeCValue,
		collectFlags uint) *T.Gchar
}

type Value

type Value struct {
	Type Type
	//  UNION
	Data [2]uint64 // was union{v_int...}data[2]

}

func (*Value) Copy

func (v *Value) Copy(destValue *Value)

func (*Value) DupBoxed

func (v *Value) DupBoxed() T.Gpointer

func (*Value) DupObject

func (v *Value) DupObject() T.Gpointer

func (*Value) DupParam

func (v *Value) DupParam() *ParamSpec

func (*Value) DupString

func (v *Value) DupString() string

func (*Value) DupVariant

func (v *Value) DupVariant() *T.Variant

func (*Value) FitsPointer

func (v *Value) FitsPointer() bool

func (*Value) GetBoolean

func (v *Value) GetBoolean() bool

func (*Value) GetBoxed

func (v *Value) GetBoxed() T.Gpointer

func (*Value) GetChar

func (v *Value) GetChar() T.Gchar

func (*Value) GetDouble

func (v *Value) GetDouble() float64

func (*Value) GetEnum

func (v *Value) GetEnum() int

func (*Value) GetFlags

func (v *Value) GetFlags() uint

func (*Value) GetFloat

func (v *Value) GetFloat() float32

func (*Value) GetGtype

func (v *Value) GetGtype() Type

func (*Value) GetInt

func (v *Value) GetInt() int

func (*Value) GetInt64

func (v *Value) GetInt64() int64

func (*Value) GetLong

func (v *Value) GetLong() T.Glong

func (*Value) GetObject

func (v *Value) GetObject() T.Gpointer

func (*Value) GetParam

func (v *Value) GetParam() *ParamSpec

func (*Value) GetPointer

func (v *Value) GetPointer() T.Gpointer

func (*Value) GetString

func (v *Value) GetString() string

func (*Value) GetUchar

func (v *Value) GetUchar() T.Guchar

func (*Value) GetUint

func (v *Value) GetUint() uint

func (*Value) GetUint64

func (v *Value) GetUint64() uint64

func (*Value) GetUlong

func (v *Value) GetUlong() T.Gulong

func (*Value) GetVariant

func (v *Value) GetVariant() *T.Variant

func (*Value) Init

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

func (*Value) PeekPointer

func (v *Value) PeekPointer() T.Gpointer

func (*Value) Reset

func (v *Value) Reset() *Value

func (*Value) SetBoolean

func (v *Value) SetBoolean(vBoolean bool)

func (*Value) SetBoxed

func (v *Value) SetBoxed(vBoxed T.Gconstpointer)

func (*Value) SetBoxedTakeOwnership

func (v *Value) SetBoxedTakeOwnership(vBoxed T.Gconstpointer)

func (*Value) SetChar

func (v *Value) SetChar(vChar T.Gchar)

func (*Value) SetDouble

func (v *Value) SetDouble(vDouble float64)

func (*Value) SetEnum

func (v *Value) SetEnum(vEnum int)

func (*Value) SetFlags

func (v *Value) SetFlags(vFlags uint)

func (*Value) SetFloat

func (v *Value) SetFloat(vFloat float32)

func (*Value) SetGtype

func (v *Value) SetGtype(vGtype Type)

func (*Value) SetInstance

func (v *Value) SetInstance(instance T.Gpointer)

func (*Value) SetInt

func (v *Value) SetInt(vInt int)

func (*Value) SetInt64

func (v *Value) SetInt64(vInt64 int64)

func (*Value) SetLong

func (v *Value) SetLong(vLong T.Glong)

func (*Value) SetObject

func (v *Value) SetObject(vObject T.Gpointer)

func (*Value) SetObjectTakeOwnership

func (v *Value) SetObjectTakeOwnership(vObject T.Gpointer)

func (*Value) SetParam

func (v *Value) SetParam(param *ParamSpec)

func (*Value) SetParamTakeOwnership

func (v *Value) SetParamTakeOwnership(param *ParamSpec)

func (*Value) SetPointer

func (v *Value) SetPointer(vPointer T.Gpointer)

func (*Value) SetStaticBoxed

func (v *Value) SetStaticBoxed(vBoxed T.Gconstpointer)

func (*Value) SetStaticString

func (v *Value) SetStaticString(vString string)

func (*Value) SetString

func (v *Value) SetString(vString string)

func (*Value) SetStringTakeOwnership

func (v *Value) SetStringTakeOwnership(vString string)

func (*Value) SetUchar

func (v *Value) SetUchar(vUchar T.Guchar)

func (*Value) SetUint

func (v *Value) SetUint(vUint uint)

func (*Value) SetUint64

func (v *Value) SetUint64(vUint64 uint64)

func (*Value) SetUlong

func (v *Value) SetUlong(vUlong T.Gulong)

func (*Value) SetVariant

func (v *Value) SetVariant(variant *T.Variant)

func (*Value) TakeBoxed

func (v *Value) TakeBoxed(vBoxed T.Gconstpointer)

func (*Value) TakeObject

func (v *Value) TakeObject(vObject T.Gpointer)

func (*Value) TakeParam

func (v *Value) TakeParam(param *ParamSpec)

func (*Value) TakeString

func (v *Value) TakeString(vString string)

func (*Value) TakeVariant

func (v *Value) TakeVariant(variant *T.Variant)

func (*Value) Transform

func (v *Value) Transform(dest *Value) bool

func (*Value) Unset

func (v *Value) Unset()

type ValueArray

type ValueArray struct {
	NValues     uint
	Values      *Value
	NPrealloced uint
}

func (*ValueArray) Append

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

func (*ValueArray) Copy

func (v *ValueArray) Copy() *ValueArray

func (*ValueArray) Free

func (v *ValueArray) Free()

func (*ValueArray) GetNth

func (v *ValueArray) GetNth(index uint) *Value

func (*ValueArray) Insert

func (v *ValueArray) Insert(index uint, value *Value) *ValueArray

func (*ValueArray) Prepend

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

func (*ValueArray) Remove

func (v *ValueArray) Remove(index uint) *ValueArray

func (*ValueArray) Sort

func (v *ValueArray) Sort(compareFunc T.GCompareFunc) *ValueArray

func (*ValueArray) SortWithData

func (v *ValueArray) SortWithData(compareFunc T.GCompareDataFunc, userData T.Gpointer) *ValueArray

type ValueTransformFunc

type ValueTransformFunc func(srcValue, destValue *Value) //NOTE(t): was ambiguity

Jump to

Keyboard shortcuts

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