|
NAMEGtk2::mainMETHODSboolean = Gtk2->alternative_dialog_button_order ($screen=undef)
Since: gtk+ 2.6 event or undef = Gtk2->get_current_eventmodifiertype = Gtk2->get_current_event_stateunsigned = Gtk2->get_current_event_timelanguage = Gtk2->get_default_languageGtk2->disable_setlocalewidget or undef = Gtk2->get_event_widget ($event)
integer = Gtk2->events_pendingGtk2->grab_add ($widget)
widget or undef = Gtk2->grab_get_currentGtk2->grab_remove ($widget)
boolean = Gtk2->initInitialize Gtk+. This must be called before any other Gtk2 functions in a GUI application; the Gtk2 module's import method allows you to pass "-init" in the "use" statement to do this automatically. This function also scans @ARGV for any options it knows, and will remove them automagically.Note: this function will terminate your program if it is unable to initialize the gui for any reason. If you want your program to fall back to some other interface, you want to use "Gtk2->init_check" instead. Gtk2->init_add ($function, $data=undef)
boolean = Gtk2->init_checkThis is the non-fatal version of "Gtk2->init"; instead of calling "exit" if Gtk+ initialization fails, "Gtk2->init_check" returns false. This allows your application to fall back on some other means of communication with the user - for example a curses or command-line interface.integer = Gtk2->key_snooper_install ($snooper, $func_data=undef)
Install a key "snooper" function which will get called on all key events before those events are delivered normally. These snoopers can be used to implement custom key event handling. "key_snooper_install" returns an id that may be used with "key_snooper_remove" (below). snooper is called as stopbool = &snooper ($widget, $event, $func_data); It should return true to stop event propagation, the same as "Gtk2::Widget" event signal handlers. The "Gtk2::EVENT_STOP" and "Gtk2::EVENT_PROPAGATE" constants can be used for the return (see Gtk2::Widget). Gtk2->key_snooper_remove ($snooper_handler_id)
string = Gtk2->set_localeGtk2->mainGtk2->main_do_event ($event)
This is the event handler that GTK+ registers with GDK. GTK+ exposes it to allow filtering of events between GDK and GTK+; it is rare that you would need this, except if you are using "Gtk2::Gdk::Event::handler_set". boolean = Gtk2->main_iterationboolean = Gtk2->main_iteration_do ($blocking)
integer = Gtk2->main_levelGtk2->main_quitoptiongroup = Gtk2->get_option_group ($open_default_display)
Since: gtk+ 2.6 boolean = Gtk2->parse_argsSince: gtk+ 2.4integer = Gtk2->quit_add ($main_level, $function, $data=undef)
Gtk2->quit_add_destroy ($main_level, $object)
Gtk2->quit_remove ($quit_handler_id)
Gtk2::show_uri ($screen, $uri, $timestamp=GDK_CURRENT_TIME)
ENUMS AND FLAGSflags Gtk2::Gdk::ModifierType
SEE ALSOGtk2COPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |