Package ch.bailu.gtk.glib
Klasse HookList
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.HookList
- Alle implementierten Schnittstellen:
PointerInterface
The #GHookList struct represents a list of hook functions.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfacestatic interface -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringunusedstatic final Stringthe function to call to finalize a #GHook element.static final Stringthe size of the #GHookList elements, in bytesstatic final Stringthe first #GHook element in the liststatic final String1 if the #GHookList has been initializedstatic final Stringthe next free #GHook id -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclear()Removes all the #GHook elements from a #GHookList.static ClassHandlerunusedch.bailu.gtk.glib.JnaHookList.OnHookFinalizeFuncthe function to call to finalize a #GHook element.the first #GHook element in the listintthe size of the #GHookList elements, in bytesint1 if the #GHookList has been initializedlongthe next free #GHook idvoidinit(int hook_size) Initializes a #GHookList.voidinvoke(boolean may_recurse) Calls all of the #GHook functions in a #GHookList.voidinvokeCheck(boolean may_recurse) Calls all of the #GHook functions in a #GHookList.voidmarshal(boolean may_recurse, HookList.OnHookMarshaller marshaller, Pointer marshal_data) Calls a function on each valid #GHook.voidmarshalCheck(boolean may_recurse, HookList.OnHookCheckMarshaller marshaller, Pointer marshal_data) Calls a function on each valid #GHook and destroys it if the
function returns %FALSE.voidsetFieldDummy3(Pointer dummy3) unusedvoidsetFieldFinalizeHook(HookList.OnHookFinalizeFunc finalize_hook) the function to call to finalize a #GHook element.voidsetFieldHooks(Hook hooks) the first #GHook element in the listvoidsetFieldHookSize(int hook_size) the size of the #GHookList elements, in bytesvoidsetFieldIsSetup(int is_setup) 1 if the #GHookList has been initializedvoidsetFieldSeqId(long seq_id) the next free #GHook idVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SEQ_ID
the next free #GHook id- Siehe auch:
-
HOOK_SIZE
the size of the #GHookList elements, in bytes- Siehe auch:
-
IS_SETUP
1 if the #GHookList has been initialized- Siehe auch:
-
HOOKS
the first #GHook element in the list- Siehe auch:
-
DUMMY3
unused- Siehe auch:
-
FINALIZE_HOOK
the function to call to finalize a #GHook element.
The default behaviour is to call the hooks @destroy function
SeeHookList.OnHookFinalizeFunc.onHookFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.glib.HookList, ch.bailu.gtk.glib.Hook)- Siehe auch:
-
-
Konstruktordetails
-
HookList
-
-
Methodendetails
-
getClassHandler
-
setFieldSeqId
public void setFieldSeqId(long seq_id) the next free #GHook id -
getFieldSeqId
public long getFieldSeqId()the next free #GHook id -
setFieldHookSize
public void setFieldHookSize(int hook_size) the size of the #GHookList elements, in bytes -
getFieldHookSize
public int getFieldHookSize()the size of the #GHookList elements, in bytes -
setFieldIsSetup
public void setFieldIsSetup(int is_setup) 1 if the #GHookList has been initialized -
getFieldIsSetup
public int getFieldIsSetup()1 if the #GHookList has been initialized -
setFieldHooks
the first #GHook element in the list -
getFieldHooks
the first #GHook element in the list -
setFieldDummy3
unused -
getFieldDummy3
unused -
setFieldFinalizeHook
the function to call to finalize a #GHook element.
The default behaviour is to call the hooks @destroy function
SeeHookList.OnHookFinalizeFunc.onHookFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.glib.HookList, ch.bailu.gtk.glib.Hook) -
getFieldFinalizeHook
public ch.bailu.gtk.glib.JnaHookList.OnHookFinalizeFunc getFieldFinalizeHook()the function to call to finalize a #GHook element.
The default behaviour is to call the hooks @destroy function
SeeHookList.OnHookFinalizeFunc.onHookFinalizeFunc(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.glib.HookList, ch.bailu.gtk.glib.Hook) -
clear
public void clear()Removes all the #GHook elements from a #GHookList. -
init
public void init(int hook_size) Initializes a #GHookList.
This must be called before the #GHookList is used.- Parameter:
hook_size- the size of each element in the #GHookList, typically `sizeof (GHook)`.
-
invoke
public void invoke(boolean may_recurse) Calls all of the #GHook functions in a #GHookList.- Parameter:
may_recurse- %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped
-
invokeCheck
public void invokeCheck(boolean may_recurse) Calls all of the #GHook functions in a #GHookList.
Any function which returns %FALSE is removed from the #GHookList.- Parameter:
may_recurse- %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped
-
marshal
public void marshal(boolean may_recurse, HookList.OnHookMarshaller marshaller, @Nullable Pointer marshal_data) Calls a function on each valid #GHook.- Parameter:
may_recurse- %TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to %FALSE, these are skippedmarshaller- the function to call for each #GHookmarshal_data- data to pass to @marshaller
-
marshalCheck
public void marshalCheck(boolean may_recurse, HookList.OnHookCheckMarshaller marshaller, @Nullable Pointer marshal_data) Calls a function on each valid #GHook and destroys it if the
function returns %FALSE.- Parameter:
may_recurse- %TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to %FALSE, these are skippedmarshaller- the function to call for each #GHookmarshal_data- data to pass to @marshaller
-