org.gnu.glib
Class MainLoop
The MainLoop represents a main event loop. After it has been created, one
should call
run() to cause it to start processing the events. To
exit the main loop, call
quit().
MainLoop()- Creates a new MainLoop with the default context.
|
boolean | isRunning()- Checks to see if the main loop is currently being run via
run().
|
void | quit()- Stops the main loop from running.
|
void | run()- Runs a main loop until
quit() is called on the loop.
|
MainLoop
public MainLoop()
Creates a new MainLoop with the default context. After creation, the
MainLoop is not running.
isRunning
public boolean isRunning()
Checks to see if the main loop is currently being run via
run().
- TRUE if the main loop is currently being run.
quit
public void quit()
Stops the main loop from running.
run
public void run()
Runs a main loop until
quit() is called on the loop.