Foundry.Gir

g Foundry.Gir Foundry.Gir GObject.Object GObject.Object GObject.Object->Foundry.Gir

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new (file)

class

new_for_path (path)

get_file ()

get_namespace (namespace_name)

get_repository ()

list_namespaces ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.Gir(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.GirClass

Represents a GObject.Object Introspection Repository (GIR) file.

Foundry.Gir provides functionality for parsing and accessing GIR files which contain metadata about GObject.Object-based libraries. It enables introspection of library APIs and provides information about classes, functions, and other symbols for development tools and documentation generation.

classmethod error_quark()
Return type:

int

classmethod new(file)
Parameters:

file (Gio.File) – a [iface`Gio`.File]

Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.Gir] or rejects with error.

Return type:

Dex.Future

Parses file to create a new in-memory representation as a [class`Foundry`.Gir].

New in version 1.1.

classmethod new_for_path(path)
Parameters:

path (str) – the path to the file

Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.Gir] or rejects with error.

Return type:

Dex.Future

New in version 1.1.

get_file()
Return type:

Gio.File

New in version 1.1.

get_namespace(namespace_name)
Parameters:

namespace_name (str) –

Return type:

Foundry.GirNode or None

New in version 1.1.

get_repository()
Return type:

Foundry.GirNode

New in version 1.1.

list_namespaces()
Return type:

[Foundry.GirNode]

New in version 1.1.