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