|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.gtk.Gtk
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 boolean |
getFalse()
Analogical to getTrue() . |
static boolean |
getTrue()
All this function does is to return TRUE. |
static void |
init(java.lang.String[] args)
This method should be called before using any java-gnome objects. |
static boolean |
isGtkThread()
Returns true if the current thread is the Gtk thread |
static void |
main()
Runs the main event loop. |
static boolean |
mainIteration()
Runs a single iteration of the main loop. |
static boolean |
mainIterationDo(boolean blocking)
Runs a single iteration of the mainloop. |
static void |
mainQuit()
Quit the main event loop. |
void |
propagateEvent(Widget widget,
Event event)
Sends an event to a widget, propagating the event to parent widgets if the event remains unhandled. |
static void |
removeKeySnoopMethod()
Removes current the key snooper method. |
static void |
setKeySnoopMethod(KeySnoopMethod method)
Installs a key snooper method, which will get called on all key events before delivering them normally. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void init(java.lang.String[] args)
args
- The command line arguments passed to the applicaion.public static void main()
public static boolean isGtkThread()
public static boolean mainIteration()
public static void mainQuit()
public static boolean eventsPending()
public static boolean getTrue()
public static boolean getFalse()
getTrue()
. This function does nothing but always
return FALSE.
public static boolean mainIterationDo(boolean blocking)
blocking
- TRUE if you want GTK+ to block if no events are pending.
mainQuit()
has been called for the
innermost mainloop.public static void setKeySnoopMethod(KeySnoopMethod method)
public static void removeKeySnoopMethod()
public void propagateEvent(Widget widget, Event event)
widget
- A Widget.event
- An Event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |