Class
GIRType
Representation of a fundamental type, its relationship to other types, and casting operations
class GIRType
Topics
Operators
Equality check for a type. Two types are considered equal if they have the same names and C types.
Initializers
Convenience initialiser for a top-level GIR type
Initialise a new type as an alias of the given type reference, cloning its type conversions
Initialise a new type as an alias of the given type reference, cloning its type conversions
Designated initialiser for a GIR type
Convenience initialiser for a GIR type in the current namespace
Instance Properties
Swift name to use for casting: removes trailing ! and ?
Type name to use for casting: removes trailing ! and ?
Dictionary of possible type conversion (cast) operations to target types.
Name of the type in C
Convenience property, returning the dotted prefix
Indicator whether this type is an alias that doesn’t need casting
Return whether the type is a magic gpointer or related
Name of the type defined in the GIR file, without a namespace
Return the normalised, fully qualified name, if necessary
Namespace for this type, empty if in the global namespace
Convenience property, returning the normalised, dotted prefix
The supertype (or equivalent, if alias) of this type
Return the normalised, fully qualified name
Name of the type in Swift
Return the normalised, fully qualified name, if necessary
Name of the type
Return the normalised, fully qualified name, if necessary
Instance Methods
Return the default cast to convert the given expression from the source type
Return the default cast to convert the given expression to the receiver
Return the default cast to convert the given expression to the target type
Hashes the essential components of this type by feeding them into the given hasher.
Return an explicitly known cast to convert the given expression to the target type
Return an explicitly known cast to convert the given expression to the target type
Return the given name, prefixed if necessary
Default Implementations
Relationships
Inherited By
Conforms To
See Also
Type system
Representation of a string type, its relationship to other types, and casting operations
Representation of a raw pointer type, its relationship to other types, and casting operations
Representation of a record type (struct or class), its relationship to other types, and casting operations
Representation of a generic type (struct or class), its relationship to other types, and casting operations
Representation of a opaque pointer type, its relationship to other types, and casting operations
Type conversion operation. This root class is used for aliases/equal type conversions, i.e., casts are no-ops.
Parent/Child class conversion operation
Parent/Child class conversion operation with optional upcast
Custom type conversion operation
Nested type conversion operation
Enum type conversion operation.
Bit field (OptionSet) type conversion operation.
Raw pointer conversion