Public Member Functions | Static Public Member Functions | Protected Member Functions
vgui_gtk2 Class Reference

The GTK+-2.0 implementation of vgui_toolkit. More...

#include <vgui_gtk2.h>

Inheritance diagram for vgui_gtk2:
Inheritance graph
[legend]

List of all members.

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_gtk2instance ()
 Singleton method instance.
static vgui_toolkitlookup (char const *)
static vcl_vector
< vgui_toolkit * > * 
registry ()

Protected Member Functions

virtual vcl_string name () const
 Returns the name of the GUI toolkit ("gtk2").
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_windowproduce_window (int width, int height, const vgui_menu &menubar, const char *title="vgui gtk window")
 Create a window with a menubar.
virtual vgui_windowproduce_window (int width, int height, const char *title="vgui gtk popup")
 Create a window.
virtual vgui_dialog_implproduce_dialog (const char *name)
 Create a dialog box.
 vgui_gtk2 ()
 Default constructor.
void init (int &, char **)
 Initialise the implementation of vgui.

Detailed Description

The GTK+-2.0 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_gtk2.h.


Constructor & Destructor Documentation

vgui_gtk2::vgui_gtk2 ( ) [inline, protected]

Default constructor.

Definition at line 74 of file vgui_gtk2.h.


Member Function Documentation

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_gtk2::flush ( void  ) [protected, virtual]

Clear all events from the event queue.

Reimplemented from vgui_toolkit.

Definition at line 66 of file vgui_gtk2.cxx.

void vgui_gtk2::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_gtk2.cxx.

vgui_gtk2 * vgui_gtk2::instance ( ) [static]

Singleton method instance.

Definition at line 20 of file vgui_gtk2.cxx.

vgui_toolkit * vgui_toolkit::lookup ( char const *  name) [static, inherited]

Definition at line 28 of file vgui_toolkit.cxx.

vcl_string vgui_gtk2::name ( void  ) const [protected, virtual]

Returns the name of the GUI toolkit ("gtk2").

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_gtk2.cxx.

vgui_dialog_impl * vgui_gtk2::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 100 of file vgui_gtk2.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_gtk2::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 82 of file vgui_gtk2.cxx.

vgui_window * vgui_gtk2::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 91 of file vgui_gtk2.cxx.

void vgui_gtk2::quit ( void  ) [protected, virtual]

Quit the application.

Reimplemented from vgui_toolkit.

Definition at line 72 of file vgui_gtk2.cxx.

vcl_vector< vgui_toolkit * > * vgui_toolkit::registry ( ) [static, inherited]

Definition at line 22 of file vgui_toolkit.cxx.

void vgui_gtk2::run ( void  ) [protected, virtual]

Run the event loop.

Virtual function from vgui. Runs the event loop.

Implements vgui_toolkit.

Definition at line 45 of file vgui_gtk2.cxx.

void vgui_gtk2::run_one_event ( void  ) [protected, virtual]

Run the next event.

Reimplemented from vgui_toolkit.

Definition at line 53 of file vgui_gtk2.cxx.

void vgui_gtk2::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 58 of file vgui_gtk2.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.


The documentation for this class was generated from the following files: