Package org.gnome.gobject
Class Parameter
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.Parameter
- All Implemented Interfaces:
Proxy
Deprecated.
The GParameter struct is an auxiliary structure used
to hand parameter name/value pairs to g_object_newv().
-
Constructor Summary
ConstructorDescriptionDeprecated.Allocate a new Parameter.Deprecated.Allocate a new Parameter.Parameter
(MemorySegment address) Deprecated.Create a Parameter proxy instance for the provided memory address.Deprecated.Allocate a new Parameter with the fields set to the provided values.Deprecated.Allocate a new Parameter with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
Deprecated.The memory layout of the native struct.readName()
Deprecated.Read the value of the fieldname
.Deprecated.Read the value of the fieldvalue
.void
Deprecated.Write a value in the fieldname
.void
writeValue
(Value value) Deprecated.Write a value in the fieldvalue
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Parameter
Deprecated.Create a Parameter proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Parameter
Deprecated.Allocate a new Parameter.- Parameters:
arena
- to control the memory allocation scope
-
Parameter
public Parameter()Deprecated.Allocate a new Parameter. The memory is allocated withArena.ofAuto()
. -
Parameter
-
Parameter
Deprecated.Allocate a new Parameter with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
name
- value for the fieldname
value
- value for the fieldvalue
-
-
Method Details
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
readName
Deprecated.Read the value of the fieldname
.- Returns:
- The value of the field
name
-
writeName
-
readValue
Deprecated.Read the value of the fieldvalue
.- Returns:
- The value of the field
value
-
writeValue
Deprecated.Write a value in the fieldvalue
.- Parameters:
value
- The new value for the fieldvalue
-