Documentation ¶
Overview ¶
Packagee girepository provides convenient bindings around libgirepository's C API. It is handwritten, so the API surface is very abstracted and is kept to the bare minimum. As such, it is not a 1:1 binding.
Index ¶
- Constants
- func Require(namespace, version string, flags LoadFlags)
- type Argument
- type Info
- func (i *Info) InvokeClassMethod(name string, in, out []Argument) Argument
- func (i *Info) InvokeFunction(in, out []Argument) Argument
- func (i *Info) InvokeIfaceMethod(name string, in, out []Argument) Argument
- func (i *Info) InvokeRecordMethod(name string, in, out []Argument) Argument
- func (i *Info) RegisteredGType() coreglib.Type
- func (i *Info) String() string
- func (i *Info) StructFieldOffset(name string) uintptr
- type LoadFlags
Constants ¶
const (
LoadFlagLazy = LoadFlags(C.G_IREPOSITORY_LOAD_FLAG_LAZY)
)
LoadFlags constants.
Variables ¶
This section is empty.
Functions ¶
func Require ¶
Require forces the namespace to be loaded if it isn't already. If namespace is not loaded, this function will search for a ".typelib" file using the repository search path. In addition, a version version of namespace may be specified. If version is not specified, the latest will be used.
Types ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
func (*Info) InvokeClassMethod ¶
InvokeClassMethod invokes the method of this ClassInfo with the given name.
func (*Info) InvokeFunction ¶
InvokeFunction invokes this BaseInfo as a FunctionInfo.
func (*Info) InvokeIfaceMethod ¶
InvokeIfaceMethod invokes the method of this InterfaceInfo with the given name.
func (*Info) InvokeRecordMethod ¶
InvokeRecordMethod invokes the method of this StructInfo with the given name.
func (*Info) RegisteredGType ¶
RegisteredGType returns the GType of the type belonging to this Info.
func (*Info) StructFieldOffset ¶
StructFieldOffset gets the offset of the field for the record that is i.
type LoadFlags ¶
type LoadFlags C.GIRepositoryLoadFlags
LoadFlags are flags that control how a typelib is loaded.