Foundry.GirNode¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.GirNode(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a node in a
GObject.ObjectIntrospection Repository (GIR) file.Foundry.GirNodeprovides functionality for representing and manipulating nodes in GIR files including attributes, children, and content. It supports hierarchical navigation and provides efficient access to GIR data for development tools and documentation generation.- classmethod new(type, tag_name)¶
- Parameters:
type (
Foundry.GirNodeType) –tag_name (
str) –
- Return type:
- classmethod type_to_string(type)¶
- Parameters:
type (
Foundry.GirNodeType) –- Return type:
- find_child(type, name)¶
- Parameters:
type (
Foundry.GirNodeType) –name (
str) –
- Return type:
- get_children()¶
- Return type:
[
Foundry.GirNode] orNone
Gets a list of children of this node in the Gir file.
- get_node_type()¶
- Return type:
- get_parent()¶
- Return type:
- list_attributes()¶
- Return type:
[
str]
Gets the keys of the node.
The caller should free the resulting array but not the elements within it.
- list_children_typed(type)¶
- Parameters:
type (
Foundry.GirNodeType) – the type of node to collect- Return type:
[
Foundry.GirNode] orNone
Collects all of the children that match type.
The result is an array of borrowed pointers to children nodes. In C that means you free the resulting pointer but not the nodes within it.
``c guint n_nodes = 0; g_autofree FoundryGirNode **nodes = foundry_gir_node_list_children_typed (parent, type, &n_nodes); ``