gi

package
v0.0.0-...-d16d342 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TypeTagNTypes = "NOT IMPLEMENTED"

Variables

Functions

func RepositoryDump

func RepositoryDump(input_filename string, output_filename string) (r bool, err error)

func RepositoryErrorQuark

func RepositoryErrorQuark() (r uint32)

func RepositoryGetOptionGroup

func RepositoryGetOptionGroup() (r *g.OptionGroup)

Types

type ArgInfo

type ArgInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*ArgInfo) AsGIArgInfo

func (obj *ArgInfo) AsGIArgInfo() *ArgInfo

func (*ArgInfo) GetClosureIndex

func (s *ArgInfo) GetClosureIndex() (out_closure_index uint32, r bool)

func (*ArgInfo) GetDestroyIndex

func (s *ArgInfo) GetDestroyIndex() (out_destroy_index uint32, r bool)

func (*ArgInfo) GetDirection

func (s *ArgInfo) GetDirection() (r Direction)

func (*ArgInfo) GetOwnershipTransfer

func (s *ArgInfo) GetOwnershipTransfer() (r Transfer)

func (*ArgInfo) GetScope

func (s *ArgInfo) GetScope() (r ScopeType)

func (*ArgInfo) GetTypeInfo

func (s *ArgInfo) GetTypeInfo() (r *TypeInfo)

func (*ArgInfo) IsCallerAllocates

func (s *ArgInfo) IsCallerAllocates() (r bool)

func (*ArgInfo) IsOptional

func (s *ArgInfo) IsOptional() (r bool)

func (*ArgInfo) IsReturnValue

func (s *ArgInfo) IsReturnValue() (r bool)

func (*ArgInfo) IsSkip

func (s *ArgInfo) IsSkip() (r bool)

func (*ArgInfo) LoadTypeInfo

func (s *ArgInfo) LoadTypeInfo() (_type TypeInfo)

func (*ArgInfo) MayBeNull

func (s *ArgInfo) MayBeNull() (r bool)

type Argument

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

type ArrayType

type ArrayType int64
const (
	ArrayTypeC         ArrayType = 0
	ArrayTypeArray     ArrayType = 1
	ArrayTypePtrArray  ArrayType = 2
	ArrayTypeByteArray ArrayType = 3
)

func (ArrayType) String

func (v ArrayType) String() string

type AttributeIter

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

type BaseInfo

type BaseInfo struct {
	g.TypeInstance
	// contains filtered or unexported fields
}

func (*BaseInfo) AsGIBaseInfo

func (obj *BaseInfo) AsGIBaseInfo() *BaseInfo

func (*BaseInfo) Clear

func (s *BaseInfo) Clear()

func (*BaseInfo) Equal

func (s *BaseInfo) Equal(info2 *BaseInfo) (r bool)

func (*BaseInfo) GetAttribute

func (s *BaseInfo) GetAttribute(name string) (r string)

func (*BaseInfo) GetContainer

func (s *BaseInfo) GetContainer() (r *BaseInfo)

func (*BaseInfo) GetName

func (s *BaseInfo) GetName() (r string)

func (*BaseInfo) GetNamespace

func (s *BaseInfo) GetNamespace() (r string)

func (*BaseInfo) GetTypelib

func (s *BaseInfo) GetTypelib() (r *Typelib)

func (*BaseInfo) IsDeprecated

func (s *BaseInfo) IsDeprecated() (r bool)

func (*BaseInfo) IterateAttributes

func (s *BaseInfo) IterateAttributes(iterator *AttributeIter) (name string, value string, r bool)

func (*BaseInfo) Ref

func (s *BaseInfo) Ref() (r *BaseInfo)

func (*BaseInfo) Unref

func (s *BaseInfo) Unref()

type BaseInfoStack

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

type CallableInfo

type CallableInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*CallableInfo) AsGICallableInfo

func (obj *CallableInfo) AsGICallableInfo() *CallableInfo

func (*CallableInfo) CanThrowGerror

func (s *CallableInfo) CanThrowGerror() (r bool)

func (*CallableInfo) GetArg

func (s *CallableInfo) GetArg(n uint32) (r *ArgInfo)

func (*CallableInfo) GetArgs

func (info *CallableInfo) GetArgs() iter.Seq2[uint32, *ArgInfo]

func (*CallableInfo) GetAsyncFunction

func (s *CallableInfo) GetAsyncFunction() (r *CallableInfo)

func (*CallableInfo) GetCallerOwns

func (s *CallableInfo) GetCallerOwns() (r Transfer)

func (*CallableInfo) GetFinishFunction

func (s *CallableInfo) GetFinishFunction() (r *CallableInfo)

func (*CallableInfo) GetInstanceOwnershipTransfer

func (s *CallableInfo) GetInstanceOwnershipTransfer() (r Transfer)

func (*CallableInfo) GetNArgs

func (s *CallableInfo) GetNArgs() (r uint32)

func (*CallableInfo) GetReturnAttribute

func (s *CallableInfo) GetReturnAttribute(name string) (r string)

func (*CallableInfo) GetReturnType

func (s *CallableInfo) GetReturnType() (r *TypeInfo)

func (*CallableInfo) GetSyncFunction

func (s *CallableInfo) GetSyncFunction() (r *CallableInfo)

func (*CallableInfo) Invoke

func (s *CallableInfo) Invoke(function unsafe.Pointer, in_args []Argument, n_in_args uint64, out_args []Argument, n_out_args uint64) (return_value Argument, r bool, err error)

func (*CallableInfo) IsAsync

func (s *CallableInfo) IsAsync() (r bool)

func (*CallableInfo) IsMethod

func (s *CallableInfo) IsMethod() (r bool)

func (*CallableInfo) IterateReturnAttributes

func (s *CallableInfo) IterateReturnAttributes(iterator *AttributeIter) (name string, value string, r bool)

func (*CallableInfo) LoadArg

func (s *CallableInfo) LoadArg(n uint32) (arg ArgInfo)

func (*CallableInfo) LoadReturnType

func (s *CallableInfo) LoadReturnType() (_type TypeInfo)

func (*CallableInfo) MayReturnNull

func (s *CallableInfo) MayReturnNull() (r bool)

func (*CallableInfo) SkipReturn

func (s *CallableInfo) SkipReturn() (r bool)

type CallbackInfo

type CallbackInfo struct {
	CallableInfo
	// contains filtered or unexported fields
}

func (*CallbackInfo) AsGICallbackInfo

func (obj *CallbackInfo) AsGICallbackInfo() *CallbackInfo

type ConstantInfo

type ConstantInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*ConstantInfo) AsGIConstantInfo

func (obj *ConstantInfo) AsGIConstantInfo() *ConstantInfo

func (*ConstantInfo) GetTypeInfo

func (s *ConstantInfo) GetTypeInfo() (r *TypeInfo)

type Direction

type Direction int64
const (
	DirectionIn    Direction = 0
	DirectionOut   Direction = 1
	DirectionInout Direction = 2
)

func (Direction) String

func (v Direction) String() string

type EnumInfo

type EnumInfo struct {
	RegisteredTypeInfo
	// contains filtered or unexported fields
}

func (*EnumInfo) AsGIEnumInfo

func (obj *EnumInfo) AsGIEnumInfo() *EnumInfo

func (*EnumInfo) GetErrorDomain

func (s *EnumInfo) GetErrorDomain() (r string)

func (*EnumInfo) GetMethod

func (s *EnumInfo) GetMethod(n uint32) (r *FunctionInfo)

func (*EnumInfo) GetNMethods

func (s *EnumInfo) GetNMethods() (r uint32)

func (*EnumInfo) GetNValues

func (s *EnumInfo) GetNValues() (r uint32)

func (*EnumInfo) GetStorageType

func (s *EnumInfo) GetStorageType() (r TypeTag)

func (*EnumInfo) GetValue

func (s *EnumInfo) GetValue(n uint32) (r *ValueInfo)

func (*EnumInfo) GetValues

func (info *EnumInfo) GetValues() iter.Seq2[uint32, *ValueInfo]

type FieldInfo

type FieldInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*FieldInfo) AsGIFieldInfo

func (obj *FieldInfo) AsGIFieldInfo() *FieldInfo

func (*FieldInfo) GetFlags

func (s *FieldInfo) GetFlags() (r FieldInfoFlags)

func (*FieldInfo) GetOffset

func (s *FieldInfo) GetOffset() (r uint64)

func (*FieldInfo) GetSize

func (s *FieldInfo) GetSize() (r uint64)

func (*FieldInfo) GetTypeInfo

func (s *FieldInfo) GetTypeInfo() (r *TypeInfo)

type FieldInfoFlags

type FieldInfoFlags int64
const (
	FieldInfoFlagsReadable FieldInfoFlags = 1
	FieldInfoFlagsWritable FieldInfoFlags = 2
)

func (FieldInfoFlags) String

func (v FieldInfoFlags) String() string

type FlagsInfo

type FlagsInfo struct {
	EnumInfo
	// contains filtered or unexported fields
}

func (*FlagsInfo) AsGIFlagsInfo

func (obj *FlagsInfo) AsGIFlagsInfo() *FlagsInfo

type FunctionInfo

type FunctionInfo struct {
	CallableInfo
	// contains filtered or unexported fields
}

func (*FunctionInfo) AsGIFunctionInfo

func (obj *FunctionInfo) AsGIFunctionInfo() *FunctionInfo

func (*FunctionInfo) GetFlags

func (s *FunctionInfo) GetFlags() (r FunctionInfoFlags)

func (*FunctionInfo) GetProperty

func (s *FunctionInfo) GetProperty() (r *PropertyInfo)

func (*FunctionInfo) GetSymbol

func (s *FunctionInfo) GetSymbol() (r string)

func (*FunctionInfo) GetVfunc

func (s *FunctionInfo) GetVfunc() (r *VFuncInfo)

type FunctionInfoFlags

type FunctionInfoFlags int64
const (
	FunctionInfoFlagsIsMethod      FunctionInfoFlags = 1
	FunctionInfoFlagsIsConstructor FunctionInfoFlags = 2
	FunctionInfoFlagsIsGetter      FunctionInfoFlags = 4
	FunctionInfoFlagsIsSetter      FunctionInfoFlags = 8
	FunctionInfoFlagsWrapsVfunc    FunctionInfoFlags = 16
	FunctionInfoFlagsIsAsync       FunctionInfoFlags = 32
)

func (FunctionInfoFlags) String

func (v FunctionInfoFlags) String() string

type InterfaceInfo

type InterfaceInfo struct {
	RegisteredTypeInfo
	// contains filtered or unexported fields
}

func (*InterfaceInfo) AsGIInterfaceInfo

func (obj *InterfaceInfo) AsGIInterfaceInfo() *InterfaceInfo

func (*InterfaceInfo) FindMethod

func (s *InterfaceInfo) FindMethod(name string) (r *FunctionInfo)

func (*InterfaceInfo) FindSignal

func (s *InterfaceInfo) FindSignal(name string) (r *SignalInfo)

func (*InterfaceInfo) FindVfunc

func (s *InterfaceInfo) FindVfunc(name string) (r *VFuncInfo)

func (*InterfaceInfo) GetConstant

func (s *InterfaceInfo) GetConstant(n uint32) (r *ConstantInfo)

func (*InterfaceInfo) GetIfaceStruct

func (s *InterfaceInfo) GetIfaceStruct() (r *StructInfo)

func (*InterfaceInfo) GetMethod

func (s *InterfaceInfo) GetMethod(n uint32) (r *FunctionInfo)

func (*InterfaceInfo) GetNConstants

func (s *InterfaceInfo) GetNConstants() (r uint32)

func (*InterfaceInfo) GetNMethods

func (s *InterfaceInfo) GetNMethods() (r uint32)

func (*InterfaceInfo) GetNPrerequisites

func (s *InterfaceInfo) GetNPrerequisites() (r uint32)

func (*InterfaceInfo) GetNProperties

func (s *InterfaceInfo) GetNProperties() (r uint32)

func (*InterfaceInfo) GetNSignals

func (s *InterfaceInfo) GetNSignals() (r uint32)

func (*InterfaceInfo) GetNVfuncs

func (s *InterfaceInfo) GetNVfuncs() (r uint32)

func (*InterfaceInfo) GetPrerequisite

func (s *InterfaceInfo) GetPrerequisite(n uint32) (r *BaseInfo)

func (*InterfaceInfo) GetProperty

func (s *InterfaceInfo) GetProperty(n uint32) (r *PropertyInfo)

func (*InterfaceInfo) GetSignal

func (s *InterfaceInfo) GetSignal(n uint32) (r *SignalInfo)

func (*InterfaceInfo) GetVfunc

func (s *InterfaceInfo) GetVfunc(n uint32) (r *VFuncInfo)

type InvokeError

type InvokeError int64
const (
	InvokeErrorFailed           InvokeError = 0
	InvokeErrorSymbolNotFound   InvokeError = 1
	InvokeErrorArgumentMismatch InvokeError = 2
)

func (InvokeError) String

func (v InvokeError) String() string

type ObjectInfo

type ObjectInfo struct {
	RegisteredTypeInfo
	// contains filtered or unexported fields
}

func (*ObjectInfo) AsGIObjectInfo

func (obj *ObjectInfo) AsGIObjectInfo() *ObjectInfo

func (*ObjectInfo) FindMethod

func (s *ObjectInfo) FindMethod(name string) (r *FunctionInfo)

func (*ObjectInfo) FindMethodUsingInterfaces

func (s *ObjectInfo) FindMethodUsingInterfaces(name string) (declarer *BaseInfo, r *FunctionInfo)

func (*ObjectInfo) FindSignal

func (s *ObjectInfo) FindSignal(name string) (r *SignalInfo)

func (*ObjectInfo) FindVfunc

func (s *ObjectInfo) FindVfunc(name string) (r *VFuncInfo)

func (*ObjectInfo) FindVfuncUsingInterfaces

func (s *ObjectInfo) FindVfuncUsingInterfaces(name string) (declarer *BaseInfo, r *VFuncInfo)

func (*ObjectInfo) GetAbstract

func (s *ObjectInfo) GetAbstract() (r bool)

func (*ObjectInfo) GetClassStruct

func (s *ObjectInfo) GetClassStruct() (r *StructInfo)

func (*ObjectInfo) GetConstant

func (s *ObjectInfo) GetConstant(n uint32) (r *ConstantInfo)

func (*ObjectInfo) GetField

func (s *ObjectInfo) GetField(n uint32) (r *FieldInfo)

func (*ObjectInfo) GetFinal

func (s *ObjectInfo) GetFinal() (r bool)

func (*ObjectInfo) GetFundamental

func (s *ObjectInfo) GetFundamental() (r bool)

func (*ObjectInfo) GetGetValueFunctionName

func (s *ObjectInfo) GetGetValueFunctionName() (r string)

func (*ObjectInfo) GetInterface

func (s *ObjectInfo) GetInterface(n uint32) (r *InterfaceInfo)

func (*ObjectInfo) GetMethod

func (s *ObjectInfo) GetMethod(n uint32) (r *FunctionInfo)

func (*ObjectInfo) GetMethods

func (info *ObjectInfo) GetMethods() iter.Seq2[uint32, *FunctionInfo]

func (*ObjectInfo) GetNConstants

func (s *ObjectInfo) GetNConstants() (r uint32)

func (*ObjectInfo) GetNFields

func (s *ObjectInfo) GetNFields() (r uint32)

func (*ObjectInfo) GetNInterfaces

func (s *ObjectInfo) GetNInterfaces() (r uint32)

func (*ObjectInfo) GetNMethods

func (s *ObjectInfo) GetNMethods() (r uint32)

func (*ObjectInfo) GetNProperties

func (s *ObjectInfo) GetNProperties() (r uint32)

func (*ObjectInfo) GetNSignals

func (s *ObjectInfo) GetNSignals() (r uint32)

func (*ObjectInfo) GetNVfuncs

func (s *ObjectInfo) GetNVfuncs() (r uint32)

func (*ObjectInfo) GetParent

func (s *ObjectInfo) GetParent() (r *ObjectInfo)

func (*ObjectInfo) GetProperty

func (s *ObjectInfo) GetProperty(n uint32) (r *PropertyInfo)

func (*ObjectInfo) GetRefFunctionName

func (s *ObjectInfo) GetRefFunctionName() (r string)

func (*ObjectInfo) GetSetValueFunctionName

func (s *ObjectInfo) GetSetValueFunctionName() (r string)

func (*ObjectInfo) GetSignal

func (s *ObjectInfo) GetSignal(n uint32) (r *SignalInfo)

func (*ObjectInfo) GetTypeInitFunctionName

func (s *ObjectInfo) GetTypeInitFunctionName() (r string)

func (*ObjectInfo) GetTypeName

func (s *ObjectInfo) GetTypeName() (r string)

func (*ObjectInfo) GetUnrefFunctionName

func (s *ObjectInfo) GetUnrefFunctionName() (r string)

func (*ObjectInfo) GetVfunc

func (s *ObjectInfo) GetVfunc(n uint32) (r *VFuncInfo)

type PropertyInfo

type PropertyInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*PropertyInfo) AsGIPropertyInfo

func (obj *PropertyInfo) AsGIPropertyInfo() *PropertyInfo

func (*PropertyInfo) GetFlags

func (s *PropertyInfo) GetFlags() (r g.ParamFlags)

func (*PropertyInfo) GetGetter

func (s *PropertyInfo) GetGetter() (r *FunctionInfo)

func (*PropertyInfo) GetOwnershipTransfer

func (s *PropertyInfo) GetOwnershipTransfer() (r Transfer)

func (*PropertyInfo) GetSetter

func (s *PropertyInfo) GetSetter() (r *FunctionInfo)

func (*PropertyInfo) GetTypeInfo

func (s *PropertyInfo) GetTypeInfo() (r *TypeInfo)

type RegisteredTypeInfo

type RegisteredTypeInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*RegisteredTypeInfo) AsGIRegisteredTypeInfo

func (obj *RegisteredTypeInfo) AsGIRegisteredTypeInfo() *RegisteredTypeInfo

func (*RegisteredTypeInfo) GetGType

func (s *RegisteredTypeInfo) GetGType() (r g.Type[g.TypeInstance])

func (*RegisteredTypeInfo) GetTypeInitFunctionName

func (s *RegisteredTypeInfo) GetTypeInitFunctionName() (r string)

func (*RegisteredTypeInfo) GetTypeName

func (s *RegisteredTypeInfo) GetTypeName() (r string)

func (*RegisteredTypeInfo) IsBoxed

func (s *RegisteredTypeInfo) IsBoxed() (r bool)

type Repository

type Repository struct {
	g.Object
	// contains filtered or unexported fields
}

func RepositoryNew

func RepositoryNew() (r *Repository)

func (*Repository) AsGIRepository

func (obj *Repository) AsGIRepository() *Repository

func (*Repository) EnumerateVersions

func (s *Repository) EnumerateVersions(namespace_ string) (n_versions_out uint64, r []string)

func (*Repository) FindByErrorDomain

func (s *Repository) FindByErrorDomain(domain uint32) (r *EnumInfo)

func (*Repository) FindByGtype

func (s *Repository) FindByGtype(gtype g.Type[g.TypeInstance]) (r *BaseInfo)

func (*Repository) FindByName

func (s *Repository) FindByName(namespace_ string, name string) (r *BaseInfo)

func (*Repository) GetCPrefix

func (s *Repository) GetCPrefix(namespace_ string) (r string)

func (*Repository) GetDependencies

func (s *Repository) GetDependencies(namespace_ string) (n_dependencies_out uint64, r []string)

func (*Repository) GetImmediateDependencies

func (s *Repository) GetImmediateDependencies(namespace_ string) (n_dependencies_out uint64, r []string)

func (*Repository) GetInfo

func (s *Repository) GetInfo(namespace_ string, idx uint32) (r *BaseInfo)

func (*Repository) GetInfos

func (r *Repository) GetInfos(namespace string) iter.Seq2[uint32, *BaseInfo]

func (*Repository) GetLibraryPath

func (s *Repository) GetLibraryPath() (n_paths_out uint64, r []string)

func (*Repository) GetLoadedNamespaces

func (s *Repository) GetLoadedNamespaces() (n_namespaces_out uint64, r []string)

func (*Repository) GetNInfos

func (s *Repository) GetNInfos(namespace_ string) (r uint32)

func (*Repository) GetObjectGtypeInterfaces

func (s *Repository) GetObjectGtypeInterfaces(gtype g.Type[g.TypeInstance]) (n_interfaces_out uint64, interfaces_out []*InterfaceInfo)

func (*Repository) GetSearchPath

func (s *Repository) GetSearchPath() (n_paths_out uint64, r []string)

func (*Repository) GetSharedLibraries

func (s *Repository) GetSharedLibraries(namespace_ string) (out_n_elements uint64, r []string)

func (*Repository) GetTypelibPath

func (s *Repository) GetTypelibPath(namespace_ string) (r string)

func (*Repository) GetVersion

func (s *Repository) GetVersion(namespace_ string) (r string)

func (*Repository) IsRegistered

func (s *Repository) IsRegistered(namespace_ string, version string) (r bool)

func (*Repository) LoadTypelib

func (s *Repository) LoadTypelib(typelib *Typelib, flags RepositoryLoadFlags) (r string, err error)

func (*Repository) PrependLibraryPath

func (s *Repository) PrependLibraryPath(directory string)

func (*Repository) PrependSearchPath

func (s *Repository) PrependSearchPath(directory string)

func (*Repository) Require

func (s *Repository) Require(namespace_ string, version string, flags RepositoryLoadFlags) (r *Typelib, err error)

func (*Repository) RequirePrivate

func (s *Repository) RequirePrivate(typelib_dir string, namespace_ string, version string, flags RepositoryLoadFlags) (r *Typelib, err error)

type RepositoryError

type RepositoryError int64
const (
	RepositoryErrorTypelibNotFound          RepositoryError = 0
	RepositoryErrorNamespaceMismatch        RepositoryError = 1
	RepositoryErrorNamespaceVersionConflict RepositoryError = 2
	RepositoryErrorLibraryNotFound          RepositoryError = 3
)

func (RepositoryError) String

func (v RepositoryError) String() string

type RepositoryLoadFlags

type RepositoryLoadFlags int64
const (
	RepositoryLoadFlagsNone RepositoryLoadFlags = 0
	RepositoryLoadFlagsLazy RepositoryLoadFlags = 1
)

func (RepositoryLoadFlags) String

func (v RepositoryLoadFlags) String() string

type ScopeType

type ScopeType int64
const (
	ScopeTypeInvalid  ScopeType = 0
	ScopeTypeCall     ScopeType = 1
	ScopeTypeAsync    ScopeType = 2
	ScopeTypeNotified ScopeType = 3
	ScopeTypeForever  ScopeType = 4
)

func (ScopeType) String

func (v ScopeType) String() string

type SignalInfo

type SignalInfo struct {
	CallableInfo
	// contains filtered or unexported fields
}

func (*SignalInfo) AsGISignalInfo

func (obj *SignalInfo) AsGISignalInfo() *SignalInfo

func (*SignalInfo) GetClassClosure

func (s *SignalInfo) GetClassClosure() (r *VFuncInfo)

func (*SignalInfo) GetFlags

func (s *SignalInfo) GetFlags() (r g.SignalFlags)

func (*SignalInfo) TrueStopsEmit

func (s *SignalInfo) TrueStopsEmit() (r bool)

type StructInfo

type StructInfo struct {
	RegisteredTypeInfo
	// contains filtered or unexported fields
}

func (*StructInfo) AsGIStructInfo

func (obj *StructInfo) AsGIStructInfo() *StructInfo

func (*StructInfo) FindField

func (s *StructInfo) FindField(name string) (r *FieldInfo)

func (*StructInfo) FindMethod

func (s *StructInfo) FindMethod(name string) (r *FunctionInfo)

func (*StructInfo) GetAlignment

func (s *StructInfo) GetAlignment() (r uint64)

func (*StructInfo) GetCopyFunctionName

func (s *StructInfo) GetCopyFunctionName() (r string)

func (*StructInfo) GetField

func (s *StructInfo) GetField(n uint32) (r *FieldInfo)

func (*StructInfo) GetFields

func (info *StructInfo) GetFields() iter.Seq2[uint32, *FieldInfo]

func (*StructInfo) GetFreeFunctionName

func (s *StructInfo) GetFreeFunctionName() (r string)

func (*StructInfo) GetMethod

func (s *StructInfo) GetMethod(n uint32) (r *FunctionInfo)

func (*StructInfo) GetMethods

func (info *StructInfo) GetMethods() iter.Seq2[uint32, *FunctionInfo]

func (*StructInfo) GetNFields

func (s *StructInfo) GetNFields() (r uint32)

func (*StructInfo) GetNMethods

func (s *StructInfo) GetNMethods() (r uint32)

func (*StructInfo) GetSize

func (s *StructInfo) GetSize() (r uint64)

func (*StructInfo) IsForeign

func (s *StructInfo) IsForeign() (r bool)

func (*StructInfo) IsGtypeStruct

func (s *StructInfo) IsGtypeStruct() (r bool)

type Transfer

type Transfer int64
const (
	TransferNothing    Transfer = 0
	TransferContainer  Transfer = 1
	TransferEverything Transfer = 2
)

func (Transfer) String

func (v Transfer) String() string

type TypeInfo

type TypeInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*TypeInfo) ArgumentFromHashPointer

func (s *TypeInfo) ArgumentFromHashPointer(hash_pointer unsafe.Pointer) (arg Argument)

func (*TypeInfo) AsGITypeInfo

func (obj *TypeInfo) AsGITypeInfo() *TypeInfo

func (*TypeInfo) GetArrayFixedSize

func (s *TypeInfo) GetArrayFixedSize() (out_size uint64, r bool)

func (*TypeInfo) GetArrayLengthIndex

func (s *TypeInfo) GetArrayLengthIndex() (out_length_index uint32, r bool)

func (*TypeInfo) GetArrayType

func (s *TypeInfo) GetArrayType() (r ArrayType)

func (*TypeInfo) GetInterface

func (s *TypeInfo) GetInterface() (r *BaseInfo)

func (*TypeInfo) GetParamType

func (s *TypeInfo) GetParamType(n uint32) (r *TypeInfo)

func (*TypeInfo) GetStorageType

func (s *TypeInfo) GetStorageType() (r TypeTag)

func (*TypeInfo) GetTag

func (s *TypeInfo) GetTag() (r TypeTag)

func (*TypeInfo) HashPointerFromArgument

func (s *TypeInfo) HashPointerFromArgument(arg *Argument)

func (*TypeInfo) IsPointer

func (s *TypeInfo) IsPointer() (r bool)

func (*TypeInfo) IsZeroTerminated

func (s *TypeInfo) IsZeroTerminated() (r bool)

type TypeTag

type TypeTag int64
const (
	TypeTagVoid      TypeTag = 0
	TypeTagBoolean   TypeTag = 1
	TypeTagInt8      TypeTag = 2
	TypeTagUint8     TypeTag = 3
	TypeTagInt16     TypeTag = 4
	TypeTagUint16    TypeTag = 5
	TypeTagInt32     TypeTag = 6
	TypeTagUint32    TypeTag = 7
	TypeTagInt64     TypeTag = 8
	TypeTagUint64    TypeTag = 9
	TypeTagFloat     TypeTag = 10
	TypeTagDouble    TypeTag = 11
	TypeTagGtype     TypeTag = 12
	TypeTagUtf8      TypeTag = 13
	TypeTagFilename  TypeTag = 14
	TypeTagArray     TypeTag = 15
	TypeTagInterface TypeTag = 16
	TypeTagGlist     TypeTag = 17
	TypeTagGslist    TypeTag = 18
	TypeTagGhash     TypeTag = 19
	TypeTagError     TypeTag = 20
	TypeTagUnichar   TypeTag = 21
)

func (TypeTag) String

func (v TypeTag) String() string

type Typelib

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

func TypelibNewFromBytes

func TypelibNewFromBytes(bytes *g.Bytes) (r *Typelib, err error)

func (*Typelib) GetNamespace

func (s *Typelib) GetNamespace() (r string)

func (*Typelib) Ref

func (s *Typelib) Ref() (r *Typelib)

func (*Typelib) Symbol

func (s *Typelib) Symbol(symbol_name string) (symbol unsafe.Pointer, r bool)

func (*Typelib) Unref

func (s *Typelib) Unref()

type UnionInfo

type UnionInfo struct {
	RegisteredTypeInfo
	// contains filtered or unexported fields
}

func (*UnionInfo) AsGIUnionInfo

func (obj *UnionInfo) AsGIUnionInfo() *UnionInfo

func (*UnionInfo) FindMethod

func (s *UnionInfo) FindMethod(name string) (r *FunctionInfo)

func (*UnionInfo) GetAlignment

func (s *UnionInfo) GetAlignment() (r uint64)

func (*UnionInfo) GetCopyFunctionName

func (s *UnionInfo) GetCopyFunctionName() (r string)

func (*UnionInfo) GetDiscriminator

func (s *UnionInfo) GetDiscriminator(n uint64) (r *ConstantInfo)

func (*UnionInfo) GetDiscriminatorOffset

func (s *UnionInfo) GetDiscriminatorOffset() (out_offset uint64, r bool)

func (*UnionInfo) GetDiscriminatorType

func (s *UnionInfo) GetDiscriminatorType() (r *TypeInfo)

func (*UnionInfo) GetField

func (s *UnionInfo) GetField(n uint32) (r *FieldInfo)

func (*UnionInfo) GetFreeFunctionName

func (s *UnionInfo) GetFreeFunctionName() (r string)

func (*UnionInfo) GetMethod

func (s *UnionInfo) GetMethod(n uint32) (r *FunctionInfo)

func (*UnionInfo) GetNFields

func (s *UnionInfo) GetNFields() (r uint32)

func (*UnionInfo) GetNMethods

func (s *UnionInfo) GetNMethods() (r uint32)

func (*UnionInfo) GetSize

func (s *UnionInfo) GetSize() (r uint64)

func (*UnionInfo) IsDiscriminated

func (s *UnionInfo) IsDiscriminated() (r bool)

type UnresolvedInfo

type UnresolvedInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*UnresolvedInfo) AsGIUnresolvedInfo

func (obj *UnresolvedInfo) AsGIUnresolvedInfo() *UnresolvedInfo

type VFuncInfo

type VFuncInfo struct {
	CallableInfo
	// contains filtered or unexported fields
}

func (*VFuncInfo) AsGIVFuncInfo

func (obj *VFuncInfo) AsGIVFuncInfo() *VFuncInfo

func (*VFuncInfo) GetAddress

func (s *VFuncInfo) GetAddress(implementor_gtype g.Type[g.TypeInstance]) (err error)

func (*VFuncInfo) GetFlags

func (s *VFuncInfo) GetFlags() (r VFuncInfoFlags)

func (*VFuncInfo) GetInvoker

func (s *VFuncInfo) GetInvoker() (r *FunctionInfo)

func (*VFuncInfo) GetOffset

func (s *VFuncInfo) GetOffset() (r uint64)

func (*VFuncInfo) GetSignal

func (s *VFuncInfo) GetSignal() (r *SignalInfo)

type VFuncInfoFlags

type VFuncInfoFlags int64
const (
	VFuncInfoFlagsChainUp     VFuncInfoFlags = 1
	VFuncInfoFlagsOverride    VFuncInfoFlags = 2
	VFuncInfoFlagsNotOverride VFuncInfoFlags = 4
)

func (VFuncInfoFlags) String

func (v VFuncInfoFlags) String() string

type ValueInfo

type ValueInfo struct {
	BaseInfo
	// contains filtered or unexported fields
}

func (*ValueInfo) AsGIValueInfo

func (obj *ValueInfo) AsGIValueInfo() *ValueInfo

func (*ValueInfo) GetValue

func (s *ValueInfo) GetValue() (r int64)

Jump to

Keyboard shortcuts

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