GObject.ParamSpecPool¶
record (struct)
A ParamSpecPool maintains a collection of GParamSpecs which can be
quickly accessed by owner and name.
The implementation of the Object property system uses such a pool to
store the GParamSpecs of the properties all object types.
Methods¶
free¶
Frees the resources allocated by a ParamSpecPool.
insert¶
Inserts a ParamSpec in the pool.
Parameters:
pspec— theParamSpecto insertowner_type— aGTypeidentifying the owner ofpspec
list_¶
Gets an array of all GParamSpecs owned by owner_type in
the pool.
Parameters:
owner_type— the owner to look for
list_owned¶
Gets an GLib.List of all GParamSpecs owned by owner_type in
the pool.
Parameters:
owner_type— the owner to look for
lookup¶
def lookup(self, param_name: str, owner_type: type | Type, walk_ancestors: bool) -> ParamSpec | None
Looks up a ParamSpec in the pool.
Parameters:
param_name— the name to look forowner_type— the owner to look forwalk_ancestors— IfTrue, also try to find aParamSpecwithparam_nameowned by an ancestor ofowner_type.
remove¶
Removes a ParamSpec from the pool.
Parameters:
pspec— theParamSpecto remove