TypeValueTableProtocol

public protocol TypeValueTableProtocol

The TypeValueTableProtocol protocol exposes the methods and properties of an underlying GTypeValueTable instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see TypeValueTable. Alternatively, use TypeValueTableRef as a lighweight, unowned reference if you already have an instance you just want to use.

The GTypeValueTable provides the functions required by the GValue implementation, to serve as a container for values of a type.

  • ptr

    Untyped pointer to the underlying GTypeValueTable instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GTypeValueTable instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GTypeValueTable instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GTypeValueTable>! { get }

TypeValueTable Record: TypeValueTableProtocol extension (methods and fields)

  • collectFormat Extension method

    A string format describing how to collect the contents of this value bit-by-bit. Each character in the format represents an argument to be collected, and the characters themselves indicate the type of the argument. Currently supported arguments are:

    • ‘i’ - Integers. passed as collect_values[].v_int.
    • ‘l’ - Longs. passed as collect_values[].v_long.
    • ‘d’ - Doubles. passed as collect_values[].v_double.
    • ‘p’ - Pointers. passed as collect_values[].v_pointer. It should be noted that for variable argument list construction, ANSI C promotes every type smaller than an integer to an int, and floats to doubles. So for collection of short int or char, ‘i’ needs to be used, and for collection of floats ‘d’.

    Declaration

    Swift

    @inlinable
    var collectFormat: UnsafePointer<gchar>! { get set }
  • lcopyFormat Extension method

    Format description of the arguments to collect for lcopy_value, analogous to collect_format. Usually, lcopy_format string consists only of ‘p’s to provide lcopy_value() with pointers to storage locations.

    Declaration

    Swift

    @inlinable
    var lcopyFormat: UnsafePointer<gchar>! { get set }