Gimp.ParamSpecObject¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
Details¶
- class Gimp.ParamSpecObject¶
- classmethod duplicate(pspec)¶
- Parameters:
pspec (
GObject.ParamSpec
) – a [struct`Gimp`.ParamSpecObject].- Returns:
a newly created param spec.
- Return type:
This function duplicates pspec appropriately, depending on the accurate spec type.
- classmethod get_default(pspec)¶
- Parameters:
pspec (
GObject.ParamSpec
) – aGObject.Object
GObject.ParamSpec
- Returns:
the default value.
- Return type:
Get the default object value of the param spec.
If the pspec has been registered with a specific default (which can be verified with [func`Gimp`.ParamSpecObject.has_default]), it will be returned, though some specific subtypes may support returning dynamic default (e.g. based on context).
- classmethod has_default(pspec)¶
- Parameters:
pspec (
GObject.ParamSpec
) – aGObject.Object
GObject.ParamSpec
- Returns:
whether a default value was set.
- Return type:
This function tells whether a default was set, typically with [func`Gimp`.ParamSpecObject.set_default] or any other way. It does not guarantee that the default is an actual object (it may be
None
if valid as a default).
- classmethod set_default(pspec, default_value)¶
- Parameters:
pspec (
GObject.ParamSpec
) – aGObject.Object
GObject.ParamSpec
default_value (
GObject.Object
orNone
) – a default value.
Set the default object value of the param spec. This will switch the
has_default
flag so that [func`Gimp`.ParamSpecObject.has_default] will now returnTrue
.A
None
default_value still counts as a default (unless the specific pspec does not allowNone
as a default).