Package org.gnome.gobject
Class ParamSpecPool
java.lang.Object
org.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
ConstructorsConstructorDescriptionParamSpecPool(MemorySegment address) Create a ParamSpecPool proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Frees the resources allocated by aGParamSpecPool.voidInserts aGParamSpecin the pool.Gets an array of allGParamSpecsowned byownerTypein the pool.Gets anGListof allGParamSpecsowned byownerTypein the pool.@Nullable ParamSpecLooks up aGParamSpecin the pool.static ParamSpecPoolnew_(boolean typePrefixing) Creates a newGParamSpecPool.voidRemoves aGParamSpecfrom the pool.Methods inherited from class org.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
typePrefixingistrue, 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 settypePrefixingtofalse.- 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.- Since:
- 2.80
-
insert
-
list
-
listOwned
-
lookup
Looks up aGParamSpecin the pool.- Parameters:
paramName- the name to look forownerType- the owner to look forwalkAncestors- Iftrue, also try to find aGParamSpecwithparamNameowned by an ancestor ofownerType.- Returns:
- The found
GParamSpec, ornullif no matchingGParamSpecwas found.
-
remove
Removes aGParamSpecfrom the pool.- Parameters:
pspec- theGParamSpecto remove
-