Package org.gnome.gobject
Class Parameter
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.Parameter
- All Implemented Interfaces:
Proxy
Deprecated.
This type is not introspectable.
The GParameter struct is an auxiliary structure used
to hand parameter name/value pairs to g_object_newv().
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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 MemoryLayoutDeprecated.The memory layout of the native struct.readName()Deprecated.Read the value of the fieldname.@Nullable ValueDeprecated.Read the value of the fieldvalue.voidDeprecated.Write a value in the fieldname.voidwriteValue(@Nullable Value value) Deprecated.Write a value in the fieldvalue.Methods inherited from class org.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 fieldnamevalue- 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
-