Package ch.bailu.gtk.glib
Klasse MainLoop
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.MainLoop
- Alle implementierten Schnittstellen:
PointerInterface
The `GMainLoop` struct is an opaque data type
representing the main event loop of a GLib or GTK application.
representing the main event loop of a GLib or GTK application.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMainLoop
(MainContext context, boolean is_running) Creates a new [struct@GLib.MainLoop] structure.MainLoop
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
Returns the [struct@GLib.MainContext] of @loop.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Checks to see if the main loop is currently being run via
[method@GLib.MainLoop.run].void
quit()
Stops a [struct@GLib.MainLoop] from running.ref()
Increases the reference count on a [struct@GLib.MainLoop] object by one.void
run()
Runs a main loop until [method@GLib.MainLoop.quit] is called on the loop.void
unref()
Decreases the reference count on a [struct@GLib.MainLoop] object by one.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
MainLoop
-
MainLoop
Creates a new [struct@GLib.MainLoop] structure.- Parameter:
context
- a #GMainContext (if %NULL, the global-default main context will be used).is_running
- set to %TRUE to indicate that the loop is running. This is not very important since calling [method@GLib.MainLoop.run] will set this to %TRUE anyway.
-
-
Methodendetails
-
getClassHandler
-
getContext
Returns the [struct@GLib.MainContext] of @loop.- Gibt zurück:
- the [struct@GLib.MainContext] of @loop
-
isRunning
public boolean isRunning()Checks to see if the main loop is currently being run via
[method@GLib.MainLoop.run].- Gibt zurück:
- %TRUE if the mainloop is currently being run.
-
quit
public void quit()Stops a [struct@GLib.MainLoop] from running. Any calls to
[method@GLib.MainLoop.run] for the loop will return.
Note that sources that have already been dispatched when
[method@GLib.MainLoop.quit] is called will still be executed. -
ref
Increases the reference count on a [struct@GLib.MainLoop] object by one.- Gibt zurück:
- @loop
-
run
public void run()Runs a main loop until [method@GLib.MainLoop.quit] is called on the loop.
If this is called for the thread of the loop's #GMainContext,
it will process events from the loop, otherwise it will
simply wait. -
unref
public void unref()Decreases the reference count on a [struct@GLib.MainLoop] object by one. If
the result is zero, free the loop and free all associated memory. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-