:right-sidebar: True ParamSpecPool =================================================================== .. currentmodule:: gi.repository.GObject .. class:: ParamSpecPool(*args, **kwargs) :no-contents-entry: A :obj:`~gi.repository.GObject.ParamSpecPool` maintains a collection of :obj:`~gi.repository.GObject.ParamSpec` which can be quickly accessed by owner and name. The implementation of the :obj:`~gi.repository.GObject.Object` property system uses such a pool to store the :obj:`~gi.repository.GObject.ParamSpec` of the properties all object types. Methods ------- .. rst-class:: interim-class .. class:: ParamSpecPool :no-index: .. method:: free() -> None Frees the resources allocated by a :obj:`~gi.repository.GObject.ParamSpecPool`\. .. versionadded:: 2.80 .. method:: insert(pspec: ~gi.overrides.GObject.ParamSpec, owner_type: ~gobject.GType) -> None Inserts a :obj:`~gi.repository.GObject.ParamSpec` in the pool. :param pspec: the :obj:`~gi.repository.GObject.ParamSpec` to insert :param owner_type: a :obj:`~gi.repository.GObject.Type` identifying the owner of ``pspec`` .. method:: list(owner_type: ~gobject.GType) -> list[~gi.overrides.GObject.ParamSpec] Gets an array of all :obj:`~gi.repository.GObject.ParamSpec` owned by ``owner_type`` in the pool. :param owner_type: the owner to look for .. method:: list_owned(owner_type: ~gobject.GType) -> list[~gi.overrides.GObject.ParamSpec] Gets an ``GList`` of all :obj:`~gi.repository.GObject.ParamSpec` owned by ``owner_type`` in the pool. :param owner_type: the owner to look for .. method:: lookup(param_name: str, owner_type: ~gobject.GType, walk_ancestors: bool) -> ~gi.overrides.GObject.ParamSpec | None Looks up a :obj:`~gi.repository.GObject.ParamSpec` in the pool. :param param_name: the name to look for :param owner_type: the owner to look for :param walk_ancestors: If :const:`True`, also try to find a :obj:`~gi.repository.GObject.ParamSpec` with ``param_name`` owned by an ancestor of ``owner_type``\. .. method:: remove(pspec: ~gi.overrides.GObject.ParamSpec) -> None Removes a :obj:`~gi.repository.GObject.ParamSpec` from the pool. :param pspec: the :obj:`~gi.repository.GObject.ParamSpec` to remove