Public Member Functions | Public Attributes | Private Attributes
vgui_mfc_window Class Reference

The MFC implementation of vgui_window. More...

#include <vgui_mfc_window.h>

Inheritance diagram for vgui_mfc_window:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void init_window (char const *title, vgui_menu const &menubar, bool has_menu, unsigned width, unsigned height, int posx, int posy)
 Initialise window - common functionality called by all constructors.
 vgui_mfc_window (char const *title, unsigned w, unsigned h, int posx=-1, int posy=-1)
 Constructor for window without menubar.
 vgui_mfc_window (unsigned w, unsigned h, vgui_menu const &menubar, char const *title)
 Constructor for window with menubar.
 ~vgui_mfc_window ()
 Destructor - delete this vgui_mfc_window.
void set_menubar (vgui_menu const &m)
 Set menubar and update main window's actual menu.
vgui_adaptorget_adaptor ()
 Return the vgui_mfc_adaptor associated with this window.
vgui_statusbarget_statusbar ()
 Return the vgui_mfc_adaptor associated with this window.
void show ()
 Display the window.
void hide ()
 Hide the window from view.
void iconify ()
 Turn the window into an icon.
void enable_hscrollbar (bool)
 Enable horizontal scrollbar on window.
void enable_vscrollbar (bool)
 Enable vertical scrollbar on window.
void reshape (unsigned, unsigned)
 Change window shape to new given width and height.
void reposition (int, int)
 Move the window to the new given x,y position.
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.
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.

Public Attributes

POSITION pos1
POSITION pos2
POSITION pos3

Private Attributes

vgui_menu menubar
vgui_mfc_adaptormfcwin
vgui_mfc_statusbarstatusbar

Detailed Description

The MFC implementation of vgui_window.

Based on vgui_glut_win.

Definition at line 34 of file vgui_mfc_window.h.


Constructor & Destructor Documentation

vgui_mfc_window::vgui_mfc_window ( char const *  title,
unsigned  w,
unsigned  h,
int  posx = -1,
int  posy = -1 
)

Constructor for window without menubar.

Definition at line 67 of file vgui_mfc_window.cxx.

vgui_mfc_window::vgui_mfc_window ( unsigned  w,
unsigned  h,
vgui_menu const &  menubar,
char const *  title 
)

Constructor for window with menubar.

Definition at line 79 of file vgui_mfc_window.cxx.

vgui_mfc_window::~vgui_mfc_window ( )

Destructor - delete this vgui_mfc_window.

Destructor.

Definition at line 90 of file vgui_mfc_window.cxx.


Member Function Documentation

void vgui_mfc_window::enable_hscrollbar ( bool  show) [virtual]

Enable horizontal scrollbar on window.

Reimplemented from vgui_window.

Definition at line 131 of file vgui_mfc_window.cxx.

void vgui_mfc_window::enable_vscrollbar ( bool  show) [virtual]

Enable vertical scrollbar on window.

Reimplemented from vgui_window.

Definition at line 137 of file vgui_mfc_window.cxx.

vgui_adaptor * vgui_mfc_window::get_adaptor ( void  ) [virtual]

Return the vgui_mfc_adaptor associated with this window.

Reimplemented from vgui_window.

Definition at line 108 of file vgui_mfc_window.cxx.

vgui_statusbar * vgui_mfc_window::get_statusbar ( void  ) [virtual]

Return the vgui_mfc_adaptor associated with this window.

Return the vgui_mfc_statusbar associated with this window.

Reimplemented from vgui_window.

Definition at line 114 of file vgui_mfc_window.cxx.

void vgui_mfc_window::hide ( ) [virtual]

Hide the window from view.

Reimplemented from vgui_window.

Definition at line 125 of file vgui_mfc_window.cxx.

void vgui_mfc_window::iconify ( ) [virtual]

Turn the window into an icon.

Reimplemented from vgui_window.

Definition at line 143 of file vgui_mfc_window.cxx.

void vgui_mfc_window::init_window ( char const *  title,
vgui_menu const &  menubar,
bool  has_menu,
unsigned  width,
unsigned  height,
int  posx,
int  posy 
)

Initialise window - common functionality called by all constructors.

Definition at line 28 of file vgui_mfc_window.cxx.

void vgui_mfc_window::reposition ( int  ,
int   
) [virtual]

Move the window to the new given x,y position.

Reimplemented from vgui_window.

Definition at line 169 of file vgui_mfc_window.cxx.

void vgui_mfc_window::reshape ( unsigned  ,
unsigned   
) [virtual]

Change window shape to new given width and height.

Reimplemented from vgui_window.

Definition at line 149 of file vgui_mfc_window.cxx.

void vgui_window::set_adaptor ( vgui_adaptor ) [virtual, inherited]

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 in vgui_gtk2_window, vgui_gtk_window, vgui_wx_window, and vgui_win32_window.

Definition at line 25 of file vgui_window.cxx.

int vgui_mfc_window::set_hscrollbar ( int  pos) [virtual]

Set the position of the horizontal scrollbar, returns old position.

Reimplemented from vgui_window.

Definition at line 200 of file vgui_mfc_window.cxx.

void vgui_mfc_window::set_menubar ( vgui_menu const &  m) [virtual]

Set menubar and update main window's actual menu.

Reimplemented from vgui_window.

Definition at line 101 of file vgui_mfc_window.cxx.

virtual void vgui_window::set_statusbar ( bool  ) [inline, virtual, inherited]

If true, activate the statusbar (if it exists).

Reimplemented in vgui_gtk2_window, vgui_gtk_window, vgui_wx_window, and vgui_win32_window.

Definition at line 46 of file vgui_window.h.

void vgui_mfc_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 193 of file vgui_mfc_window.cxx.

int vgui_mfc_window::set_vscrollbar ( int  pos) [virtual]

Set the position of the vertical scrollbar, returns old position.

Reimplemented from vgui_window.

Definition at line 207 of file vgui_mfc_window.cxx.

void vgui_mfc_window::show ( ) [virtual]

Display the window.

Reimplemented from vgui_window.

Definition at line 119 of file vgui_mfc_window.cxx.


Member Data Documentation

Definition at line 81 of file vgui_mfc_window.h.

Definition at line 83 of file vgui_mfc_window.h.

Definition at line 78 of file vgui_mfc_window.h.

Definition at line 78 of file vgui_mfc_window.h.

Definition at line 78 of file vgui_mfc_window.h.

Definition at line 84 of file vgui_mfc_window.h.


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