Type Alias GClassFinalizeFunc

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

GClassFinalizeFunc: @g_class: (type GObject.TypeClass): The #GTypeClass structure to finalize @class_data: The @class_data member supplied via the #GTypeInfo structure

A callback function used by the type system to finalize a class.

This function is rarely needed, as dynamically allocated class resources should be handled by GBaseInitFunc() and GBaseFinalizeFunc().

Also, specification of a GClassFinalizeFunc() in the #GTypeInfo structure of a static type is invalid, because classes of static types will never be finalized (they are artificially kept alive when their reference count drops to zero).

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.