Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
_GTypeValueTable Struct Reference

#include <gtype.h>

Data Fields

GTypeValueInitFunc value_init
 
GTypeValueFreeFunc value_free
 
GTypeValueCopyFunc value_copy
 
GTypeValuePeekPointerFunc value_peek_pointer
 
const gcharcollect_format
 
GTypeValueCollectFunc collect_value
 
const gcharlcopy_format
 
GTypeValueLCopyFunc lcopy_value
 

Detailed Description

GTypeValueTable: @value_init: Function to initialize a GValue @value_free: Function to free a GValue @value_copy: Function to copy a GValue @value_peek_pointer: Function to peek the contents of a GValue if they fit into a pointer @collect_format: 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 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 char,'i' needs to be used, and for collection of floats'd'. @collect_value: Function to initialize a GValue from the values collected from variadic arguments @lcopy_format: 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: Function to store the contents of a value into the locations collected from variadic arguments

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

Definition at line 1439 of file gtype.h.

Field Documentation

◆ collect_format

const gchar* _GTypeValueTable::collect_format

Definition at line 1446 of file gtype.h.

◆ collect_value

GTypeValueCollectFunc _GTypeValueTable::collect_value

Definition at line 1447 of file gtype.h.

◆ lcopy_format

const gchar* _GTypeValueTable::lcopy_format

Definition at line 1449 of file gtype.h.

◆ lcopy_value

GTypeValueLCopyFunc _GTypeValueTable::lcopy_value

Definition at line 1450 of file gtype.h.

◆ value_copy

GTypeValueCopyFunc _GTypeValueTable::value_copy

Definition at line 1443 of file gtype.h.

◆ value_free

GTypeValueFreeFunc _GTypeValueTable::value_free

Definition at line 1442 of file gtype.h.

◆ value_init

GTypeValueInitFunc _GTypeValueTable::value_init

Definition at line 1441 of file gtype.h.

◆ value_peek_pointer

GTypeValuePeekPointerFunc _GTypeValueTable::value_peek_pointer

Definition at line 1444 of file gtype.h.


The documentation for this struct was generated from the following file: