Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PopUpWin Class Reference

#include <popupwin.h>

Inheritance diagram for PopUpWin:

Window ScrnObj TextWin List of all members.

Public Methods

 PopUpWin (int dx, int dy, int bc, int bkc)
 PopUpWin (int dx, int dy, int bc, int bkc, char *t, int tc)
virtual ~PopUpWin ()
virtual void PrepScreen (void)
virtual void Erase (void)

Protected Methods

 PopUpWin (void)

Private Attributes

void * buffer

Constructor & Destructor Documentation

PopUpWin::PopUpWin void    [inline, protected]
 

Definition at line 20 of file popupwin.h.

References buffer.

00020 : Window () { buffer = NULL; }

PopUpWin::PopUpWin int    dx,
int    dy,
int    bc,
int    bkc
[inline]
 

Definition at line 22 of file popupwin.h.

References buffer.

00023     : Window (dx, dy, bc, bkc) { buffer = NULL; }

PopUpWin::PopUpWin int    dx,
int    dy,
int    bc,
int    bkc,
char *    t,
int    tc
[inline]
 

Definition at line 24 of file popupwin.h.

References buffer.

00025     : Window (dx, dy, bc, bkc, t, tc) { buffer = NULL; }

virtual PopUpWin::~PopUpWin   [inline, virtual]
 

Definition at line 26 of file popupwin.h.

References buffer, and Erase().

00026 { Erase(); delete buffer; }


Member Function Documentation

void PopUpWin::Erase void    [virtual]
 

Reimplemented from Window.

Definition at line 26 of file popupwin.c.

References buffer, Window::ClientD, ScrnObj::Disp, ScrnObj::Drawn, Display::Erase(), False, Viewport::PutImage(), ScrnObj::X, and ScrnObj::Y.

Referenced by ~PopUpWin().

00027 {
00028   assert (Disp != NULL);
00029   if (Drawn)
00030   {
00031     ClientD->Erase ();
00032     Disp->PutImage (X, Y, buffer, COPY_PUT);
00033     Drawn = False;
00034   }
00035 }

void PopUpWin::PrepScreen void    [virtual]
 

Reimplemented from Window.

Definition at line 15 of file popupwin.c.

References buffer, byte, ScrnObj::Disp, Viewport::GetImage(), ScrnObj::X, Window::XDim, ScrnObj::Y, and Window::YDim.

Referenced by TextWin::Draw().

00016 {
00017   if (!buffer)
00018   {
00019     buffer = (void *) new byte [imagesize (0, 0, XDim, YDim)];
00020     assert (buffer != NULL);
00021   }
00022   Disp->GetImage (X, Y, X+XDim, Y+YDim, buffer);
00023 }


Member Data Documentation

void* PopUpWin::buffer [private]
 

Definition at line 18 of file popupwin.h.

Referenced by Erase(), PopUpWin(), PrepScreen(), and ~PopUpWin().


The documentation for this class was generated from the following files:
Generated on Sun Jul 6 23:07:17 2003 for Scotland Yard by doxygen1.2.15