Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 315fb6bf9c
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 55 lines (46 sloc) 1.91 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
/* $XConsortium: dsimple.h,v 1.2 88/09/06 17:38:34 jim Exp $ */
/*
* Just_display.h: This file contains the definitions needed to use the
* functions in just_display.c. It also declares the global
* variables dpy, screen, and program_name which are needed to
* use just_display.c.
*
* Written by Mark Lillibridge. Last updated 7/1/87
*
* Send bugs, etc. to chariot@athena.mit.edu.
*/

    /* Global variables used by routines in just_display.c */

extern char *program_name; /* Name of this program */
extern Display *dpy; /* The current display */
extern int screen; /* The current screen */

#define INIT_NAME program_name=argv[0] /* use this in main to setup
program_name */

    /* Declaritions for functions in just_display.c */

void Fatal_Error(char *msg, ...);
char *Malloc(size_t);
char *Realloc(void*,size_t);
char *Get_Display_Name(int*,char **);
Display *Open_Display(char *);
void Setup_Display_And_Screen(int *, char **);
XFontStruct *Open_Font(char *);
void Beep(void);
Pixmap ReadBitmapFile(Drawable,char *,int*,int*,int*,int*);
void WriteBitmapFile(char *,Pixmap,int,int,int,int);
Window Select_Window_Args(int *,char **);

#define X_USAGE "[host:display]" /* X arguments handled by
Get_Display_Name */
#define SELECT_USAGE "[{-root|-id <id>|-font <font>|-name <name>}]"

/*
* Other_stuff.h: Definitions of routines in other_stuff.
*
* Written by Mark Lillibridge. Last updated 7/1/87
*
* Send bugs, etc. to chariot@athena.mit.edu.
*/

unsigned long Resolve_Color(Window,char *);
Pixmap Bitmap_To_Pixmap(Display *,Drawable,GC,Pixmap,int,int);
Window Select_Window(Display *);
void out(void);
void blip(void);
Window Window_With_Name(Display *,Window,char *);
void usage(void);
Something went wrong with that request. Please try again.