Package org.gnome.gobject
Class ObjectConstructParam
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.ObjectConstructParam
- All Implemented Interfaces:
Proxy
The GObjectConstructParam struct is an auxiliary structure used to hand
GParamSpec/GValue pairs to the constructor of a GObjectClass.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new ObjectConstructParam.ObjectConstructParam(Arena arena) Allocate a new ObjectConstructParam.ObjectConstructParam(MemorySegment address) Create a ObjectConstructParam proxy instance for the provided memory address.ObjectConstructParam(ParamSpec pspec, Value value) Allocate a new ObjectConstructParam with the fields set to the provided values.ObjectConstructParam(ParamSpec pspec, Value value, Arena arena) Allocate a new ObjectConstructParam with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.Read the value of the fieldpspec.Read the value of the fieldvalue.voidwritePspec(ParamSpec pspec) Write a value in the fieldpspec.voidwriteValue(Value value) Write a value in the fieldvalue.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ObjectConstructParam
Create a ObjectConstructParam proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ObjectConstructParam
Allocate a new ObjectConstructParam.- Parameters:
arena- to control the memory allocation scope
-
ObjectConstructParam
public ObjectConstructParam()Allocate a new ObjectConstructParam. The memory is allocated withArena.ofAuto(). -
ObjectConstructParam
-
ObjectConstructParam
Allocate a new ObjectConstructParam with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
pspec- value for the fieldpspecvalue- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readPspec
Read the value of the fieldpspec.- Returns:
- The value of the field
pspec
-
writePspec
Write a value in the fieldpspec.- Parameters:
pspec- The new value for the fieldpspec
-
readValue
-
writeValue
Write a value in the fieldvalue.- Parameters:
value- The new value for the fieldvalue
-