-
Notifications
You must be signed in to change notification settings - Fork 7
/
WeXterm.h
59 lines (48 loc) · 1.62 KB
/
WeXterm.h
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
55
56
57
58
#ifndef __WEXTERM_H
#define __WEXTERM_H
/*-------------------------------------------------------------------------*\
<WeXterm.h> -- Header file of Xwpe routines for X window support
Date Programmer Description
05/04/97 Dennis Created for xwpe reorganization.
\*-------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
Includes
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#include <X11/Xlib.h>
#include "Xwpe.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
Defines
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifndef XTERM_CMD
#define XTERM_CMD "xterm"
#endif
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
New Types
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
typedef struct wpeXStruct {
Display *display;
int screen;
Window window;
GC gc;
XFontStruct *font;
Atom delete_atom, protocol_atom, selection_atom, text_atom, property_atom;
int font_height, font_width;
int altmask;
int colors[16];
WpeMouseShape shape_list[2];
char *selection;
} WpeXStruct;
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *\
Global Variables
\* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
extern WpeXStruct WpeXInfo;
void WpeXInit(int *argc, char **argv);
void WpeXMouseChangeShape(WpeMouseShape new_shape);
void WpeXMouseRestoreShape();
#ifdef __cplusplus
}
#endif
#endif