home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
SCRNMS.ZIP
/
WINDOW.H
< prev
Wrap
C/C++ Source or Header
|
1990-02-20
|
2KB
|
62 lines
/* window.h
**
** Copyright (c) 1987-90, Chris Laforet Software/Chris Laforet
** All Rights Reserved
**
** Started: 17 February 1990
**
** Revision Information: $Logfile: F:/libs/scrnlib/vcs/window.h_v $
** $Date: 20 Feb 1990 05:03:12 $
** $Revision: 1.1 $
**
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LIBRARY
#ifndef __TURBOC__
#ifndef __ZTC__
#ifndef PROTECTED
#pragma comment(lib,"LSCREEN")
#else
#pragma comment(lib,"LSCREENP")
#endif
#endif
#endif
#endif
struct window
{
int *save; /* pointer to screen data */
int curpos; /* cursor position to be restored */
int curmode; /* cursor mode to be restored */
int start; /* starting position of window on screen */
int stop; /* ending position of window on screen */
};
extern void far clrblk(int start,int stop,int attribute);
extern int scroll_up(int tlc,int brc,int color,int lines);
extern int scroll_down(int tlc,int brc,int color,int lines);
extern void far drawbox(int start,int stop,int attribute,int type);
extern int far phantom(int cursor,int length,int attribute);
extern struct window far *far open_window(int start,int stop,int attribute,int type);
extern void far close_window(struct window *scrn);
extern struct window far *far open_shadow_window(int start,int stop,int attribute,int type);
extern void far close_shadow_window(struct window *scrn);
#ifdef __cplusplus
}
#endif