home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_11
/
1011052a
< prev
next >
Wrap
Text File
|
1992-09-08
|
785b
|
46 lines
**************************************************
// REGION.H (Listing 7)
// Header for screen regions -- Williams
#ifndef _REGIONDEF
#define _REGIONDEF
#include <stddef.h>
#include <conio.h>
// This class saves and releases a region of the screen
class region
{
protected:
// Screen coordinates
int left;
int top;
int right;
int bot;
// Storage area
char *buf;
public:
// Methods:
// Constructor -- if save is 0, the screen region
// isn't saved. You'd save it later with the reinit()
// method.
region(int x0,int y0,int x1,int y1,int save=1);
// Destructor
~region();
// Force the region to reread its area and save it
void reinit(void);
// Restore screen data and destroy it
void restore(void);
// Destroy screen data with out restoring it
void destroy(void);
};
#endif