| 1 |
/* $XConsortium: dsimple.h /main/6 1995/12/07 10:23:30 kaleb $ */ |
| 2 |
/* |
| 3 |
|
| 4 |
Copyright (c) 1993 X Consortium |
| 5 |
|
| 6 |
Permission is hereby granted, free of charge, to any person obtaining |
| 7 |
a copy of this software and associated documentation files (the |
| 8 |
"Software"), to deal in the Software without restriction, including |
| 9 |
without limitation the rights to use, copy, modify, merge, publish, |
| 10 |
distribute, sublicense, and/or sell copies of the Software, and to |
| 11 |
permit persons to whom the Software is furnished to do so, subject to |
| 12 |
the following conditions: |
| 13 |
|
| 14 |
The above copyright notice and this permission notice shall be included |
| 15 |
in all copies or substantial portions of the Software. |
| 16 |
|
| 17 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 18 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 |
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 21 |
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 22 |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 23 |
OTHER DEALINGS IN THE SOFTWARE. |
| 24 |
|
| 25 |
Except as contained in this notice, the name of the X Consortium shall |
| 26 |
not be used in advertising or otherwise to promote the sale, use or |
| 27 |
other dealings in this Software without prior written authorization |
| 28 |
from the X Consortium. |
| 29 |
|
| 30 |
*/ |
| 31 |
/* |
| 32 |
* Just_display.h: This file contains the definitions needed to use the |
| 33 |
* functions in just_display.c. It also declares the global |
| 34 |
* variables dpy, screen, and program_name which are needed to |
| 35 |
* use just_display.c. |
| 36 |
* |
| 37 |
* Written by Mark Lillibridge. Last updated 7/1/87 |
| 38 |
* |
| 39 |
* Send bugs, etc. to [email protected]. |
| 40 |
*/ |
| 41 |
|
| 42 |
/* Global variables used by routines in just_display.c */ |
| 43 |
|
| 44 |
char *program_name = "unknown_program"; /* Name of this program */ |
| 45 |
Display *dpy; /* The current display */ |
| 46 |
int screen; /* The current screen */ |
| 47 |
|
| 48 |
#define INIT_NAME program_name=argv[0] /* use this in main to setup |
| 49 |
program_name */ |
| 50 |
|
| 51 |
/* Declaritions for functions in just_display.c */ |
| 52 |
|
| 53 |
void Fatal_Error(); |
| 54 |
char *Malloc(); |
| 55 |
char *Realloc(); |
| 56 |
char *Get_Display_Name(); |
| 57 |
Display *Open_Display(); |
| 58 |
void Setup_Display_And_Screen(); |
| 59 |
XFontStruct *Open_Font(); |
| 60 |
Pixmap ReadBitmapFile(); |
| 61 |
void WriteBitmapFile(); |
| 62 |
Window Select_Window_Args(); |
| 63 |
|
| 64 |
#define X_USAGE "[host:display]" /* X arguments handled by |
| 65 |
Get_Display_Name */ |
| 66 |
#define SELECT_USAGE "[-root|-id <id>|-name <name>]" |
| 67 |
|
| 68 |
/* |
| 69 |
* Other_stuff.h: Definitions of routines in other_stuff. |
| 70 |
* |
| 71 |
* Written by Mark Lillibridge. Last updated 7/1/87 |
| 72 |
* |
| 73 |
* Send bugs, etc. to [email protected]. |
| 74 |
*/ |
| 75 |
|
| 76 |
unsigned long Resolve_Color(); |
| 77 |
Pixmap Bitmap_To_Pixmap(); |
| 78 |
Window Select_Window(); |
| 79 |
void out(); |
| 80 |
void blip(); |
| 81 |
Window Window_With_Name(); |