GObject.TypeValueTable¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
collect_format |
r/w |
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: |
|
collect_value |
r/w |
Function to initialize a |
|
lcopy_format |
r/w |
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. |
|
lcopy_value |
r/w |
Function to store the contents of a value into the locations collected from variadic arguments |
|
value_copy |
r/w |
Function to copy a |
|
value_free |
r/w |
Function to free a |
|
value_init |
r/w |
Function to initialize a |
|
value_peek_pointer |
r/w |
Function to peek the contents of a |
Methods¶
None
Details¶
- class GObject.TypeValueTable¶
'i'
: Integers, passed ascollect_values[].v_int
'l'
: Longs, passed ascollect_values[].v_long
'd'
: Doubles, passed ascollect_values[].v_double
'p'
: Pointers, passed ascollect_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
str
,'i'
needs to be used, and for collection of floats'd'
. TheGObject.TypeValueTable
provides the functions required by theGObject.Value
implementation, to serve as a container for values of a type.