Type Alias GBaseInitFunc

Source
pub type GBaseInitFunc = Option<unsafe extern "C" fn(g_class: gpointer)>;
Expand description

GBaseInitFunc: @g_class: (type GObject.TypeClass): The #GTypeClass structure to initialize

A callback function used by the type system to do base initialization of the class structures of derived types.

This function is called as part of the initialization process of all derived classes and should reallocate or reset all dynamic class members copied over from the parent class.

For example, class members (such as strings) that are not sufficiently handled by a plain memory copy of the parent class into the derived class have to be altered. See GClassInitFunc() for a discussion of the class initialization process.

Aliased Type§

pub enum GBaseInitFunc {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.