Class Parameter

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.Parameter
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class Parameter extends ProxyInstance
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 Details

    • Parameter

      public Parameter(MemorySegment address)
      Deprecated.
      Create a Parameter proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • Parameter

      public Parameter(Arena arena)
      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 with Arena.ofAuto().
    • Parameter

      public Parameter(String name, Value value, Arena arena)
      Deprecated.
      Allocate a new Parameter with the fields set to the provided values.
      Parameters:
      name - value for the field name
      value - value for the field value
      arena - to control the memory allocation scope
    • Parameter

      public Parameter(String name, Value value)
      Deprecated.
      Allocate a new Parameter with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      name - value for the field name
      value - value for the field value
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readName

      public String readName()
      Deprecated.
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Deprecated.
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readValue

      public @Nullable Value readValue()
      Deprecated.
      Read the value of the field value.
      Returns:
      The value of the field value
    • writeValue

      public void writeValue(@Nullable Value value)
      Deprecated.
      Write a value in the field value.
      Parameters:
      value - The new value for the field value