home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_01
/
1001128a
< prev
next >
Wrap
Text File
|
1991-11-19
|
804b
|
39 lines
#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 screen 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