Enums¶
Details¶
- class GIRepository.ArrayType(value)¶
Bases:
GLib.Enum
The type of array in a #GITypeInfo.
- ARRAY = 1¶
a GArray array
- PTR_ARRAY = 2¶
a
GLib.PtrArray
array
- BYTE_ARRAY = 3¶
a
GLib.ByteArray
array
- class GIRepository.Direction(value)¶
Bases:
GLib.Enum
The direction of a #GIArgInfo.
- IN = 0¶
in argument.
- OUT = 1¶
out argument.
- INOUT = 2¶
in and out argument.
- class GIRepository.InfoType(value)¶
Bases:
GLib.Enum
The type of a
GIRepository.BaseInfo
struct.- INVALID = 0¶
invalid type
- FUNCTION = 1¶
function, see #GIFunctionInfo
- INVALID_0 = 10¶
deleted, used to be GI_INFO_TYPE_ERROR_DOMAIN.
- UNION = 11¶
union, see #GIUnionInfo
- VALUE = 12¶
enum value, see #GIValueInfo
- SIGNAL = 13¶
signal, see #GISignalInfo
- VFUNC = 14¶
virtual function, see #GIVFuncInfo
- PROPERTY = 15¶
GObject.Object
property, see #GIPropertyInfo
- FIELD = 16¶
struct or union field, see #GIFieldInfo
- ARG = 17¶
argument of a function or callback, see #GIArgInfo
- TYPE = 18¶
type information, see #GITypeInfo
- UNRESOLVED = 19¶
unresolved type, a type which is not present in the typelib, or any of its dependencies.
- CALLBACK = 2¶
callback, see #GIFunctionInfo
- STRUCT = 3¶
struct, see #GIStructInfo
- BOXED = 4¶
boxed, see #GIStructInfo or #GIUnionInfo
- ENUM = 5¶
enum, see #GIEnumInfo
- FLAGS = 6¶
flags, see #GIEnumInfo
- OBJECT = 7¶
object, see #GIObjectInfo
- INTERFACE = 8¶
interface, see #GIInterfaceInfo
- CONSTANT = 9¶
contant, see #GIConstantInfo
- class GIRepository.RepositoryError(value)¶
Bases:
GLib.Enum
An error code used with #G_IREPOSITORY_ERROR in a
GLib.Error
returned from aGIRepository.Repository
routine.- TYPELIB_NOT_FOUND = 0¶
the typelib could not be found.
- NAMESPACE_MISMATCH = 1¶
the namespace does not match the requested namespace.
- NAMESPACE_VERSION_CONFLICT = 2¶
the version of the typelib does not match the requested version.
- LIBRARY_NOT_FOUND = 3¶
the library used by the typelib could not be found.
- class GIRepository.ScopeType(value)¶
Bases:
GLib.Enum
Scope type of a #GIArgInfo representing callback, determines how the callback is invoked and is used to decided when the invoke structs can be freed.
- INVALID = 0¶
The argument is not of callback type.
- CALL = 1¶
The callback and associated user_data is only used during the call to this function.
- ASYNC = 2¶
The callback and associated user_data is only used until the callback is invoked, and the callback. is invoked always exactly once.
- NOTIFIED = 3¶
The callback and associated user_data is used until the caller is notfied via the destroy_notify.
- FOREVER = 4¶
The callback and associated user_data is used until the process terminates
- class GIRepository.Transfer(value)¶
Bases:
GLib.Enum
The transfer is the exchange of data between two parts, from the callee to the caller. The callee is either a function/method/signal or an object/interface where a property is defined. The caller is the side accessing a property or calling a function.
GIRepository.Transfer
specifies who’s responsible for freeing the resources after the ownership transfer is complete. In case of a containing type such as a list, an array or a hash table the container itself is specified differently from the items within the container itself. Each container is freed differently, check the documentation for the types themselves for information on how to free them.- NOTHING = 0¶
transfer nothing from the callee (function or the type instance the property belongs to) to the caller. The callee retains the ownership of the transfer and the caller doesn’t need to do anything to free up the resources of this transfer.
- CONTAINER = 1¶
transfer the container (list, array, hash table) from the callee to the caller. The callee retains the ownership of the individual items in the container and the caller has to free up the container resources (g_list_free()/
GLib.HashTable.destroy
() etc) of this transfer.
- EVERYTHING = 2¶
transfer everything, eg the container and its contents from the callee to the caller. This is the case when the callee creates a copy of all the data it returns. The caller is responsible for cleaning up the container and item resources of this transfer.
- class GIRepository.TypeTag(value)¶
Bases:
GLib.Enum
The type tag of a #GITypeInfo.
- VOID = 0¶
void
- BOOLEAN = 1¶
boolean
- FLOAT = 10¶
float
- DOUBLE = 11¶
double floating point
- GTYPE = 12¶
- UTF8 = 13¶
a UTF-8 encoded string
- FILENAME = 14¶
a filename, encoded in the same encoding as the native filesystem is using.
- ARRAY = 15¶
an array
- INTERFACE = 16¶
an extended interface object
- GSLIST = 18¶
- GHASH = 19¶
- INT8 = 2¶
8-bit signed integer
- ERROR = 20¶
- UNICHAR = 21¶
Unicode character
- UINT8 = 3¶
8-bit unsigned integer
- INT16 = 4¶
16-bit signed integer
- UINT16 = 5¶
16-bit unsigned integer
- INT32 = 6¶
32-bit signed integer
- UINT32 = 7¶
32-bit unsigned integer
- INT64 = 8¶
64-bit signed integer
- UINT64 = 9¶
64-bit unsigned integer
- class GIRepository.nvokeError(value)¶
Bases:
GLib.Enum
An error occuring while invoking a function via g_function_info_invoke().
- FAILED = 0¶
invokation failed, unknown error.
- SYMBOL_NOT_FOUND = 1¶
symbol couldn’t be found in any of the libraries associated with the typelib of the function.
- ARGUMENT_MISMATCH = 2¶
the arguments provided didn’t match the expected arguments for the functions type signature.