Documentation
¶
Index ¶
- Constants
- Variables
- func RepositoryDump(input_filename string, output_filename string) (r bool, err error)
- func RepositoryErrorQuark() (r uint32)
- func RepositoryGetOptionGroup() (r *g.OptionGroup)
- type ArgInfo
- func (obj *ArgInfo) AsGIArgInfo() *ArgInfo
- func (s *ArgInfo) GetClosureIndex() (out_closure_index uint32, r bool)
- func (s *ArgInfo) GetDestroyIndex() (out_destroy_index uint32, r bool)
- func (s *ArgInfo) GetDirection() (r Direction)
- func (s *ArgInfo) GetOwnershipTransfer() (r Transfer)
- func (s *ArgInfo) GetScope() (r ScopeType)
- func (s *ArgInfo) GetTypeInfo() (r *TypeInfo)
- func (s *ArgInfo) IsCallerAllocates() (r bool)
- func (s *ArgInfo) IsOptional() (r bool)
- func (s *ArgInfo) IsReturnValue() (r bool)
- func (s *ArgInfo) IsSkip() (r bool)
- func (s *ArgInfo) LoadTypeInfo() (_type TypeInfo)
- func (s *ArgInfo) MayBeNull() (r bool)
- type Argument
- type ArrayType
- type AttributeIter
- type BaseInfo
- func (obj *BaseInfo) AsGIBaseInfo() *BaseInfo
- func (s *BaseInfo) Clear()
- func (s *BaseInfo) Equal(info2 *BaseInfo) (r bool)
- func (s *BaseInfo) GetAttribute(name string) (r string)
- func (s *BaseInfo) GetContainer() (r *BaseInfo)
- func (s *BaseInfo) GetName() (r string)
- func (s *BaseInfo) GetNamespace() (r string)
- func (s *BaseInfo) GetTypelib() (r *Typelib)
- func (s *BaseInfo) IsDeprecated() (r bool)
- func (s *BaseInfo) IterateAttributes(iterator *AttributeIter) (name string, value string, r bool)
- func (s *BaseInfo) Ref() (r *BaseInfo)
- func (s *BaseInfo) Unref()
- type BaseInfoStack
- type CallableInfo
- func (obj *CallableInfo) AsGICallableInfo() *CallableInfo
- func (s *CallableInfo) CanThrowGerror() (r bool)
- func (s *CallableInfo) GetArg(n uint32) (r *ArgInfo)
- func (info *CallableInfo) GetArgs() iter.Seq2[uint32, *ArgInfo]
- func (s *CallableInfo) GetAsyncFunction() (r *CallableInfo)
- func (s *CallableInfo) GetCallerOwns() (r Transfer)
- func (s *CallableInfo) GetFinishFunction() (r *CallableInfo)
- func (s *CallableInfo) GetInstanceOwnershipTransfer() (r Transfer)
- func (s *CallableInfo) GetNArgs() (r uint32)
- func (s *CallableInfo) GetReturnAttribute(name string) (r string)
- func (s *CallableInfo) GetReturnType() (r *TypeInfo)
- func (s *CallableInfo) GetSyncFunction() (r *CallableInfo)
- func (s *CallableInfo) Invoke(function unsafe.Pointer, in_args []Argument, n_in_args uint64, ...) (return_value Argument, r bool, err error)
- func (s *CallableInfo) IsAsync() (r bool)
- func (s *CallableInfo) IsMethod() (r bool)
- func (s *CallableInfo) IterateReturnAttributes(iterator *AttributeIter) (name string, value string, r bool)
- func (s *CallableInfo) LoadArg(n uint32) (arg ArgInfo)
- func (s *CallableInfo) LoadReturnType() (_type TypeInfo)
- func (s *CallableInfo) MayReturnNull() (r bool)
- func (s *CallableInfo) SkipReturn() (r bool)
- type CallbackInfo
- type ConstantInfo
- type Direction
- type EnumInfo
- func (obj *EnumInfo) AsGIEnumInfo() *EnumInfo
- func (s *EnumInfo) GetErrorDomain() (r string)
- func (s *EnumInfo) GetMethod(n uint32) (r *FunctionInfo)
- func (s *EnumInfo) GetNMethods() (r uint32)
- func (s *EnumInfo) GetNValues() (r uint32)
- func (s *EnumInfo) GetStorageType() (r TypeTag)
- func (s *EnumInfo) GetValue(n uint32) (r *ValueInfo)
- func (info *EnumInfo) GetValues() iter.Seq2[uint32, *ValueInfo]
- type FieldInfo
- type FieldInfoFlags
- type FlagsInfo
- type FunctionInfo
- type FunctionInfoFlags
- type InterfaceInfo
- func (obj *InterfaceInfo) AsGIInterfaceInfo() *InterfaceInfo
- func (s *InterfaceInfo) FindMethod(name string) (r *FunctionInfo)
- func (s *InterfaceInfo) FindSignal(name string) (r *SignalInfo)
- func (s *InterfaceInfo) FindVfunc(name string) (r *VFuncInfo)
- func (s *InterfaceInfo) GetConstant(n uint32) (r *ConstantInfo)
- func (s *InterfaceInfo) GetIfaceStruct() (r *StructInfo)
- func (s *InterfaceInfo) GetMethod(n uint32) (r *FunctionInfo)
- func (s *InterfaceInfo) GetNConstants() (r uint32)
- func (s *InterfaceInfo) GetNMethods() (r uint32)
- func (s *InterfaceInfo) GetNPrerequisites() (r uint32)
- func (s *InterfaceInfo) GetNProperties() (r uint32)
- func (s *InterfaceInfo) GetNSignals() (r uint32)
- func (s *InterfaceInfo) GetNVfuncs() (r uint32)
- func (s *InterfaceInfo) GetPrerequisite(n uint32) (r *BaseInfo)
- func (s *InterfaceInfo) GetProperty(n uint32) (r *PropertyInfo)
- func (s *InterfaceInfo) GetSignal(n uint32) (r *SignalInfo)
- func (s *InterfaceInfo) GetVfunc(n uint32) (r *VFuncInfo)
- type InvokeError
- type ObjectInfo
- func (obj *ObjectInfo) AsGIObjectInfo() *ObjectInfo
- func (s *ObjectInfo) FindMethod(name string) (r *FunctionInfo)
- func (s *ObjectInfo) FindMethodUsingInterfaces(name string) (declarer *BaseInfo, r *FunctionInfo)
- func (s *ObjectInfo) FindSignal(name string) (r *SignalInfo)
- func (s *ObjectInfo) FindVfunc(name string) (r *VFuncInfo)
- func (s *ObjectInfo) FindVfuncUsingInterfaces(name string) (declarer *BaseInfo, r *VFuncInfo)
- func (s *ObjectInfo) GetAbstract() (r bool)
- func (s *ObjectInfo) GetClassStruct() (r *StructInfo)
- func (s *ObjectInfo) GetConstant(n uint32) (r *ConstantInfo)
- func (s *ObjectInfo) GetField(n uint32) (r *FieldInfo)
- func (s *ObjectInfo) GetFinal() (r bool)
- func (s *ObjectInfo) GetFundamental() (r bool)
- func (s *ObjectInfo) GetGetValueFunctionName() (r string)
- func (s *ObjectInfo) GetInterface(n uint32) (r *InterfaceInfo)
- func (s *ObjectInfo) GetMethod(n uint32) (r *FunctionInfo)
- func (info *ObjectInfo) GetMethods() iter.Seq2[uint32, *FunctionInfo]
- func (s *ObjectInfo) GetNConstants() (r uint32)
- func (s *ObjectInfo) GetNFields() (r uint32)
- func (s *ObjectInfo) GetNInterfaces() (r uint32)
- func (s *ObjectInfo) GetNMethods() (r uint32)
- func (s *ObjectInfo) GetNProperties() (r uint32)
- func (s *ObjectInfo) GetNSignals() (r uint32)
- func (s *ObjectInfo) GetNVfuncs() (r uint32)
- func (s *ObjectInfo) GetParent() (r *ObjectInfo)
- func (s *ObjectInfo) GetProperty(n uint32) (r *PropertyInfo)
- func (s *ObjectInfo) GetRefFunctionName() (r string)
- func (s *ObjectInfo) GetSetValueFunctionName() (r string)
- func (s *ObjectInfo) GetSignal(n uint32) (r *SignalInfo)
- func (s *ObjectInfo) GetTypeInitFunctionName() (r string)
- func (s *ObjectInfo) GetTypeName() (r string)
- func (s *ObjectInfo) GetUnrefFunctionName() (r string)
- func (s *ObjectInfo) GetVfunc(n uint32) (r *VFuncInfo)
- type PropertyInfo
- func (obj *PropertyInfo) AsGIPropertyInfo() *PropertyInfo
- func (s *PropertyInfo) GetFlags() (r g.ParamFlags)
- func (s *PropertyInfo) GetGetter() (r *FunctionInfo)
- func (s *PropertyInfo) GetOwnershipTransfer() (r Transfer)
- func (s *PropertyInfo) GetSetter() (r *FunctionInfo)
- func (s *PropertyInfo) GetTypeInfo() (r *TypeInfo)
- type RegisteredTypeInfo
- func (obj *RegisteredTypeInfo) AsGIRegisteredTypeInfo() *RegisteredTypeInfo
- func (s *RegisteredTypeInfo) GetGType() (r g.Type[g.TypeInstance])
- func (s *RegisteredTypeInfo) GetTypeInitFunctionName() (r string)
- func (s *RegisteredTypeInfo) GetTypeName() (r string)
- func (s *RegisteredTypeInfo) IsBoxed() (r bool)
- type Repository
- func (obj *Repository) AsGIRepository() *Repository
- func (s *Repository) EnumerateVersions(namespace_ string) (n_versions_out uint64, r []string)
- func (s *Repository) FindByErrorDomain(domain uint32) (r *EnumInfo)
- func (s *Repository) FindByGtype(gtype g.Type[g.TypeInstance]) (r *BaseInfo)
- func (s *Repository) FindByName(namespace_ string, name string) (r *BaseInfo)
- func (s *Repository) GetCPrefix(namespace_ string) (r string)
- func (s *Repository) GetDependencies(namespace_ string) (n_dependencies_out uint64, r []string)
- func (s *Repository) GetImmediateDependencies(namespace_ string) (n_dependencies_out uint64, r []string)
- func (s *Repository) GetInfo(namespace_ string, idx uint32) (r *BaseInfo)
- func (r *Repository) GetInfos(namespace string) iter.Seq2[uint32, *BaseInfo]
- func (s *Repository) GetLibraryPath() (n_paths_out uint64, r []string)
- func (s *Repository) GetLoadedNamespaces() (n_namespaces_out uint64, r []string)
- func (s *Repository) GetNInfos(namespace_ string) (r uint32)
- func (s *Repository) GetObjectGtypeInterfaces(gtype g.Type[g.TypeInstance]) (n_interfaces_out uint64, interfaces_out []*InterfaceInfo)
- func (s *Repository) GetSearchPath() (n_paths_out uint64, r []string)
- func (s *Repository) GetSharedLibraries(namespace_ string) (out_n_elements uint64, r []string)
- func (s *Repository) GetTypelibPath(namespace_ string) (r string)
- func (s *Repository) GetVersion(namespace_ string) (r string)
- func (s *Repository) IsRegistered(namespace_ string, version string) (r bool)
- func (s *Repository) LoadTypelib(typelib *Typelib, flags RepositoryLoadFlags) (r string, err error)
- func (s *Repository) PrependLibraryPath(directory string)
- func (s *Repository) PrependSearchPath(directory string)
- func (s *Repository) Require(namespace_ string, version string, flags RepositoryLoadFlags) (r *Typelib, err error)
- func (s *Repository) RequirePrivate(typelib_dir string, namespace_ string, version string, ...) (r *Typelib, err error)
- type RepositoryError
- type RepositoryLoadFlags
- type ScopeType
- type SignalInfo
- type StructInfo
- func (obj *StructInfo) AsGIStructInfo() *StructInfo
- func (s *StructInfo) FindField(name string) (r *FieldInfo)
- func (s *StructInfo) FindMethod(name string) (r *FunctionInfo)
- func (s *StructInfo) GetAlignment() (r uint64)
- func (s *StructInfo) GetCopyFunctionName() (r string)
- func (s *StructInfo) GetField(n uint32) (r *FieldInfo)
- func (info *StructInfo) GetFields() iter.Seq2[uint32, *FieldInfo]
- func (s *StructInfo) GetFreeFunctionName() (r string)
- func (s *StructInfo) GetMethod(n uint32) (r *FunctionInfo)
- func (info *StructInfo) GetMethods() iter.Seq2[uint32, *FunctionInfo]
- func (s *StructInfo) GetNFields() (r uint32)
- func (s *StructInfo) GetNMethods() (r uint32)
- func (s *StructInfo) GetSize() (r uint64)
- func (s *StructInfo) IsForeign() (r bool)
- func (s *StructInfo) IsGtypeStruct() (r bool)
- type Transfer
- type TypeInfo
- func (s *TypeInfo) ArgumentFromHashPointer(hash_pointer unsafe.Pointer) (arg Argument)
- func (obj *TypeInfo) AsGITypeInfo() *TypeInfo
- func (s *TypeInfo) GetArrayFixedSize() (out_size uint64, r bool)
- func (s *TypeInfo) GetArrayLengthIndex() (out_length_index uint32, r bool)
- func (s *TypeInfo) GetArrayType() (r ArrayType)
- func (s *TypeInfo) GetInterface() (r *BaseInfo)
- func (s *TypeInfo) GetParamType(n uint32) (r *TypeInfo)
- func (s *TypeInfo) GetStorageType() (r TypeTag)
- func (s *TypeInfo) GetTag() (r TypeTag)
- func (s *TypeInfo) HashPointerFromArgument(arg *Argument)
- func (s *TypeInfo) IsPointer() (r bool)
- func (s *TypeInfo) IsZeroTerminated() (r bool)
- type TypeTag
- type Typelib
- type UnionInfo
- func (obj *UnionInfo) AsGIUnionInfo() *UnionInfo
- func (s *UnionInfo) FindMethod(name string) (r *FunctionInfo)
- func (s *UnionInfo) GetAlignment() (r uint64)
- func (s *UnionInfo) GetCopyFunctionName() (r string)
- func (s *UnionInfo) GetDiscriminator(n uint64) (r *ConstantInfo)
- func (s *UnionInfo) GetDiscriminatorOffset() (out_offset uint64, r bool)
- func (s *UnionInfo) GetDiscriminatorType() (r *TypeInfo)
- func (s *UnionInfo) GetField(n uint32) (r *FieldInfo)
- func (s *UnionInfo) GetFreeFunctionName() (r string)
- func (s *UnionInfo) GetMethod(n uint32) (r *FunctionInfo)
- func (s *UnionInfo) GetNFields() (r uint32)
- func (s *UnionInfo) GetNMethods() (r uint32)
- func (s *UnionInfo) GetSize() (r uint64)
- func (s *UnionInfo) IsDiscriminated() (r bool)
- type UnresolvedInfo
- type VFuncInfo
- func (obj *VFuncInfo) AsGIVFuncInfo() *VFuncInfo
- func (s *VFuncInfo) GetAddress(implementor_gtype g.Type[g.TypeInstance]) (err error)
- func (s *VFuncInfo) GetFlags() (r VFuncInfoFlags)
- func (s *VFuncInfo) GetInvoker() (r *FunctionInfo)
- func (s *VFuncInfo) GetOffset() (r uint64)
- func (s *VFuncInfo) GetSignal() (r *SignalInfo)
- type VFuncInfoFlags
- type ValueInfo
Constants ¶
View Source
const TypeTagNTypes = "NOT IMPLEMENTED"
Variables ¶
View Source
var TypeArgInfo = g.Type[ArgInfo](C.gi_arg_info_get_type())
View Source
var TypeBaseInfo = g.Type[BaseInfo](C.gi_base_info_get_type())
View Source
var TypeCallableInfo = g.Type[CallableInfo](C.gi_callable_info_get_type())
View Source
var TypeCallbackInfo = g.Type[CallbackInfo](C.gi_callback_info_get_type())
View Source
var TypeConstantInfo = g.Type[ConstantInfo](C.gi_constant_info_get_type())
View Source
var TypeEnumInfo = g.Type[EnumInfo](C.gi_enum_info_get_type())
View Source
var TypeFieldInfo = g.Type[FieldInfo](C.gi_field_info_get_type())
View Source
var TypeFlagsInfo = g.Type[FlagsInfo](C.gi_flags_info_get_type())
View Source
var TypeFunctionInfo = g.Type[FunctionInfo](C.gi_function_info_get_type())
View Source
var TypeInterfaceInfo = g.Type[InterfaceInfo](C.gi_interface_info_get_type())
View Source
var TypeObjectInfo = g.Type[ObjectInfo](C.gi_object_info_get_type())
View Source
var TypePropertyInfo = g.Type[PropertyInfo](C.gi_property_info_get_type())
View Source
var TypeRegisteredTypeInfo = g.Type[RegisteredTypeInfo](C.gi_registered_type_info_get_type())
View Source
var TypeRepository = g.Type[Repository](C.gi_repository_get_type())
View Source
var TypeSignalInfo = g.Type[SignalInfo](C.gi_signal_info_get_type())
View Source
var TypeStructInfo = g.Type[StructInfo](C.gi_struct_info_get_type())
View Source
var TypeTypeInfo = g.Type[TypeInfo](C.gi_type_info_get_type())
View Source
var TypeUnionInfo = g.Type[UnionInfo](C.gi_union_info_get_type())
View Source
var TypeUnresolvedInfo = g.Type[UnresolvedInfo](C.gi_unresolved_info_get_type())
View Source
var TypeVFuncInfo = g.Type[VFuncInfo](C.gi_vfunc_info_get_type())
View Source
var TypeValueInfo = g.Type[ValueInfo](C.gi_value_info_get_type())
Functions ¶
func RepositoryDump ¶
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 (*ArgInfo) GetClosureIndex ¶
func (*ArgInfo) GetDestroyIndex ¶
func (*ArgInfo) GetDirection ¶
func (*ArgInfo) GetOwnershipTransfer ¶
func (*ArgInfo) GetTypeInfo ¶
func (*ArgInfo) IsCallerAllocates ¶
func (*ArgInfo) IsOptional ¶
func (*ArgInfo) IsReturnValue ¶
func (*ArgInfo) LoadTypeInfo ¶
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 (*BaseInfo) GetAttribute ¶
func (*BaseInfo) GetContainer ¶
func (*BaseInfo) GetNamespace ¶
func (*BaseInfo) GetTypelib ¶
func (*BaseInfo) IsDeprecated ¶
func (*BaseInfo) IterateAttributes ¶
func (s *BaseInfo) IterateAttributes(iterator *AttributeIter) (name string, value string, r bool)
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) 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) 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 EnumInfo ¶
type EnumInfo struct {
RegisteredTypeInfo
// contains filtered or unexported fields
}
func (*EnumInfo) AsGIEnumInfo ¶
func (*EnumInfo) GetErrorDomain ¶
func (*EnumInfo) GetMethod ¶
func (s *EnumInfo) GetMethod(n uint32) (r *FunctionInfo)
func (*EnumInfo) GetNMethods ¶
func (*EnumInfo) GetNValues ¶
func (*EnumInfo) GetStorageType ¶
type FieldInfo ¶
type FieldInfo struct {
BaseInfo
// contains filtered or unexported fields
}
func (*FieldInfo) AsGIFieldInfo ¶
func (*FieldInfo) GetFlags ¶
func (s *FieldInfo) GetFlags() (r FieldInfoFlags)
func (*FieldInfo) GetTypeInfo ¶
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 ¶
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 ¶
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) 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 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) 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 TypeInfo ¶
type TypeInfo struct {
BaseInfo
// contains filtered or unexported fields
}
func (*TypeInfo) ArgumentFromHashPointer ¶
func (*TypeInfo) AsGITypeInfo ¶
func (*TypeInfo) GetArrayFixedSize ¶
func (*TypeInfo) GetArrayLengthIndex ¶
func (*TypeInfo) GetArrayType ¶
func (*TypeInfo) GetInterface ¶
func (*TypeInfo) GetParamType ¶
func (*TypeInfo) GetStorageType ¶
func (*TypeInfo) HashPointerFromArgument ¶
func (*TypeInfo) IsZeroTerminated ¶
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 )
type Typelib ¶
type Typelib struct {
// contains filtered or unexported fields
}
func (*Typelib) GetNamespace ¶
type UnionInfo ¶
type UnionInfo struct {
RegisteredTypeInfo
// contains filtered or unexported fields
}
func (*UnionInfo) AsGIUnionInfo ¶
func (*UnionInfo) FindMethod ¶
func (s *UnionInfo) FindMethod(name string) (r *FunctionInfo)
func (*UnionInfo) GetAlignment ¶
func (*UnionInfo) GetCopyFunctionName ¶
func (*UnionInfo) GetDiscriminator ¶
func (s *UnionInfo) GetDiscriminator(n uint64) (r *ConstantInfo)
func (*UnionInfo) GetDiscriminatorOffset ¶
func (*UnionInfo) GetDiscriminatorType ¶
func (*UnionInfo) GetFreeFunctionName ¶
func (*UnionInfo) GetMethod ¶
func (s *UnionInfo) GetMethod(n uint32) (r *FunctionInfo)
func (*UnionInfo) GetNFields ¶
func (*UnionInfo) GetNMethods ¶
func (*UnionInfo) IsDiscriminated ¶
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 (*VFuncInfo) GetAddress ¶
func (*VFuncInfo) GetFlags ¶
func (s *VFuncInfo) GetFlags() (r VFuncInfoFlags)
func (*VFuncInfo) GetInvoker ¶
func (s *VFuncInfo) GetInvoker() (r *FunctionInfo)
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
Click to show internal directories.
Click to hide internal directories.