Class Pointer

java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
All Implemented Interfaces:
PointerInterface
Direct Known Subclasses:
Event, Expression, Object, Outsider, ParamSpec, Record, RenderNode, Strs, Wrapper

public class Pointer extends Type implements PointerInterface
  • Field Details

    • NULL

      public static final Pointer NULL
  • Constructor Details

    • Pointer

      public Pointer(PointerContainer pointerContainer)
      Casting constructor to access another interface.
      Parameters:
      pointerContainer - Wraps a C pointerContainer of a GTK class or record
      See Also:
  • Method Details

    • asCPointer

      public final long asCPointer()
      Specified by:
      asCPointer in interface PointerInterface
    • cast

      public final PointerContainer cast()
      Pass the return value of this function to the casting constructor of any class derived from Pointer
      Specified by:
      cast in interface PointerInterface
      Returns:
      CPointer (wraps a C pointer of a GTK class or record)
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • throwNullPointerException

      public final void throwNullPointerException(String msg)
    • throwIfNull

      public final void throwIfNull()
      Specified by:
      throwIfNull in interface PointerInterface
    • connectSignal

      public SignalHandler connectSignal(String detailedSignal, com.sun.jna.Callback callback)
      Connect GTK signal to JNA callback.
      Parameters:
      detailedSignal - GTK signal name
      callback - JNA callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • disconnectSignals

      public final void disconnectSignals()
    • disconnectSignals

      public final void disconnectSignals(String detailedSignal)
    • unregisterCallbacks

      public final void unregisterCallbacks()
    • unregisterCallbacks

      public final void unregisterCallbacks(String detailedName)