Package ch.bailu.gtk.type
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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPointer
(PointerContainer pointerContainer) Casting constructor to access another interface. -
Method Summary
Modifier and TypeMethodDescriptionfinal long
final PointerContainer
cast()
Pass the return value of this function to the casting constructor of any class derived from PointerconnectSignal
(String detailedSignal, com.sun.jna.Callback callback) Connect GTK signal to JNA callback.final void
final void
disconnectSignals
(String detailedSignal) boolean
int
hashCode()
final void
final void
toString()
final void
final void
unregisterCallbacks
(String detailedName) Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
NULL
-
-
Constructor Details
-
Pointer
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 interfacePointerInterface
-
cast
Pass the return value of this function to the casting constructor of any class derived from Pointer- Specified by:
cast
in interfacePointerInterface
- Returns:
- CPointer (wraps a C pointer of a GTK class or record)
- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-
throwNullPointerException
-
throwIfNull
public final void throwIfNull()- Specified by:
throwIfNull
in interfacePointerInterface
-
connectSignal
Connect GTK signal to JNA callback.- Parameters:
detailedSignal
- GTK signal namecallback
- JNA callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
disconnectSignals
public final void disconnectSignals() -
disconnectSignals
-
unregisterCallbacks
public final void unregisterCallbacks() -
unregisterCallbacks
-