TypeValueTableProtocol
public protocol TypeValueTableProtocol
The GTypeValueTable
provides the functions required by the GValue
implementation, to serve as a container for values of a type.
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.
-
Untyped pointer to the underlying
GTypeValueTable
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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 }
-
Required Initialiser for types conforming to
TypeValueTableProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
collectFormat
Extension methodA 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 methodFormat description of the arguments to collect for
lcopy_value
, analogous tocollect_format
. Usually,lcopy_format
string consists only of ‘p’s to providelcopy_value()
with pointers to storage locations.Declaration
Swift
@inlinable var lcopyFormat: UnsafePointer<gchar>! { get set }