Class
GIR.CType
a type with an underlying C type entry
class CType
Topics
Initializers
Factory method to construct a C Type from XML with types taken from children
XML Element initialser
Instance Properties
return the non-prefixed argument name
return the Swift camel case name, quoted if necessary
Original C identifier
list of contained types
return whether the type contains a magical gpointer or related
Explicit, idiomatic type reference (class if pointer to record)
explicit, idiomatic class type name (empty if same as the underlying C type)
explicit, idiomatic type reference (struct if pointer to record)
explicit, idiomatic type name (empty if same as the underlying C type)
indicates whether the receiver is any known kind of pointer
return whether the type is an array
return whether the type is a magical gpointer or related
indicates whether the receiver is a known bit field
indicates whether the receiver is a known class or record
return whether the receiver is a direct reference to a known record
Indicates whether the receiver is a known type.
true if this is a private element
true if this is a readable element
indicates whether the receiver is an array of scalar values
Returns true if the data type is void
true if this is a writable element
String representation of the CType thing
Return the known bitfield the argument represents (nil if not known).
Return the known record for the receiver (nil if not known).
Return the known class/record of the argument (nil if not known).
return a directly referenced known record, nil otherwise
Return the known type of the argument (nil if not known).
return a non-clashing argument name
return the, potentially prefixed argument name to use in a method declaration
Return a prefixed version of the idiomatic class type reference
explicit, idiomatic class type name (empty if same as the underlying C type)
Return a prefixed version of the wrapped type reference
explicit, idiomatic type name (empty if same as the underlying C type)
return the swift (known) type of the receiver when used as a return value
reference scope
Type reference to an idiomatic Swift type used for a Swift function parameter
Type reference to an idiomatic Swift type used for a Swift function return value
Type reference to an idiomatic Swift type used for a Swift signals. This property is copy of swiftReturnRef with a different domain. The domain for this property was modified to include support for unsigned ints.
return the swift (known) type of the receiver as parsed from the GIR file
Return a Swift template declaration for a known record, or nil otherwise
tuple size if non-nil
Instance Methods
return whether the receiver is an instance of the given record (class)
return whether the receiver is an instance of the given record (class) or any of its ancestors
Check whether the return type may need to be optional, e.g. when derived from a pointer that may be nil
Return a prefixed ref for a given TypeReference.
return the idiomatic/non-idiomatic return type name
Relationships
Inherits From
Inherited By
Conforms To
See Also
GIR element models
GIR named thing class
GIR type class
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 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
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