The GTK+ implementation of vgui_toolkit. More...
#include <vgui_gtk.h>

Public Member Functions | |
| virtual void | uninit () |
| virtual vgui_dialog_extensions_impl * | produce_dialog_extension (char const *name) |
| virtual void | add_event (vgui_event const &) |
Static Public Member Functions | |
| static vgui_gtk * | instance () |
| Singleton method instance. | |
| static vgui_toolkit * | lookup (char const *) |
| static vcl_vector < vgui_toolkit * > * | registry () |
Protected Member Functions | |
| virtual vcl_string | name () const |
| Returns the name of the GUI toolkit ("gtk"). | |
| virtual void | run () |
| Run the event loop. | |
| virtual void | run_one_event () |
| Run the next event. | |
| virtual void | run_till_idle () |
| Run until there are no more events left in the event queue. | |
| virtual void | flush () |
| Clear all events from the event queue. | |
| virtual void | quit () |
| Quit the application. | |
| virtual vgui_window * | produce_window (int width, int height, const vgui_menu &menubar, const char *title="vgui gtk window") |
| Create a window with a menubar. | |
| virtual vgui_window * | produce_window (int width, int height, const char *title="vgui gtk popup") |
| Create a window. | |
| virtual vgui_dialog_impl * | produce_dialog (const char *name) |
| Create a dialog box. | |
| vgui_gtk () | |
| Default constructor. | |
| void | init (int &, char **) |
| Initialise the implementation of vgui. | |
The GTK+ implementation of vgui_toolkit.
Provides functions for controlling the event loop. For info on GTK see: http://www.gtk.org/
Definition at line 35 of file vgui_gtk.h.
| vgui_gtk::vgui_gtk | ( | ) | [inline, protected] |
Default constructor.
Definition at line 74 of file vgui_gtk.h.
| void vgui_toolkit::add_event | ( | vgui_event const & | ) | [virtual, inherited] |
Reimplemented in vgui_win32, vgui_wx, and vgui_mfc.
Definition at line 124 of file vgui_toolkit.cxx.
| void vgui_gtk::flush | ( | void | ) | [protected, virtual] |
Clear all events from the event queue.
Reimplemented from vgui_toolkit.
Definition at line 62 of file vgui_gtk.cxx.
| void vgui_gtk::init | ( | int & | argc, |
| char ** | argv | ||
| ) | [protected, virtual] |
Initialise the implementation of vgui.
Virtual function from vgui. Initialise the implementation of vgui.
Reimplemented from vgui_toolkit.
Definition at line 34 of file vgui_gtk.cxx.
| vgui_gtk * vgui_gtk::instance | ( | ) | [static] |
Singleton method instance.
Definition at line 20 of file vgui_gtk.cxx.
| vgui_toolkit * vgui_toolkit::lookup | ( | char const * | name | ) | [static, inherited] |
Definition at line 28 of file vgui_toolkit.cxx.
| vcl_string vgui_gtk::name | ( | void | ) | const [protected, virtual] |
Returns the name of the GUI toolkit ("gtk").
Pure virtual function from vgui (this must be implemented).
Returns the name of the GUI toolkit.
Implements vgui_toolkit.
Definition at line 29 of file vgui_gtk.cxx.
| vgui_dialog_impl * vgui_gtk::produce_dialog | ( | const char * | name | ) | [protected, virtual] |
Create a dialog box.
Virtual function from vgui. Creates a new dialog box.
Reimplemented from vgui_toolkit.
Definition at line 94 of file vgui_gtk.cxx.
| vgui_dialog_extensions_impl * vgui_toolkit::produce_dialog_extension | ( | char const * | name | ) | [virtual, inherited] |
Reimplemented in vgui_win32, and vgui_mfc.
Definition at line 90 of file vgui_toolkit.cxx.
| vgui_window * vgui_gtk::produce_window | ( | int | width, |
| int | height, | ||
| const vgui_menu & | menubar, | ||
| const char * | title = "vgui gtk window" |
||
| ) | [protected, virtual] |
Create a window with a menubar.
Virtual function from vgui. Creates a new window with a menubar.
Reimplemented from vgui_toolkit.
Definition at line 76 of file vgui_gtk.cxx.
| vgui_window * vgui_gtk::produce_window | ( | int | width, |
| int | height, | ||
| const char * | title = "vgui gtk popup" |
||
| ) | [protected, virtual] |
Create a window.
Virtual function from vgui. Creates a new window.
Reimplemented from vgui_toolkit.
Definition at line 85 of file vgui_gtk.cxx.
| void vgui_gtk::quit | ( | void | ) | [protected, virtual] |
| vcl_vector< vgui_toolkit * > * vgui_toolkit::registry | ( | ) | [static, inherited] |
Definition at line 22 of file vgui_toolkit.cxx.
| void vgui_gtk::run | ( | void | ) | [protected, virtual] |
Run the event loop.
Virtual function from vgui. Runs the event loop.
Implements vgui_toolkit.
Definition at line 43 of file vgui_gtk.cxx.
| void vgui_gtk::run_one_event | ( | void | ) | [protected, virtual] |
| void vgui_gtk::run_till_idle | ( | void | ) | [protected, virtual] |
Run until there are no more events left in the event queue.
Reimplemented from vgui_toolkit.
Definition at line 54 of file vgui_gtk.cxx.
| void vgui_toolkit::uninit | ( | void | ) | [virtual, inherited] |
Reimplemented in vgui_mfc, vgui_win32, and vgui_wx.
Definition at line 129 of file vgui_toolkit.cxx.
1.7.5.1