org.gnu.gtk
Class Gtk

java.lang.Object
  |
  +--org.gnu.gtk.Gtk

public class Gtk
extends java.lang.Object

This class is a catch-all for methods in GTK that are not associated with a GTK object.


Method Summary
static boolean eventsPending()
          Checks if any events are pending.
static void init(java.lang.String[] args)
          This method should be called before using any java-gnome objects.
static void main()
          Runs the main event loop.
static boolean mainIteration()
          Runs a single iteration of the main loop.
static void mainQuit()
          Quit the main event loop.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(java.lang.String[] args)
This method should be called before using any java-gnome objects. It initialized everything needed to use the native libraries. This method will terminate you program if it is unable to initialize the native libraries.

Parameters:
args - The command line arguments passed to the applicaion.

main

public static void main()
Runs the main event loop.


mainIteration

public static boolean mainIteration()
Runs a single iteration of the main loop. If no events are waiting to be processed GTK will block until the next event is noticed.


mainQuit

public static void mainQuit()
Quit the main event loop.


eventsPending

public static boolean eventsPending()
Checks if any events are pending. This can be used to update the GUI and invoke timeouts etc. while doing some time intensive computation.

Returns:
true if any events are pending.

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net