index, gtk-- homepage
class Gtk_Main
#include <gtk--/main.h>
Base classes: Gtk_Signal_Base
Public member index
Protected member index
Private member index
Public member descriptions
instance
static Gtk_Main * Gtk_Main::instance();
access to one global instance of Gtk_Main.
grab_add
static void Gtk_Main::grab_add(Gtk_Widget *widget);
Prevents events to everything else than given widget and its
childs. This way you can create modal dialogs(not recommended).
grab_remove
static void Gtk_Main::grab_remove(Gtk_Widget *widget);
removes grab.
idle
static Signal0_r<gint> & Gtk_Main::idle();
idle() method provides way to setup a callback that will be
called when gtk has nothing else to do, when the execution has
returned from all callbacks etc..
Return value of the callback will determine if the callback is
removed. 0 means callback is removed, 1 means it'll be called again after
gtk next time has nothing to do.
Example:
gint thisclass::mymethod() { return 1; }
connect_to_method(Gtk_Main::idle(), this, &thisclass::mymethod);
timeout
static Signal0_r<gint> & Gtk_Main::timeout(guint32 interval);
timeout() provides way to setup a callback that will be called when
certain time has elapsed.
Return value of the callback will determine if the callback is
removed. 0 means callback is removed, 1 means it'll call it again after
the time has again elapsed.
Example:
gint thisclass::mymethod() { return 1; }
connect_to_method(Gtk_Main::timeout(100), this, &thisclass::mymethod);
Protected member descriptions
Private member descriptions
(pages generated by PERCEPS -script.)