~ubuntu-branches/ubuntu/trusty/xwit/trusty-proposed

« back to all changes in this revision

Viewing changes to dsimple.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernhard R. Link
  • Date: 2005-12-02 16:18:14 UTC
  • Revision ID: james.westby@ubuntu.com-20051202161814-8bpz52nqmnz1rqxt
Tags: 3.4-9
* some code cleanup
* add an -property option to specify something different than
  the name of the window to use (Closes: #109313)
* add an -print command to print the windows geometry and name
* add an -all alias to -names ''
* correctly escape dashes in the manpage

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
    /* Global variables used by routines in just_display.c */
14
14
 
15
 
char *program_name = "unknown_program";       /* Name of this program */
16
 
Display *dpy;                                 /* The current display */
17
 
int screen;                                   /* The current screen */
 
15
extern char *program_name;       /* Name of this program */
 
16
extern Display *dpy;                                 /* The current display */
 
17
extern int screen;                                   /* The current screen */
18
18
 
19
19
#define INIT_NAME program_name=argv[0]        /* use this in main to setup
20
20
                                                 program_name */
21
21
 
22
22
    /* Declaritions for functions in just_display.c */
23
23
 
24
 
void Fatal_Error();
25
 
char *Malloc();
26
 
char *Realloc();
27
 
char *Get_Display_Name();
28
 
Display *Open_Display();
29
 
void Setup_Display_And_Screen();
30
 
XFontStruct *Open_Font();
31
 
void Beep();
32
 
Pixmap ReadBitmapFile();
33
 
void WriteBitmapFile();
34
 
Window Select_Window_Args();
 
24
void Fatal_Error(char *msg, ...);
 
25
char *Malloc(size_t);
 
26
char *Realloc(void*,size_t);
 
27
char *Get_Display_Name(int*,char **);
 
28
Display *Open_Display(char *);
 
29
void Setup_Display_And_Screen(int *, char **);
 
30
XFontStruct *Open_Font(char *);
 
31
void Beep(void);
 
32
Pixmap ReadBitmapFile(Drawable,char *,int*,int*,int*,int*);
 
33
void WriteBitmapFile(char *,Pixmap,int,int,int,int);
 
34
Window Select_Window_Args(int *,char **);
35
35
 
36
36
#define X_USAGE "[host:display]"              /* X arguments handled by
37
37
                                                 Get_Display_Name */
45
45
 * Send bugs, etc. to chariot@athena.mit.edu.
46
46
 */
47
47
 
48
 
unsigned long Resolve_Color();
49
 
Pixmap Bitmap_To_Pixmap();
50
 
Window Select_Window();
51
 
void out();
52
 
void blip();
53
 
Window Window_With_Name();
 
48
unsigned long Resolve_Color(Window,char *);
 
49
Pixmap Bitmap_To_Pixmap(Display *,Drawable,GC,Pixmap,int,int);
 
50
Window Select_Window(Display *);
 
51
void out(void);
 
52
void blip(void);
 
53
Window Window_With_Name(Display *,Window,char *);
 
54
void usage(void);