gobject

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PARAM_MASK int32 = C.G_PARAM_MASK
View Source
const PARAM_STATIC_STRINGS int32 = C.G_PARAM_STATIC_STRINGS
View Source
const PARAM_USER_SHIFT int32 = C.G_PARAM_USER_SHIFT
View Source
const SIGNAL_FLAGS_MASK int32 = C.G_SIGNAL_FLAGS_MASK
View Source
const SIGNAL_MATCH_MASK int32 = C.G_SIGNAL_MATCH_MASK
View Source
const TYPE_FUNDAMENTAL_MAX int32 = C.G_TYPE_FUNDAMENTAL_MAX
View Source
const TYPE_FUNDAMENTAL_SHIFT int32 = C.G_TYPE_FUNDAMENTAL_SHIFT
View Source
const TYPE_RESERVED_BSE_FIRST int32 = C.G_TYPE_RESERVED_BSE_FIRST
View Source
const TYPE_RESERVED_BSE_LAST int32 = C.G_TYPE_RESERVED_BSE_LAST
View Source
const TYPE_RESERVED_GLIB_FIRST int32 = C.G_TYPE_RESERVED_GLIB_FIRST
View Source
const TYPE_RESERVED_GLIB_LAST int32 = C.G_TYPE_RESERVED_GLIB_LAST
View Source
const TYPE_RESERVED_USER_FIRST int32 = C.G_TYPE_RESERVED_USER_FIRST
View Source
const VALUE_NOCOPY_CONTENTS int32 = 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 added in v0.0.3

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 added in v0.0.3

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

g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalBooleanFlags is a wrapper around the C function g_cclosure_marshal_BOOLEAN__FLAGS.

func CClosureMarshalStringObjectPointer added in v0.0.3

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

g_cclosure_marshal_BOOLEAN__FLAGSv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalStringObjectPointer is a wrapper around the C function g_cclosure_marshal_STRING__OBJECT_POINTER.

func CClosureMarshalVoidBoolean added in v0.0.3

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

g_cclosure_marshal_STRING__OBJECT_POINTERv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidBoolean is a wrapper around the C function g_cclosure_marshal_VOID__BOOLEAN.

func CClosureMarshalVoidBoxed added in v0.0.3

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

g_cclosure_marshal_VOID__BOOLEANv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidBoxed is a wrapper around the C function g_cclosure_marshal_VOID__BOXED.

func CClosureMarshalVoidChar added in v0.0.3

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

g_cclosure_marshal_VOID__BOXEDv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidChar is a wrapper around the C function g_cclosure_marshal_VOID__CHAR.

func CClosureMarshalVoidDouble added in v0.0.3

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

g_cclosure_marshal_VOID__CHARv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidDouble is a wrapper around the C function g_cclosure_marshal_VOID__DOUBLE.

func CClosureMarshalVoidEnum added in v0.0.3

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

g_cclosure_marshal_VOID__DOUBLEv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidEnum is a wrapper around the C function g_cclosure_marshal_VOID__ENUM.

func CClosureMarshalVoidFlags added in v0.0.3

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

g_cclosure_marshal_VOID__ENUMv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidFlags is a wrapper around the C function g_cclosure_marshal_VOID__FLAGS.

func CClosureMarshalVoidFloat added in v0.0.3

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

g_cclosure_marshal_VOID__FLAGSv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidFloat is a wrapper around the C function g_cclosure_marshal_VOID__FLOAT.

func CClosureMarshalVoidInt added in v0.0.3

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

g_cclosure_marshal_VOID__FLOATv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidInt is a wrapper around the C function g_cclosure_marshal_VOID__INT.

func CClosureMarshalVoidLong added in v0.0.3

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

g_cclosure_marshal_VOID__INTv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidLong is a wrapper around the C function g_cclosure_marshal_VOID__LONG.

func CClosureMarshalVoidObject added in v0.0.3

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

g_cclosure_marshal_VOID__LONGv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidObject is a wrapper around the C function g_cclosure_marshal_VOID__OBJECT.

func CClosureMarshalVoidParam added in v0.0.3

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

g_cclosure_marshal_VOID__OBJECTv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidParam is a wrapper around the C function g_cclosure_marshal_VOID__PARAM.

func CClosureMarshalVoidPointer added in v0.0.3

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

g_cclosure_marshal_VOID__PARAMv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidPointer is a wrapper around the C function g_cclosure_marshal_VOID__POINTER.

func CClosureMarshalVoidString added in v0.0.3

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

g_cclosure_marshal_VOID__POINTERv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidString is a wrapper around the C function g_cclosure_marshal_VOID__STRING.

func CClosureMarshalVoidUchar added in v0.0.3

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

g_cclosure_marshal_VOID__STRINGv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidUchar is a wrapper around the C function g_cclosure_marshal_VOID__UCHAR.

func CClosureMarshalVoidUint added in v0.0.3

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

g_cclosure_marshal_VOID__UCHARv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidUint is a wrapper around the C function g_cclosure_marshal_VOID__UINT.

func CClosureMarshalVoidUintPointer added in v0.0.3

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 added in v0.0.3

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

g_cclosure_marshal_VOID__UINT_POINTERv : unsupported parameter args : no type generator for va_list (va_list) for param args g_cclosure_marshal_VOID__UINTv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidUlong is a wrapper around the C function g_cclosure_marshal_VOID__ULONG.

func CClosureMarshalVoidVariant added in v0.0.3

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

g_cclosure_marshal_VOID__ULONGv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidVariant is a wrapper around the C function g_cclosure_marshal_VOID__VARIANT.

func CClosureMarshalVoidVoid added in v0.0.3

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

g_cclosure_marshal_VOID__VARIANTv : unsupported parameter args : no type generator for va_list (va_list) for param args CClosureMarshalVoidVoid is a wrapper around the C function g_cclosure_marshal_VOID__VOID.

func ObjectCompatControl added in v0.0.3

func ObjectCompatControl(what uint64, data uintptr) uint64

ObjectCompatControl is a wrapper around the C function g_object_compat_control.

func ParamValueConvert added in v0.0.7

func ParamValueConvert(pspec *ParamSpec, srcValue *Value, destValue *Value, strictValidation bool) bool

ParamValueConvert is a wrapper around the C function g_param_value_convert.

func ParamValueDefaults added in v0.0.7

func ParamValueDefaults(pspec *ParamSpec, value *Value) bool

ParamValueDefaults is a wrapper around the C function g_param_value_defaults.

func ParamValueSetDefault added in v0.0.7

func ParamValueSetDefault(pspec *ParamSpec, value *Value)

ParamValueSetDefault is a wrapper around the C function g_param_value_set_default.

func ParamValueValidate added in v0.0.7

func ParamValueValidate(pspec *ParamSpec, value *Value) bool

ParamValueValidate is a wrapper around the C function g_param_value_validate.

func ParamValuesCmp added in v0.0.7

func ParamValuesCmp(pspec *ParamSpec, value1 *Value, value2 *Value) int32

ParamValuesCmp is a wrapper around the C function g_param_values_cmp.

func SignalConnectClosure

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

SignalConnectClosure is a wrapper around the C function g_signal_connect_closure.

func SignalConnectClosureById

func SignalConnectClosureById(instance *Object, 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 *Object, handlerId uint64)

SignalHandlerBlock is a wrapper around the C function g_signal_handler_block.

func SignalHandlerDisconnect

func SignalHandlerDisconnect(instance *Object, handlerId uint64)

SignalHandlerDisconnect is a wrapper around the C function g_signal_handler_disconnect.

func SignalHandlerFind

func SignalHandlerFind(instance *Object, 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 *Object, handlerId uint64) bool

SignalHandlerIsConnected is a wrapper around the C function g_signal_handler_is_connected.

func SignalHandlerUnblock

func SignalHandlerUnblock(instance *Object, handlerId uint64)

SignalHandlerUnblock is a wrapper around the C function g_signal_handler_unblock.

func SignalHandlersBlockMatched

func SignalHandlersBlockMatched(instance *Object, 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 *Object)

SignalHandlersDestroy is a wrapper around the C function g_signal_handlers_destroy.

func SignalHandlersDisconnectMatched

func SignalHandlersDisconnectMatched(instance *Object, 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 *Object, 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 *Object, 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 *Object, signalId uint32, detail glib.Quark)

SignalStopEmission is a wrapper around the C function g_signal_stop_emission.

func SignalStopEmissionByName

func SignalStopEmissionByName(instance *Object, 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 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 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

g_value_register_transform_func : unsupported parameter transform_func : no type generator for ValueTransform (GValueTransform) for param transform_func 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) Equals added in v0.0.2

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

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

func (*CClosure) ToC

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

type Closure

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

g_cclosure_marshal_VOID__VOIDv : unsupported parameter args : no type generator for va_list (va_list) for param args g_cclosure_new : unsupported parameter callback_func : no type generator for Callback (GCallback) for param callback_func g_cclosure_new_object : unsupported parameter callback_func : no type generator for Callback (GCallback) for param callback_func g_cclosure_new_object_swap : unsupported parameter callback_func : no type generator for Callback (GCallback) for param callback_func g_cclosure_new_swap : unsupported parameter callback_func : no type generator for Callback (GCallback) for param callback_func 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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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 arbitrary 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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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 arbitrary 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) ConnectNotify added in v0.0.7

func (recv *Object) ConnectNotify(callback ObjectSignalNotifyCallback) int

ConnectNotify connects the callback to the 'notify' signal for the Object.

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

func (*Object) ConnectNotifyProperty added in v0.0.7

func (recv *Object) ConnectNotifyProperty(property string, callback ObjectSignalNotifyCallback) int

ConnectNotifyProperty connects the callback to the 'notify' signal for a specific property of the Object.

For example, to connect to the notify signal for the "title" property of a window.

window.Object().ConnectNotifyProperty("title", func(pspec *gobject.ParamSpec) {
	fmt.Println("title property changed")
})

In that example it is the "notify::title" signal that is being connected to.

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

func (*Object) DisconnectNotify added in v0.0.7

func (recv *Object) DisconnectNotify(connectionID int)

DisconnectNotify disconnects a callback from the 'notify' signal for the Object.

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

func (*Object) Equals added in v0.0.2

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

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

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() Object

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) Equals added in v0.0.2

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

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

func (*ObjectClass) FindProperty added in v0.0.7

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

FindProperty is a wrapper around the C function g_object_class_find_property.

func (*ObjectClass) InstallProperty added in v0.0.7

func (recv *ObjectClass) InstallProperty(propertyId uint32, pspec *ParamSpec)

InstallProperty is a wrapper around the C function g_object_class_install_property.

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) Equals added in v0.0.2

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

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

func (*ObjectConstructParam) ToC

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

type ObjectSignalNotifyCallback added in v0.0.7

type ObjectSignalNotifyCallback func(targetObject *Object, pspec *ParamSpec)

ObjectSignalNotifyCallback is a callback function for a 'notify' signal emitted from a Object.

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 ParamSpec added in v0.0.7

type ParamSpec struct {

	// g_type_instance : record
	Name      string
	Flags     ParamFlags
	ValueType Type
	OwnerType Type
	// contains filtered or unexported fields
}

ParamSpec is a wrapper around the C record GParamSpec.

func ParamLong_ added in v0.0.7

func ParamLong_(name string, nick string, blurb string, minimum int64, maximum int64, defaultValue int64, flags ParamFlags) *ParamSpec

ParamLong_ is a wrapper around the C function g_param_spec_long.

func ParamSpecBoolean_ added in v0.0.7

func ParamSpecBoolean_(name string, nick string, blurb string, defaultValue bool, flags ParamFlags) *ParamSpec

ParamSpecBoolean_ is a wrapper around the C function g_param_spec_boolean.

func ParamSpecBoxed_ added in v0.0.7

func ParamSpecBoxed_(name string, nick string, blurb string, boxedType Type, flags ParamFlags) *ParamSpec

ParamSpecBoxed_ is a wrapper around the C function g_param_spec_boxed.

func ParamSpecChar_ added in v0.0.7

func ParamSpecChar_(name string, nick string, blurb string, minimum int8, maximum int8, defaultValue int8, flags ParamFlags) *ParamSpec

ParamSpecChar_ is a wrapper around the C function g_param_spec_char.

func ParamSpecDouble_ added in v0.0.7

func ParamSpecDouble_(name string, nick string, blurb string, minimum float64, maximum float64, defaultValue float64, flags ParamFlags) *ParamSpec

ParamSpecDouble_ is a wrapper around the C function g_param_spec_double.

func ParamSpecEnum_ added in v0.0.7

func ParamSpecEnum_(name string, nick string, blurb string, enumType Type, defaultValue int32, flags ParamFlags) *ParamSpec

ParamSpecEnum_ is a wrapper around the C function g_param_spec_enum.

func ParamSpecFlags_ added in v0.0.7

func ParamSpecFlags_(name string, nick string, blurb string, flagsType Type, defaultValue uint32, flags ParamFlags) *ParamSpec

ParamSpecFlags_ is a wrapper around the C function g_param_spec_flags.

func ParamSpecFloat_ added in v0.0.7

func ParamSpecFloat_(name string, nick string, blurb string, minimum float32, maximum float32, defaultValue float32, flags ParamFlags) *ParamSpec

ParamSpecFloat_ is a wrapper around the C function g_param_spec_float.

func ParamSpecInt64_ added in v0.0.7

func ParamSpecInt64_(name string, nick string, blurb string, minimum int64, maximum int64, defaultValue int64, flags ParamFlags) *ParamSpec

ParamSpecInt64_ is a wrapper around the C function g_param_spec_int64.

func ParamSpecInt_ added in v0.0.7

func ParamSpecInt_(name string, nick string, blurb string, minimum int32, maximum int32, defaultValue int32, flags ParamFlags) *ParamSpec

ParamSpecInt_ is a wrapper around the C function g_param_spec_int.

func ParamSpecInternal added in v0.0.7

func ParamSpecInternal(paramType Type, name string, nick string, blurb string, flags ParamFlags) ParamSpec

ParamSpecInternal is a wrapper around the C function g_param_spec_internal.

func ParamSpecNewFromC added in v0.0.7

func ParamSpecNewFromC(u unsafe.Pointer) *ParamSpec

func ParamSpecObject_ added in v0.0.7

func ParamSpecObject_(name string, nick string, blurb string, objectType Type, flags ParamFlags) *ParamSpec

ParamSpecObject_ is a wrapper around the C function g_param_spec_object.

func ParamSpecParam_ added in v0.0.7

func ParamSpecParam_(name string, nick string, blurb string, paramType Type, flags ParamFlags) *ParamSpec

ParamSpecParam_ is a wrapper around the C function g_param_spec_param.

func ParamSpecPointer_ added in v0.0.7

func ParamSpecPointer_(name string, nick string, blurb string, flags ParamFlags) *ParamSpec

ParamSpecPointer_ is a wrapper around the C function g_param_spec_pointer.

func ParamSpecString_ added in v0.0.7

func ParamSpecString_(name string, nick string, blurb string, defaultValue string, flags ParamFlags) *ParamSpec

ParamSpecString_ is a wrapper around the C function g_param_spec_string.

func ParamSpecUchar added in v0.0.7

func ParamSpecUchar(name string, nick string, blurb string, minimum uint8, maximum uint8, defaultValue uint8, flags ParamFlags) *ParamSpec

ParamSpecUchar is a wrapper around the C function g_param_spec_uchar.

func ParamSpecUint added in v0.0.7

func ParamSpecUint(name string, nick string, blurb string, minimum uint32, maximum uint32, defaultValue uint32, flags ParamFlags) *ParamSpec

ParamSpecUint is a wrapper around the C function g_param_spec_uint.

func ParamSpecUint64 added in v0.0.7

func ParamSpecUint64(name string, nick string, blurb string, minimum uint64, maximum uint64, defaultValue uint64, flags ParamFlags) *ParamSpec

ParamSpecUint64 is a wrapper around the C function g_param_spec_uint64.

func ParamSpecUlong added in v0.0.7

func ParamSpecUlong(name string, nick string, blurb string, minimum uint64, maximum uint64, defaultValue uint64, flags ParamFlags) *ParamSpec

ParamSpecUlong is a wrapper around the C function g_param_spec_ulong.

func ParamSpecUnichar_ added in v0.0.7

func ParamSpecUnichar_(name string, nick string, blurb string, defaultValue rune, flags ParamFlags) *ParamSpec

ParamSpecUnichar_ is a wrapper around the C function g_param_spec_unichar.

func ParamSpecValueArray_ added in v0.0.7

func ParamSpecValueArray_(name string, nick string, blurb string, elementSpec *ParamSpec, flags ParamFlags) *ParamSpec

ParamSpecValueArray_ is a wrapper around the C function g_param_spec_value_array.

func (*ParamSpec) Equals added in v0.0.7

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

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

func (*ParamSpec) GetBlurb added in v0.0.7

func (recv *ParamSpec) GetBlurb() string

GetBlurb is a wrapper around the C function g_param_spec_get_blurb.

func (*ParamSpec) GetName added in v0.0.7

func (recv *ParamSpec) GetName() string

GetName is a wrapper around the C function g_param_spec_get_name.

func (*ParamSpec) GetNick added in v0.0.7

func (recv *ParamSpec) GetNick() string

GetNick is a wrapper around the C function g_param_spec_get_nick.

func (*ParamSpec) GetQdata added in v0.0.9

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

GetQdata is a wrapper around the C function g_param_spec_get_qdata.

func (*ParamSpec) Ref added in v0.0.7

func (recv *ParamSpec) Ref() *ParamSpec

Ref is a wrapper around the C function g_param_spec_ref.

func (*ParamSpec) SetQdata added in v0.0.9

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

SetQdata is a wrapper around the C function g_param_spec_set_qdata.

func (*ParamSpec) Sink added in v0.0.7

func (recv *ParamSpec) Sink()

Sink is a wrapper around the C function g_param_spec_sink.

func (*ParamSpec) StealQdata added in v0.0.9

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

StealQdata is a wrapper around the C function g_param_spec_steal_qdata.

func (*ParamSpec) ToC added in v0.0.7

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

func (*ParamSpec) Unref added in v0.0.7

func (recv *ParamSpec) Unref()

Unref is a wrapper around the C function g_param_spec_unref.

type ParamSpecBoolean added in v0.0.7

type ParamSpecBoolean struct {

	// parent_instance : record
	DefaultValue bool
	// contains filtered or unexported fields
}

ParamSpecBoolean is a wrapper around the C record GParamSpecBoolean.

func ParamSpecBooleanNewFromC added in v0.0.7

func ParamSpecBooleanNewFromC(u unsafe.Pointer) *ParamSpecBoolean

func (*ParamSpecBoolean) Equals added in v0.0.7

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

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

func (*ParamSpecBoolean) ParamSpec added in v0.0.7

func (recv *ParamSpecBoolean) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecBoolean) ToC added in v0.0.7

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

type ParamSpecBoxed added in v0.0.7

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

ParamSpecBoxed is a wrapper around the C record GParamSpecBoxed.

func ParamSpecBoxedNewFromC added in v0.0.7

func ParamSpecBoxedNewFromC(u unsafe.Pointer) *ParamSpecBoxed

func (*ParamSpecBoxed) Equals added in v0.0.7

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

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

func (*ParamSpecBoxed) ParamSpec added in v0.0.7

func (recv *ParamSpecBoxed) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecBoxed) ToC added in v0.0.7

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

type ParamSpecChar added in v0.0.7

type ParamSpecChar struct {

	// parent_instance : record
	Minimum      int8
	Maximum      int8
	DefaultValue int8
	// contains filtered or unexported fields
}

ParamSpecChar is a wrapper around the C record GParamSpecChar.

func ParamSpecCharNewFromC added in v0.0.7

func ParamSpecCharNewFromC(u unsafe.Pointer) *ParamSpecChar

func (*ParamSpecChar) Equals added in v0.0.7

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

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

func (*ParamSpecChar) ParamSpec added in v0.0.7

func (recv *ParamSpecChar) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecChar) ToC added in v0.0.7

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

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) Equals added in v0.0.2

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

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

func (*ParamSpecClass) ToC

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

type ParamSpecDouble added in v0.0.7

type ParamSpecDouble struct {

	// parent_instance : record
	Minimum      float64
	Maximum      float64
	DefaultValue float64
	Epsilon      float64
	// contains filtered or unexported fields
}

ParamSpecDouble is a wrapper around the C record GParamSpecDouble.

func ParamSpecDoubleNewFromC added in v0.0.7

func ParamSpecDoubleNewFromC(u unsafe.Pointer) *ParamSpecDouble

func (*ParamSpecDouble) Equals added in v0.0.7

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

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

func (*ParamSpecDouble) ParamSpec added in v0.0.7

func (recv *ParamSpecDouble) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecDouble) ToC added in v0.0.7

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

type ParamSpecEnum added in v0.0.7

type ParamSpecEnum struct {

	// parent_instance : record
	// enum_class : record
	DefaultValue int32
	// contains filtered or unexported fields
}

ParamSpecEnum is a wrapper around the C record GParamSpecEnum.

func ParamSpecEnumNewFromC added in v0.0.7

func ParamSpecEnumNewFromC(u unsafe.Pointer) *ParamSpecEnum

func (*ParamSpecEnum) Equals added in v0.0.7

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

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

func (*ParamSpecEnum) ParamSpec added in v0.0.7

func (recv *ParamSpecEnum) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecEnum) ToC added in v0.0.7

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

type ParamSpecFlags added in v0.0.7

type ParamSpecFlags struct {

	// parent_instance : record
	// flags_class : record
	DefaultValue uint32
	// contains filtered or unexported fields
}

ParamSpecFlags is a wrapper around the C record GParamSpecFlags.

func ParamSpecFlagsNewFromC added in v0.0.7

func ParamSpecFlagsNewFromC(u unsafe.Pointer) *ParamSpecFlags

func (*ParamSpecFlags) Equals added in v0.0.7

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

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

func (*ParamSpecFlags) ParamSpec added in v0.0.7

func (recv *ParamSpecFlags) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecFlags) ToC added in v0.0.7

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

type ParamSpecFloat added in v0.0.7

type ParamSpecFloat struct {

	// parent_instance : record
	Minimum      float32
	Maximum      float32
	DefaultValue float32
	Epsilon      float32
	// contains filtered or unexported fields
}

ParamSpecFloat is a wrapper around the C record GParamSpecFloat.

func ParamSpecFloatNewFromC added in v0.0.7

func ParamSpecFloatNewFromC(u unsafe.Pointer) *ParamSpecFloat

func (*ParamSpecFloat) Equals added in v0.0.7

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

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

func (*ParamSpecFloat) ParamSpec added in v0.0.7

func (recv *ParamSpecFloat) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecFloat) ToC added in v0.0.7

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

type ParamSpecInt added in v0.0.7

type ParamSpecInt struct {

	// parent_instance : record
	Minimum      int32
	Maximum      int32
	DefaultValue int32
	// contains filtered or unexported fields
}

ParamSpecInt is a wrapper around the C record GParamSpecInt.

func ParamSpecIntNewFromC added in v0.0.7

func ParamSpecIntNewFromC(u unsafe.Pointer) *ParamSpecInt

func (*ParamSpecInt) Equals added in v0.0.7

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

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

func (*ParamSpecInt) ParamSpec added in v0.0.7

func (recv *ParamSpecInt) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecInt) ToC added in v0.0.7

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

type ParamSpecInt64 added in v0.0.7

type ParamSpecInt64 struct {

	// parent_instance : record
	Minimum      int64
	Maximum      int64
	DefaultValue int64
	// contains filtered or unexported fields
}

ParamSpecInt64 is a wrapper around the C record GParamSpecInt64.

func ParamSpecInt64NewFromC added in v0.0.7

func ParamSpecInt64NewFromC(u unsafe.Pointer) *ParamSpecInt64

func (*ParamSpecInt64) Equals added in v0.0.7

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

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

func (*ParamSpecInt64) ParamSpec added in v0.0.7

func (recv *ParamSpecInt64) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecInt64) ToC added in v0.0.7

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

type ParamSpecLong added in v0.0.7

type ParamSpecLong struct {

	// parent_instance : record
	Minimum      int64
	Maximum      int64
	DefaultValue int64
	// contains filtered or unexported fields
}

ParamSpecLong is a wrapper around the C record GParamSpecLong.

func ParamSpecLongNewFromC added in v0.0.7

func ParamSpecLongNewFromC(u unsafe.Pointer) *ParamSpecLong

func (*ParamSpecLong) Equals added in v0.0.7

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

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

func (*ParamSpecLong) ParamSpec added in v0.0.7

func (recv *ParamSpecLong) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecLong) ToC added in v0.0.7

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

type ParamSpecObject added in v0.0.7

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

ParamSpecObject is a wrapper around the C record GParamSpecObject.

func ParamSpecObjectNewFromC added in v0.0.7

func ParamSpecObjectNewFromC(u unsafe.Pointer) *ParamSpecObject

func (*ParamSpecObject) Equals added in v0.0.7

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

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

func (*ParamSpecObject) ParamSpec added in v0.0.7

func (recv *ParamSpecObject) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecObject) ToC added in v0.0.7

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

type ParamSpecParam added in v0.0.7

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

ParamSpecParam is a wrapper around the C record GParamSpecParam.

func ParamSpecParamNewFromC added in v0.0.7

func ParamSpecParamNewFromC(u unsafe.Pointer) *ParamSpecParam

func (*ParamSpecParam) Equals added in v0.0.7

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

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

func (*ParamSpecParam) ParamSpec added in v0.0.7

func (recv *ParamSpecParam) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecParam) ToC added in v0.0.7

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

type ParamSpecPointer added in v0.0.7

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

ParamSpecPointer is a wrapper around the C record GParamSpecPointer.

func ParamSpecPointerNewFromC added in v0.0.7

func ParamSpecPointerNewFromC(u unsafe.Pointer) *ParamSpecPointer

func (*ParamSpecPointer) Equals added in v0.0.7

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

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

func (*ParamSpecPointer) ParamSpec added in v0.0.7

func (recv *ParamSpecPointer) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecPointer) ToC added in v0.0.7

func (recv *ParamSpecPointer) 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) Equals added in v0.0.2

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

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

func (*ParamSpecPool) Insert added in v0.0.7

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

Insert is a wrapper around the C function g_param_spec_pool_insert.

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) Lookup added in v0.0.7

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

Lookup is a wrapper around the C function g_param_spec_pool_lookup.

func (*ParamSpecPool) Remove added in v0.0.7

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

Remove is a wrapper around the C function g_param_spec_pool_remove.

func (*ParamSpecPool) ToC

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

type ParamSpecString added in v0.0.7

type ParamSpecString struct {

	// parent_instance : record
	DefaultValue string
	CsetFirst    string
	CsetNth      string
	Substitutor  rune
	// contains filtered or unexported fields
}

ParamSpecString is a wrapper around the C record GParamSpecString.

func ParamSpecStringNewFromC added in v0.0.7

func ParamSpecStringNewFromC(u unsafe.Pointer) *ParamSpecString

func (*ParamSpecString) Equals added in v0.0.7

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

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

func (*ParamSpecString) ParamSpec added in v0.0.7

func (recv *ParamSpecString) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecString) ToC added in v0.0.7

func (recv *ParamSpecString) 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) Equals added in v0.0.2

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

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

func (*ParamSpecTypeInfo) ToC

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

type ParamSpecUChar added in v0.0.7

type ParamSpecUChar struct {

	// parent_instance : record
	Minimum      uint8
	Maximum      uint8
	DefaultValue uint8
	// contains filtered or unexported fields
}

ParamSpecUChar is a wrapper around the C record GParamSpecUChar.

func ParamSpecUCharNewFromC added in v0.0.7

func ParamSpecUCharNewFromC(u unsafe.Pointer) *ParamSpecUChar

func (*ParamSpecUChar) Equals added in v0.0.7

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

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

func (*ParamSpecUChar) ParamSpec added in v0.0.7

func (recv *ParamSpecUChar) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecUChar) ToC added in v0.0.7

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

type ParamSpecUInt added in v0.0.7

type ParamSpecUInt struct {

	// parent_instance : record
	Minimum      uint32
	Maximum      uint32
	DefaultValue uint32
	// contains filtered or unexported fields
}

ParamSpecUInt is a wrapper around the C record GParamSpecUInt.

func ParamSpecUIntNewFromC added in v0.0.7

func ParamSpecUIntNewFromC(u unsafe.Pointer) *ParamSpecUInt

func (*ParamSpecUInt) Equals added in v0.0.7

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

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

func (*ParamSpecUInt) ParamSpec added in v0.0.7

func (recv *ParamSpecUInt) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecUInt) ToC added in v0.0.7

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

type ParamSpecUInt64 added in v0.0.7

type ParamSpecUInt64 struct {

	// parent_instance : record
	Minimum      uint64
	Maximum      uint64
	DefaultValue uint64
	// contains filtered or unexported fields
}

ParamSpecUInt64 is a wrapper around the C record GParamSpecUInt64.

func ParamSpecUInt64NewFromC added in v0.0.7

func ParamSpecUInt64NewFromC(u unsafe.Pointer) *ParamSpecUInt64

func (*ParamSpecUInt64) Equals added in v0.0.7

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

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

func (*ParamSpecUInt64) ParamSpec added in v0.0.7

func (recv *ParamSpecUInt64) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecUInt64) ToC added in v0.0.7

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

type ParamSpecULong added in v0.0.7

type ParamSpecULong struct {

	// parent_instance : record
	Minimum      uint64
	Maximum      uint64
	DefaultValue uint64
	// contains filtered or unexported fields
}

ParamSpecULong is a wrapper around the C record GParamSpecULong.

func ParamSpecULongNewFromC added in v0.0.7

func ParamSpecULongNewFromC(u unsafe.Pointer) *ParamSpecULong

func (*ParamSpecULong) Equals added in v0.0.7

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

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

func (*ParamSpecULong) ParamSpec added in v0.0.7

func (recv *ParamSpecULong) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecULong) ToC added in v0.0.7

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

type ParamSpecUnichar added in v0.0.7

type ParamSpecUnichar struct {

	// parent_instance : record
	DefaultValue rune
	// contains filtered or unexported fields
}

ParamSpecUnichar is a wrapper around the C record GParamSpecUnichar.

func ParamSpecUnicharNewFromC added in v0.0.7

func ParamSpecUnicharNewFromC(u unsafe.Pointer) *ParamSpecUnichar

func (*ParamSpecUnichar) Equals added in v0.0.7

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

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

func (*ParamSpecUnichar) ParamSpec added in v0.0.7

func (recv *ParamSpecUnichar) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecUnichar) ToC added in v0.0.7

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

type ParamSpecValueArray added in v0.0.7

type ParamSpecValueArray struct {

	// parent_instance : record
	// element_spec : record
	FixedNElements uint32
	// contains filtered or unexported fields
}

ParamSpecValueArray is a wrapper around the C record GParamSpecValueArray.

func ParamSpecValueArrayNewFromC added in v0.0.7

func ParamSpecValueArrayNewFromC(u unsafe.Pointer) *ParamSpecValueArray

func (*ParamSpecValueArray) Equals added in v0.0.7

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

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

func (*ParamSpecValueArray) ParamSpec added in v0.0.7

func (recv *ParamSpecValueArray) ParamSpec() *ParamSpec

ParamSpec upcasts to *ParamSpec

func (*ParamSpecValueArray) ToC added in v0.0.7

func (recv *ParamSpecValueArray) 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) Equals added in v0.0.2

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

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

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 *Object) *SignalInvocationHint

SignalGetInvocationHint is a wrapper around the C function g_signal_get_invocation_hint.

func SignalInvocationHintNewFromC

func SignalInvocationHintNewFromC(u unsafe.Pointer) *SignalInvocationHint

func (*SignalInvocationHint) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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 TypeClassPeek

func TypeClassPeek(type_ Type) TypeClass

TypeClassPeek is a wrapper around the C function g_type_class_peek.

func TypeClassRef

func TypeClassRef(type_ Type) TypeClass

TypeClassRef is a wrapper around the C function g_type_class_ref.

func (*TypeClass) Equals added in v0.0.2

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

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

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() TypeClass

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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 TypeInterfacePeek

func TypeInterfacePeek(instanceClass *TypeClass, ifaceType Type) TypeInterface

TypeInterfacePeek is a wrapper around the C function g_type_interface_peek.

func (*TypeInterface) Equals added in v0.0.2

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

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

func (*TypeInterface) PeekParent

func (recv *TypeInterface) PeekParent() TypeInterface

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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() Object

DupObject is a wrapper around the C function g_value_dup_object.

func (*Value) DupParam added in v0.0.7

func (recv *Value) DupParam() *ParamSpec

DupParam is a wrapper around the C function g_value_dup_param.

func (*Value) DupString

func (recv *Value) DupString() string

DupString is a wrapper around the C function g_value_dup_string.

func (*Value) Equals added in v0.0.2

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

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

func (*Value) 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() Object

GetObject is a wrapper around the C function g_value_get_object.

func (*Value) GetParam added in v0.0.7

func (recv *Value) GetParam() *ParamSpec

GetParam is a wrapper around the C function g_value_get_param.

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 *Object)

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) SetParam added in v0.0.7

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

SetParam is a wrapper around the C function g_value_set_param.

func (*Value) SetParamTakeOwnership added in v0.0.7

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

SetParamTakeOwnership is a wrapper around the C function g_value_set_param_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) Equals added in v0.0.2

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

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

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) Equals added in v0.0.2

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

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

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