Package org.gnome.gobject
Class ParamSpecPool
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.ParamSpecPool
- All Implemented Interfaces:
Proxy
A
GParamSpecPool
maintains a collection of GParamSpecs
which can be
quickly accessed by owner and name.
The implementation of the GObject
property system uses such a pool to
store the GParamSpecs
of the properties all object types.
-
Constructor Summary
ConstructorDescriptionParamSpecPool
(MemorySegment address) Create a ParamSpecPool proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
Frees the resources allocated by aGParamSpecPool
.void
Inserts aGParamSpec
in the pool.Gets an array of allGParamSpecs
owned byownerType
in the pool.Gets anGList
of allGParamSpecs
owned byownerType
in the pool.Looks up aGParamSpec
in the pool.static ParamSpecPool
new_
(boolean typePrefixing) Creates a newGParamSpecPool
.void
Removes aGParamSpec
from the pool.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ParamSpecPool
Create a ParamSpecPool proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
new_
Creates a newGParamSpecPool
.If
typePrefixing
istrue
, 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 settypePrefixing
tofalse
.- Parameters:
typePrefixing
- Whether the pool will support type-prefixed property names.- Returns:
- a newly allocated
GParamSpecPool
.
-
free
public void free()Frees the resources allocated by aGParamSpecPool
. -
insert
-
list
-
listOwned
-
lookup
Looks up aGParamSpec
in the pool.- Parameters:
paramName
- the name to look forownerType
- the owner to look forwalkAncestors
- Iftrue
, also try to find aGParamSpec
withparamName
owned by an ancestor ofownerType
.- Returns:
- The found
GParamSpec
, ornull
if no matchingGParamSpec
was found.
-
remove
Removes aGParamSpec
from the pool.- Parameters:
pspec
- theGParamSpec
to remove
-