home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
system
/
csh
/
src
/
windowbounds.h
< prev
Wrap
C/C++ Source or Header
|
1995-02-27
|
1KB
|
51 lines
/*
* get window bounds (dimensions)
* Copyright 1994, Andreas M. Kirchwitz
*/
#include <dos/dos.h>
#define GWB_TIMEOUT_LOCAL 1 /* one microsecond */
#define GWB_TIMEOUT_SHORT 1000 /* one millisecond */
#define GWB_TIMEOUT_LONG 1000000 /* one full second */
void get_WindowBounds_def(int *width, int *height);
/*
* get default window bounds (80x24)
*/
void get_WindowBounds_env(int *width, int *height);
/*
* get window bounds from environment (COLUMNS, LINES),
* first local then global
*
* width/height are only modified if COLUMNS/LINES is set
*/
void get_WindowBounds_con(BPTR con, int *width, int *height,long timeout);
/*
* get window bounds from console (with user defined timeout),
* "con" must be in RAW mode
*
* width/height are only modified if console responds to the
* "window status report" (special Amiga control sequence)
* within the specified timeout period (in microseconds)
*/
void get_WindowBounds_Output(int *width, int *height,long timeout);
/*
* get window bounds from Output()
*
* sets to RAW, calls get_WindowBounds_con(), sets to cooked
*/