wxWidgets implementation of vgui_window. More...
#include <vgui_wx_window.h>
Public Member Functions | |
vgui_wx_window (int width, int height, const char *title) | |
Constructor - create a new window. | |
vgui_wx_window (int width, int height, const vgui_menu &menubar, const char *title) | |
Constructor - create a new window with a menubar. | |
virtual | ~vgui_wx_window () |
Destructor. | |
virtual void | set_menubar (vgui_menu const &) |
Put the given menu in the menubar (if it exists). | |
virtual void | set_statusbar (bool) |
If true, activate the statusbar (if it exists). | |
virtual void | set_adaptor (vgui_adaptor *) |
Set the default adaptor (if it exists) to the given vgui_adaptor. | |
virtual vgui_adaptor * | get_adaptor () |
Get the default adaptor (if it exists). | |
virtual vgui_statusbar * | get_statusbar () |
Get the status bar (if it exists). | |
virtual void | show () |
Display the window. | |
virtual void | hide () |
Hide the window from view. | |
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 | reshape (unsigned, unsigned) |
Change window shape to new given width and height. | |
virtual void | reposition (int, int) |
Move the window to the new given x,y position. | |
virtual void | set_title (vcl_string const &) |
Use the given text as the window title (if the window has a title). | |
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. | |
Private Member Functions | |
void | init_window () |
Catch all constructor. | |
Private Attributes | |
wxFrame * | frame_ |
The wxWidgets window. | |
vgui_wx_adaptor * | adaptor_ |
vgui_adaptor associated with this window. | |
vgui_wx_statusbar * | statusbar_ |
Statusbar that vgui writes to. | |
vgui_wx_menu * | menu_ |
wxMenuBar event handler and menu. | |
vcl_string | title_ |
Title of the window. |
wxWidgets implementation of vgui_window.
Creates a top-level window in wxWidgets and provides methods for its management and customization.
Definition at line 27 of file vgui_wx_window.h.
vgui_wx_window::vgui_wx_window | ( | int | width, |
int | height, | ||
const char * | title | ||
) |
Constructor - create a new window.
Definition at line 25 of file vgui_wx_window.cxx.
vgui_wx_window::vgui_wx_window | ( | int | width, |
int | height, | ||
const vgui_menu & | menubar, | ||
const char * | title | ||
) |
Constructor - create a new window with a menubar.
Definition at line 34 of file vgui_wx_window.cxx.
vgui_wx_window::~vgui_wx_window | ( | void | ) | [virtual] |
Destructor.
Definition at line 46 of file vgui_wx_window.cxx.
void vgui_wx_window::enable_hscrollbar | ( | bool | show | ) | [virtual] |
If true, activate horizontal scrollbar (if it exists).
Reimplemented from vgui_window.
Definition at line 126 of file vgui_wx_window.cxx.
void vgui_wx_window::enable_vscrollbar | ( | bool | show | ) | [virtual] |
If true, activate vertical scrollbar (if it exists).
Reimplemented from vgui_window.
Definition at line 140 of file vgui_wx_window.cxx.
vgui_adaptor * vgui_wx_window::get_adaptor | ( | void | ) | [virtual] |
Get the default adaptor (if it exists).
Reimplemented from vgui_window.
Definition at line 114 of file vgui_wx_window.cxx.
vgui_statusbar * vgui_wx_window::get_statusbar | ( | void | ) | [virtual] |
Get the status bar (if it exists).
Reimplemented from vgui_window.
Definition at line 120 of file vgui_wx_window.cxx.
virtual void vgui_wx_window::hide | ( | ) | [inline, virtual] |
Hide the window from view.
Reimplemented from vgui_window.
Definition at line 63 of file vgui_wx_window.h.
virtual void vgui_wx_window::iconify | ( | ) | [inline, virtual] |
Turn the window into an icon.
Reimplemented from vgui_window.
Definition at line 66 of file vgui_wx_window.h.
void vgui_wx_window::init_window | ( | void | ) | [private] |
Catch all constructor.
Definition at line 60 of file vgui_wx_window.cxx.
void vgui_wx_window::reposition | ( | int | x, |
int | y | ||
) | [virtual] |
Move the window to the new given x,y position.
Reimplemented from vgui_window.
Definition at line 162 of file vgui_wx_window.cxx.
void vgui_wx_window::reshape | ( | unsigned | width, |
unsigned | height | ||
) | [virtual] |
Change window shape to new given width and height.
Reimplemented from vgui_window.
Definition at line 154 of file vgui_wx_window.cxx.
void vgui_wx_window::set_adaptor | ( | vgui_adaptor * | adaptor | ) | [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 103 of file vgui_wx_window.cxx.
int vgui_wx_window::set_hscrollbar | ( | int | pos | ) | [virtual] |
Set the position of the horizontal scrollbar, returns old position.
Reimplemented from vgui_window.
Definition at line 174 of file vgui_wx_window.cxx.
void vgui_wx_window::set_menubar | ( | vgui_menu const & | menubar | ) | [virtual] |
Put the given menu in the menubar (if it exists).
Reimplemented from vgui_window.
Definition at line 78 of file vgui_wx_window.cxx.
void vgui_wx_window::set_statusbar | ( | bool | activate | ) | [virtual] |
If true, activate the statusbar (if it exists).
Reimplemented from vgui_window.
Definition at line 95 of file vgui_wx_window.cxx.
void vgui_wx_window::set_title | ( | vcl_string const & | title | ) | [virtual] |
Use the given text as the window title (if the window has a title).
Reimplemented from vgui_window.
Definition at line 168 of file vgui_wx_window.cxx.
int vgui_wx_window::set_vscrollbar | ( | int | pos | ) | [virtual] |
Set the position of the vertical scrollbar, returns old position.
Reimplemented from vgui_window.
Definition at line 182 of file vgui_wx_window.cxx.
virtual void vgui_wx_window::show | ( | ) | [inline, virtual] |
vgui_wx_adaptor* vgui_wx_window::adaptor_ [private] |
vgui_adaptor associated with this window.
Definition at line 97 of file vgui_wx_window.h.
wxFrame* vgui_wx_window::frame_ [private] |
The wxWidgets window.
Definition at line 94 of file vgui_wx_window.h.
vgui_wx_menu* vgui_wx_window::menu_ [private] |
wxMenuBar event handler and menu.
Definition at line 103 of file vgui_wx_window.h.
vgui_wx_statusbar* vgui_wx_window::statusbar_ [private] |
Statusbar that vgui writes to.
Definition at line 100 of file vgui_wx_window.h.
vcl_string vgui_wx_window::title_ [private] |
Title of the window.
Definition at line 106 of file vgui_wx_window.h.