Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
vgui_glut_window Struct Reference

The GLUT (OpenGL Utility Toolkit) implementation of vgui_window. More...

#include <vgui_glut_window.h>

Inheritance diagram for vgui_glut_window:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 vgui_glut_window (char const *title, unsigned w, unsigned h, int posx=-1, int posy=-1)
 ~vgui_glut_window ()
void set_menubar (vgui_menu const &m)
 Put the given menu in the menubar (if it exists).
vgui_adaptorget_adaptor ()
 Get the default adaptor (if it exists).
void show ()
 Display the window.
void hide ()
 Hide the window from view.
void iconify ()
 Turn the window into an icon.
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 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_statusbarget_statusbar ()
 Get the status bar (if it exists).
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 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

vgui_menu menubar
vgui_adaptorglutwin

Private Member Functions

void hello_from_adaptor ()

Private Attributes

bool pending_reshape
bool pending_reposition
int data0
int data1

Friends

struct vgui_glut_adaptor

Detailed Description

The GLUT (OpenGL Utility Toolkit) implementation of vgui_window.

Definition at line 14 of file vgui_glut_window.h.


Constructor & Destructor Documentation

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

Definition at line 6 of file vgui_glut_window.cxx.

vgui_glut_window::~vgui_glut_window ( )

Definition at line 35 of file vgui_glut_window.cxx.


Member Function Documentation

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_glut_window::get_adaptor ( void  ) [inline, virtual]

Get the default adaptor (if it exists).

Reimplemented from vgui_window.

Definition at line 23 of file vgui_glut_window.h.

vgui_statusbar * vgui_window::get_statusbar ( void  ) [virtual, inherited]

Get the status bar (if it exists).

Reimplemented in vgui_gtk2_window, vgui_gtk_window, vgui_mfc_window, vgui_wx_window, vgui_win32_window, vgui_qt_window, and vgui_qt_window.

Definition at line 36 of file vgui_window.cxx.

void vgui_glut_window::hello_from_adaptor ( ) [private]

Definition at line 87 of file vgui_glut_window.cxx.

void vgui_glut_window::hide ( ) [virtual]

Hide the window from view.

Reimplemented from vgui_window.

Definition at line 49 of file vgui_glut_window.cxx.

void vgui_glut_window::iconify ( ) [virtual]

Turn the window into an icon.

Reimplemented from vgui_window.

Definition at line 57 of file vgui_glut_window.cxx.

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

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

Reimplemented from vgui_window.

Definition at line 73 of file vgui_glut_window.cxx.

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

Change window shape to new given width and height.

Reimplemented from vgui_window.

Definition at line 65 of file vgui_glut_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_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_glut_window::set_menubar ( vgui_menu const &  ) [inline, virtual]

Put the given menu in the menubar (if it exists).

Reimplemented from vgui_window.

Definition at line 20 of file vgui_glut_window.h.

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_glut_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 81 of file vgui_glut_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_glut_window::show ( ) [virtual]

Display the window.

Reimplemented from vgui_window.

Definition at line 41 of file vgui_glut_window.cxx.


Friends And Related Function Documentation

friend struct vgui_glut_adaptor [friend]

Definition at line 39 of file vgui_glut_window.h.


Member Data Documentation

int vgui_glut_window::data0 [private]

Definition at line 36 of file vgui_glut_window.h.

int vgui_glut_window::data1 [private]

Definition at line 37 of file vgui_glut_window.h.

Definition at line 22 of file vgui_glut_window.h.

Definition at line 19 of file vgui_glut_window.h.

Definition at line 35 of file vgui_glut_window.h.

Definition at line 34 of file vgui_glut_window.h.


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