Type Alias GTypeValueInitFunc

Source
pub type GTypeValueInitFunc = Option<unsafe extern "C" fn(value: *mut GValue)>;
Expand description

GTypeValueInitFunc: @value: the value to initialize

Initializes the value contents by setting the fields of the value->data array.

The data array of the #GValue passed into this function was zero-filled with memset(), so no care has to be taken to free any old contents. For example, in the case of a string value that may never be %NULL, the implementation might look like:

|[ value->data[0].v_pointer = g_strdup (“”); ]|

Since: 2.78

Aliased Type§

enum GTypeValueInitFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GValue)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _GValue))

Some value of type T.