Class SourceCallbackFuncs

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.SourceCallbackFuncs
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class SourceCallbackFuncs extends ProxyInstance
The GSourceCallbackFuncs struct contains functions for managing callback objects.
  • Constructor Details

    • SourceCallbackFuncs

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

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

      public SourceCallbackFuncs()
      Allocate a new SourceCallbackFuncs. The memory is allocated with Arena.ofAuto().
  • Method Details

    • getMemoryLayout

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

      public void overrideRef(SourceCallbackFuncs.RefCallback ref, Arena _arena)
      Write a value in the field ref.
      Parameters:
      ref - The new value for the field ref
      _arena - to control the memory allocation scope
    • overrideUnref

      public void overrideUnref(SourceCallbackFuncs.UnrefCallback unref, Arena _arena)
      Write a value in the field unref.
      Parameters:
      unref - The new value for the field unref
      _arena - to control the memory allocation scope
    • overrideGet

      public void overrideGet(SourceCallbackFuncs.GetCallback get, Arena _arena)
      Write a value in the field get.
      Parameters:
      get - The new value for the field get
      _arena - to control the memory allocation scope