Class ClosureNotifyData

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

@Generated("org.javagi.JavaGI") public class ClosureNotifyData extends ProxyInstance
  • Constructor Details

    • ClosureNotifyData

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

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

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

      public ClosureNotifyData(MemorySegment data, ClosureNotify notify, Arena arena)
      Allocate a new ClosureNotifyData with the fields set to the provided values.
      Parameters:
      data - value for the field data
      notify - value for the field notify
      arena - to control the memory allocation scope
    • ClosureNotifyData

      public ClosureNotifyData(MemorySegment data, ClosureNotify notify)
      Allocate a new ClosureNotifyData with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      data - value for the field data
      notify - value for the field notify
  • Method Details

    • getMemoryLayout

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

      public MemorySegment readData()
      Read the value of the field data.
      Returns:
      The value of the field data
    • writeData

      public void writeData(MemorySegment data)
      Write a value in the field data.
      Parameters:
      data - The new value for the field data
    • readNotify

      public @Nullable ClosureNotify readNotify()
      Read the value of the field notify.
      Returns:
      The value of the field notify
    • writeNotify

      public void writeNotify(@Nullable ClosureNotify notify, Arena _arena)
      Write a value in the field notify.
      Parameters:
      notify - The new value for the field notify
      _arena - to control the memory allocation scope