GParamSpecClass

The class structure for the GParamSpec type. Normally, GParamSpec classes are filled by gobject.global.paramTypeRegisterStatic.

Members

Variables

dummy
void*[3] dummy;
finalize
void function(GParamSpec* pspec) finalize;

The instance finalization function (optional), should chain up to the finalize method of the parent class.

gTypeClass
GTypeClass gTypeClass;

the parent class

valueIsValid
bool function(GParamSpec* pspec, const(GValue)* value) valueIsValid;

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

valueSetDefault
void function(GParamSpec* pspec, GValue* value) valueSetDefault;

Resets a @value to the default value for this type (recommended, the default is gobject.value.Value.reset), see gobject.global.paramValueSetDefault.

valueType
GType valueType;

the #GValue type for this parameter

valueValidate
bool function(GParamSpec* pspec, GValue* value) valueValidate;

Ensures that the contents of @value comply with the specifications set out by this type (optional), see gobject.global.paramValueValidate.

valuesCmp
int function(GParamSpec* pspec, const(GValue)* value1, const(GValue)* value2) valuesCmp;

Compares @value1 with @value2 according to this type (recommended, the default is memcmp()), see gobject.global.paramValuesCmp.