GObject.ParamSpecPool¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GObject.ParamSpecPool¶
A
GObject.ParamSpecPool
maintains a collection ofGObject.ParamSpecs
which can be quickly accessed by owner and name.The implementation of the
GObject.Object
property system uses such a pool to store theGObject.ParamSpecs
of the properties all object types.- free()[source]¶
Frees the resources allocated by a
GObject.ParamSpecPool
.New in version 2.80.
- insert(pspec, owner_type)[source]¶
- Parameters:
pspec (
GObject.ParamSpec
) – theGObject.ParamSpec
to insertowner_type (
GObject.GType
) – aGObject.GType
identifying the owner of pspec
Inserts a
GObject.ParamSpec
in the pool.
- list(owner_type)[source]¶
- Parameters:
owner_type (
GObject.GType
) – the owner to look for- Returns:
a newly allocated array containing pointers to all
GObject.ParamSpecs
owned by owner_type in the pool- Return type:
Gets an array of all
GObject.ParamSpecs
owned by owner_type in the pool.
- list_owned(owner_type)[source]¶
- Parameters:
owner_type (
GObject.GType
) – the owner to look for- Returns:
a
GLib.List
of allGObject.ParamSpecs
owned by owner_type in the pool:obj:GObject.ParamSpecs <GObject.ParamSpec>.- Return type:
Gets an
GLib.List
of allGObject.ParamSpecs
owned by owner_type in the pool.
- lookup(param_name, owner_type, walk_ancestors)[source]¶
- Parameters:
param_name (
str
) – the name to look forowner_type (
GObject.GType
) – the owner to look forwalk_ancestors (
bool
) – IfTrue
, also try to find aGObject.ParamSpec
with param_name owned by an ancestor of owner_type.
- Returns:
The found
GObject.ParamSpec
, orNone
if no matchingGObject.ParamSpec
was found.- Return type:
Looks up a
GObject.ParamSpec
in the pool.
- remove(pspec)[source]¶
- Parameters:
pspec (
GObject.ParamSpec
) – theGObject.ParamSpec
to remove
Removes a
GObject.ParamSpec
from the pool.