Class
GIR
Representation of a GIR file
final class GIR
Topics
Classes
a type alias is just a type with an underlying C type
data type representing a function/method argument or return type
a bitfield is defined akin to an enumeration
a type with an underlying C type entry
a callback is the same as a function, except that the type definition is a @convention(c) callback definition
a class data type record
an entry for a constant
GIR type class
an enumeration entry
a field is a Property
a function is the same as a method
an inteface is similar to a class, but can be part of a more complex type graph
data type representing a function/method
a property is a C type
a data type record to create a protocol/struct/class for
a signal is equivalent to a function
GIR named thing class
a union data type record
Initializers
convenience constructor to read from memory
convenience constructor to read a gir file
designated constructor
Instance Properties
Aliases defined by this GIR file
Bitfields defined by this GIR file
code boiler plate
Callbacs defined by this GIR file
Classes defined by this GIR file
Constants defined by this GIR file
Enums defined by this GIR file
Free functions defined by this GIR file
Collection of identifier prefixes
Interfaces defined by this GIR file
Type-erased sequence of namespaces
Preample boilerplate to output before any generated code
Namespace prefix defined by the receiver
Records defined by this GIR file
Collection of symbol prefixes
Unions defined by this GIR file
The parsed XML document represented by the receiver
Instance Methods
Traverse all the classes and record their relationship in the type hierarchy
Traverse all the records and record all the interfaces implemented
dump Swift code
Traverse all the records and record all the interfaces implemented
Type Properties
context of known functions
Common aliases used
Known bitfields
suffixes for @escaping callback heuristics
DocC hosting base path relative to /.
Current namespace prefix with a trailing “.”
Known enums
Names of excluded identifiers.
types to turn into force-unwrapped optionals
All fundamental types prior to GIR parsing
Name of the GLib pointer wrapper that every type conforms to.
Interface implementation table
context of known records
known types indexed by C identifier.
context of known types
context of known records
All known types so far
Mapping from names to known types
Dotted namespace replacements
All numeric conversions
Swift OptionSet equivalent to the given C enum
names of override initialisers
Current namespace prefix
Protocol conversion for a given record
Ref conversion for a given record
Known records
Class conversion for a given ref
Fundamental swift type replacements required for the compiler
Idiomatic swift type replacements for parameters
Idiomatic swift type replacements for return types
Idiomatic swift type replacements for signals
Names of typed collections.
Mapping of gir type names to Swift names for underlying C types
names of constants to be taken verbatim
Type Methods
return the method/function arguments for the given child nodes
return the documentation for the given child nodes
return the documentation for the given child nodes
return the documentation for the given child nodes
Enumerations
Ownership transfer mechanism
Parameter direction