The GTK implementation of vgui_window. More...
#include <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 |
The GTK implementation of vgui_window.
Provides functions for manipulating a window.
Definition at line 41 of file vgui_gtk2_window.h.
vgui_gtk2_window::vgui_gtk2_window | ( | int | w, |
int | h, | ||
const vgui_menu & | menu, | ||
const char * | title | ||
) |
Constructor.
Definition at line 68 of file vgui_gtk2_window.cxx.
vgui_gtk2_window::vgui_gtk2_window | ( | int | w, |
int | h, | ||
const char * | title | ||
) |
Constructor.
Definition at line 42 of file vgui_gtk2_window.cxx.
vgui_gtk2_window::~vgui_gtk2_window | ( | ) |
Destructor.
Definition at line 96 of file vgui_gtk2_window.cxx.
void vgui_window::enable_hscrollbar | ( | bool | ) | [virtual, inherited] |
If true, activate horizontal scrollbar (if it exists).
Reimplemented in vgui_wx_window, vgui_win32_window, and vgui_mfc_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_wx_window, vgui_win32_window, and vgui_mfc_window.
Definition at line 55 of file vgui_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 62 of file vgui_gtk2_window.h.
vgui_statusbar* vgui_gtk2_window::get_statusbar | ( | void | ) | [inline, virtual] |
Get the status bar (if it exists).
Reimplemented from vgui_window.
Definition at line 65 of file vgui_gtk2_window.h.
void vgui_gtk2_window::hide | ( | ) | [virtual] |
Hide the window from view.
Reimplemented from vgui_window.
Definition at line 169 of file vgui_gtk2_window.cxx.
void vgui_window::iconify | ( | ) | [virtual, inherited] |
Turn the window into an icon.
Reimplemented in vgui_wx_window, vgui_win32_window, vgui_mfc_window, and vgui_glut_window.
Definition at line 65 of file vgui_window.cxx.
void vgui_gtk2_window::init | ( | ) |
Useful initialisation functions.
Definition at line 106 of file vgui_gtk2_window.cxx.
void vgui_window::reposition | ( | int | , |
int | |||
) | [virtual, inherited] |
Move the window to the new given x,y position.
Reimplemented in vgui_wx_window, vgui_win32_window, vgui_mfc_window, and vgui_glut_window.
Definition at line 75 of file vgui_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 174 of file vgui_gtk2_window.cxx.
void vgui_gtk2_window::set_adaptor | ( | vgui_adaptor * | ) | [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 63 of file vgui_gtk2_window.h.
int vgui_window::set_hscrollbar | ( | int | pos | ) | [virtual, inherited] |
Set the position of the horizontal scrollbar, returns old position.
Reimplemented in vgui_win32_window, vgui_wx_window, and vgui_mfc_window.
Definition at line 85 of file vgui_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 143 of file vgui_gtk2_window.cxx.
void vgui_gtk2_window::set_statusbar | ( | bool | ) | [inline, virtual] |
If true, activate the statusbar (if it exists).
Reimplemented from vgui_window.
Definition at line 66 of file vgui_gtk2_window.h.
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 180 of file vgui_gtk2_window.cxx.
int vgui_window::set_vscrollbar | ( | int | pos | ) | [virtual, inherited] |
Set the position of the vertical scrollbar, returns old position.
Reimplemented in vgui_win32_window, vgui_wx_window, and vgui_mfc_window.
Definition at line 91 of file vgui_window.cxx.
void vgui_gtk2_window::show | ( | ) | [virtual] |
Display the window.
Reimplemented from vgui_window.
Definition at line 162 of file vgui_gtk2_window.cxx.
Definition at line 69 of file vgui_gtk2_window.h.
GtkWidget* vgui_gtk2_window::box |
Definition at line 73 of file vgui_gtk2_window.h.
vgui_menu* vgui_gtk2_window::last_menubar [private] |
Definition at line 79 of file vgui_gtk2_window.h.
GtkWidget* vgui_gtk2_window::menubar |
Definition at line 74 of file vgui_gtk2_window.h.
Definition at line 70 of file vgui_gtk2_window.h.
Definition at line 49 of file vgui_gtk2_window.h.
Definition at line 50 of file vgui_gtk2_window.h.
GtkWidget* vgui_gtk2_window::window |
Definition at line 72 of file vgui_gtk2_window.h.