Skip to content

GObject.TypeValueTable

record (struct)

  • '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'. The TypeValueTable provides the functions required by the Value implementation, to serve as a container for values of a type.

Properties

value_init

value_init: TypeValueInitFunc  # read/write

value_free

value_free: TypeValueFreeFunc  # read/write

value_copy

value_copy: TypeValueCopyFunc  # read/write

value_peek_pointer

value_peek_pointer: TypeValuePeekPointerFunc  # read/write

collect_format

collect_format: str  # read/write

collect_value

collect_value: TypeValueCollectFunc  # read/write

lcopy_format

lcopy_format: str  # read/write

lcopy_value

lcopy_value: TypeValueLCopyFunc  # read/write