Type Alias GParamSpecClass

Source
pub type GParamSpecClass = _GParamSpecClass;
Expand description

GParamSpecClass: @g_type_class: the parent class @value_type: the #GValue type for this parameter @finalize: The instance finalization function (optional), should chain up to the finalize method of the parent class. @value_set_default: Resets a @value to the default value for this type (recommended, the default is g_value_reset()), see g_param_value_set_default(). @value_validate: Ensures that the contents of @value comply with the specifications set out by this type (optional), see g_param_value_validate(). @values_cmp: Compares @value1 with @value2 according to this type (recommended, the default is memcmp()), see g_param_values_cmp(). @value_is_valid: Checks if contents of @value comply with the specifications set out by this type, without modifying the value. This vfunc is optional. If it isn’t set, GObject will use @value_validate. Since 2.74

The class structure for the GParamSpec type. Normally, GParamSpec classes are filled by g_param_type_register_static().

Aliased Type§

struct GParamSpecClass {
    pub g_type_class: _GTypeClass,
    pub value_type: u64,
    pub finalize: Option<unsafe extern "C" fn(*mut _GParamSpec)>,
    pub value_set_default: Option<unsafe extern "C" fn(*mut _GParamSpec, *mut _GValue)>,
    pub value_validate: Option<unsafe extern "C" fn(*mut _GParamSpec, *mut _GValue) -> i32>,
    pub values_cmp: Option<unsafe extern "C" fn(*mut _GParamSpec, *const _GValue, *const _GValue) -> i32>,
    pub value_is_valid: Option<unsafe extern "C" fn(*mut _GParamSpec, *const _GValue) -> i32>,
    pub dummy: [*mut c_void; 3],
}

Fields§

§g_type_class: _GTypeClass§value_type: u64§finalize: Option<unsafe extern "C" fn(*mut _GParamSpec)>§value_set_default: Option<unsafe extern "C" fn(*mut _GParamSpec, *mut _GValue)>§value_validate: Option<unsafe extern "C" fn(*mut _GParamSpec, *mut _GValue) -> i32>§values_cmp: Option<unsafe extern "C" fn(*mut _GParamSpec, *const _GValue, *const _GValue) -> i32>§value_is_valid: Option<unsafe extern "C" fn(*mut _GParamSpec, *const _GValue) -> i32>§dummy: [*mut c_void; 3]