GObject.ParamSpecPool¶
Fields¶
None
Methods¶
| class | new (type_prefixing) |
insert (pspec, owner_type) |
|
list (owner_type) |
|
list_owned (owner_type) |
|
lookup (param_name, owner_type, walk_ancestors) |
|
remove (pspec) |
Details¶
-
class
GObject.ParamSpecPool¶ A
GObject.ParamSpecPoolmaintains a collection ofGObject.ParamSpecswhich can be quickly accessed by owner and name. The implementation of theGObject.Objectproperty system uses such a pool to store theGObject.ParamSpecsof the properties all object types.-
classmethod
new(type_prefixing)[source]¶ Parameters: type_prefixing ( bool) – Whether the pool will support type-prefixed property names.Returns: a newly allocated GObject.ParamSpecPool.Return type: GObject.ParamSpecPoolCreates a new
GObject.ParamSpecPool.If type_prefixing is
True, lookups in the newly created pool will allow to specify the owner as a colon-separated prefix of the property name, like “GtkContainer:border-width”. This feature is deprecated, so you should always set type_prefixing toFalse.
-
insert(pspec, owner_type)[source]¶ Parameters: - pspec (
GObject.ParamSpec) – theGObject.ParamSpecto insert - owner_type (
GObject.GType) – aGObject.GTypeidentifying the owner of pspec
Inserts a
GObject.ParamSpecin the pool.- pspec (
-
list(owner_type)[source]¶ Parameters: owner_type ( GObject.GType) – the owner to look forReturns: a newly allocated array containing pointers to all GObject.ParamSpecsowned by owner_type in the poolReturn type: [ GObject.ParamSpec]Gets an array of all
GObject.ParamSpecsowned by owner_type in the pool.
-
list_owned(owner_type)[source]¶ Parameters: owner_type ( GObject.GType) – the owner to look forReturns: a GLib.Listof allGObject.ParamSpecsowned by owner_type in the pool:obj:GObject.ParamSpecs <GObject.ParamSpec>.Return type: [ GObject.ParamSpec]Gets an
GLib.Listof allGObject.ParamSpecsowned by owner_type in the pool.
-
lookup(param_name, owner_type, walk_ancestors)[source]¶ Parameters: - param_name (
str) – the name to look for - owner_type (
GObject.GType) – the owner to look for - walk_ancestors (
bool) – IfTrue, also try to find aGObject.ParamSpecwith param_name owned by an ancestor of owner_type.
Returns: The found
GObject.ParamSpec, orNoneif no matchingGObject.ParamSpecwas found.Return type: Looks up a
GObject.ParamSpecin the pool.- param_name (
-
remove(pspec)[source]¶ Parameters: pspec ( GObject.ParamSpec) – theGObject.ParamSpecto removeRemoves a
GObject.ParamSpecfrom the pool.
-
classmethod