Class ObjectConstructParam

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

@Generated("org.javagi.JavaGI") public class ObjectConstructParam extends ProxyInstance
The GObjectConstructParam struct is an auxiliary structure used to hand GParamSpec/GValue pairs to the constructor of a GObjectClass.
  • Constructor Details

    • ObjectConstructParam

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

      public ObjectConstructParam(Arena arena)
      Allocate a new ObjectConstructParam.
      Parameters:
      arena - to control the memory allocation scope
    • ObjectConstructParam

      public ObjectConstructParam()
      Allocate a new ObjectConstructParam. The memory is allocated with Arena.ofAuto().
    • ObjectConstructParam

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

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

    • getMemoryLayout

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

      public ParamSpec readPspec()
      Read the value of the field pspec.
      Returns:
      The value of the field pspec
    • writePspec

      public void writePspec(ParamSpec pspec)
      Write a value in the field pspec.
      Parameters:
      pspec - The new value for the field pspec
    • readValue

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

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