#include <vgui_gtk2_window.h>
Inheritance diagram for vgui_gtk2_window:

Provides functions for manipulating a window.
Definition at line 36 of file vgui_gtk2_window.h.
Public Member Functions | |
| vgui_gtk2_window (int w, int h, const vgui_menu &menu, const char *title) | |
| Constructor. | |
| vgui_gtk2_window (int w, int h, const char *title) | |
| Constructor. | |
| ~vgui_gtk2_window () | |
| Destructor. | |
| void | init () |
| Useful initialisation functions. | |
| void | show () |
| Display the window. | |
| void | hide () |
| Hide the window from view. | |
| void | reshape (unsigned, unsigned) |
| Change window shape to new given width and height. | |
| void | set_title (vcl_string const &) |
| Use the given text as the window title (if the window has a title). | |
| void | set_menubar (const vgui_menu &menu) |
| Puts the given menubar onto the window. | |
| vgui_adaptor * | get_adaptor () |
| Returns the current adaptor (OpenGL widget holder). | |
| void | set_adaptor (vgui_adaptor *a) |
| Set the default adaptor (if it exists) to the given vgui_adaptor. | |
| vgui_statusbar * | get_statusbar () |
| Get the status bar (if it exists). | |
| void | set_statusbar (bool) |
| If true, activate the statusbar (if it exists). | |
| virtual void | iconify () |
| Turn the window into an icon. | |
| virtual void | enable_hscrollbar (bool) |
| If true, activate horizontal scrollbar (if it exists). | |
| virtual void | enable_vscrollbar (bool) |
| If true, activate vertical scrollbar (if it exists). | |
| virtual void | reposition (int, int) |
| Move the window to the new given x,y position. | |
| virtual int | set_hscrollbar (int pos) |
| Set the position of the horizontal scrollbar, returns old position. | |
| virtual int | set_vscrollbar (int pos) |
| Set the position of the vertical scrollbar, returns old position. | |
Public Attributes | |
| bool | use_menubar |
| bool | use_statusbar |
| vgui_adaptor * | adaptor |
| vgui_statusbar * | statusbar |
| GtkWidget * | window |
| GtkWidget * | box |
| GtkWidget * | menubar |
Private Attributes | |
| vgui_menu * | last_menubar |
| vgui_gtk2_window::vgui_gtk2_window | ( | int | w, | |
| int | h, | |||
| const vgui_menu & | menu, | |||
| const char * | title | |||
| ) |
| vgui_gtk2_window::vgui_gtk2_window | ( | int | w, | |
| int | h, | |||
| const char * | title | |||
| ) |
| vgui_gtk2_window::~vgui_gtk2_window | ( | ) |
| void vgui_gtk2_window::init | ( | ) |
| void vgui_gtk2_window::show | ( | ) | [virtual] |
Display the window.
Reimplemented from vgui_window.
Definition at line 160 of file vgui_gtk2_window.cxx.
| void vgui_gtk2_window::hide | ( | ) | [virtual] |
Hide the window from view.
Reimplemented from vgui_window.
Definition at line 168 of file vgui_gtk2_window.cxx.
| void vgui_gtk2_window::reshape | ( | unsigned | , | |
| unsigned | ||||
| ) | [virtual] |
Change window shape to new given width and height.
Reimplemented from vgui_window.
Definition at line 173 of file vgui_gtk2_window.cxx.
| void vgui_gtk2_window::set_title | ( | vcl_string const & | ) | [virtual] |
Use the given text as the window title (if the window has a title).
Reimplemented from vgui_window.
Definition at line 179 of file vgui_gtk2_window.cxx.
| void vgui_gtk2_window::set_menubar | ( | const vgui_menu & | menu | ) | [virtual] |
Puts the given menubar onto the window.
Reimplemented from vgui_window.
Definition at line 141 of file vgui_gtk2_window.cxx.
| vgui_adaptor* vgui_gtk2_window::get_adaptor | ( | void | ) | [inline, virtual] |
Returns the current adaptor (OpenGL widget holder).
Reimplemented from vgui_window.
Definition at line 57 of file vgui_gtk2_window.h.
| void vgui_gtk2_window::set_adaptor | ( | vgui_adaptor * | a | ) | [inline, virtual] |
Set the default adaptor (if it exists) to the given vgui_adaptor.
These refer to the default/current adaptor, if that makes sense. It is not a requirement that it should make sense.
Reimplemented from vgui_window.
Definition at line 58 of file vgui_gtk2_window.h.
| vgui_statusbar* vgui_gtk2_window::get_statusbar | ( | ) | [inline, virtual] |
Get the status bar (if it exists).
Reimplemented from vgui_window.
Definition at line 60 of file vgui_gtk2_window.h.
| void vgui_gtk2_window::set_statusbar | ( | bool | ) | [inline, virtual] |
If true, activate the statusbar (if it exists).
Reimplemented from vgui_window.
Definition at line 61 of file vgui_gtk2_window.h.
| void vgui_window::iconify | ( | ) | [virtual, inherited] |
Turn the window into an icon.
Reimplemented in vgui_glut_window, vgui_mfc_window, and vgui_wx_window.
Definition at line 65 of file vgui_window.cxx.
| void vgui_window::enable_hscrollbar | ( | bool | ) | [virtual, inherited] |
If true, activate horizontal scrollbar (if it exists).
Reimplemented in vgui_mfc_window, and vgui_wx_window.
Definition at line 50 of file vgui_window.cxx.
| void vgui_window::enable_vscrollbar | ( | bool | ) | [virtual, inherited] |
If true, activate vertical scrollbar (if it exists).
Reimplemented in vgui_mfc_window, and vgui_wx_window.
Definition at line 55 of file vgui_window.cxx.
| void vgui_window::reposition | ( | int | , | |
| int | ||||
| ) | [virtual, inherited] |
Move the window to the new given x,y position.
Reimplemented in vgui_glut_window, vgui_mfc_window, and vgui_wx_window.
Definition at line 75 of file vgui_window.cxx.
| int vgui_window::set_hscrollbar | ( | int | pos | ) | [virtual, inherited] |
Set the position of the horizontal scrollbar, returns old position.
Reimplemented in vgui_mfc_window, and vgui_wx_window.
Definition at line 85 of file vgui_window.cxx.
| int vgui_window::set_vscrollbar | ( | int | pos | ) | [virtual, inherited] |
Set the position of the vertical scrollbar, returns old position.
Reimplemented in vgui_mfc_window, and vgui_wx_window.
Definition at line 91 of file vgui_window.cxx.
Definition at line 44 of file vgui_gtk2_window.h.
Definition at line 45 of file vgui_gtk2_window.h.
Definition at line 64 of file vgui_gtk2_window.h.
Definition at line 65 of file vgui_gtk2_window.h.
| GtkWidget* vgui_gtk2_window::window |
Definition at line 67 of file vgui_gtk2_window.h.
| GtkWidget* vgui_gtk2_window::box |
Definition at line 68 of file vgui_gtk2_window.h.
| GtkWidget* vgui_gtk2_window::menubar |
Definition at line 69 of file vgui_gtk2_window.h.
vgui_menu* vgui_gtk2_window::last_menubar [private] |
Definition at line 74 of file vgui_gtk2_window.h.
1.5.1