#[repr(C)]pub struct _GParamSpecClass {
pub g_type_class: GTypeClass,
pub value_type: GType,
pub finalize: Option<unsafe extern "C" fn(pspec: *mut GParamSpec)>,
pub value_set_default: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue)>,
pub value_validate: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean>,
pub values_cmp: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value1: *const GValue, value2: *const GValue) -> gint>,
pub value_is_valid: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *const GValue) -> gboolean>,
pub dummy: [gpointer; 3],
}
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().
Fields§
§g_type_class: GTypeClass
§value_type: GType
§finalize: Option<unsafe extern "C" fn(pspec: *mut GParamSpec)>
§value_set_default: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue)>
§value_validate: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *mut GValue) -> gboolean>
§values_cmp: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value1: *const GValue, value2: *const GValue) -> gint>
§value_is_valid: Option<unsafe extern "C" fn(pspec: *mut GParamSpec, value: *const GValue) -> gboolean>
§dummy: [gpointer; 3]
Trait Implementations§
Source§impl Clone for _GParamSpecClass
impl Clone for _GParamSpecClass
Source§fn clone(&self) -> _GParamSpecClass
fn clone(&self) -> _GParamSpecClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more