-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathX11display.h
47 lines (41 loc) · 2.32 KB
/
X11display.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
/*
********************************************************************
* USB stack and host controller driver for SGI IRIX 6.5 *
* *
* Programmed by BSDero *
* bsdero at gmail dot com *
* 2011/2012 *
* *
* *
* File: X11display.h *
* Description: X11 display basic functions header *
********************************************************************
*******************************************************************************************************
* FIXLIST (latest at top) *
*-----------------------------------------------------------------------------------------------------*
* Author MM-DD-YYYY Description *
*-----------------------------------------------------------------------------------------------------*
* BSDero 09-10-2012 -Initial version *
* *
*******************************************************************************************************
*/
#ifndef _X11DISPLAY_H_
#define _X11DISPLAY_H_
/* first include the standard headers that we're likely to need */
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#include <X11/keysymdef.h>
#include <X11/cursorfont.h>
#define MOUSE_ALL_EVENTS_MASK ( ButtonPressMask | ButtonReleaseMask | PointerMotionMask | EnterWindowMask | LeaveWindowMask)
#define WINDOW_ALL_EVENTS_MASK ( StructureNotifyMask | ExposureMask | SubstructureNotifyMask)
#define KEYBOARD_ALL_EVENTS_MASK ( KeyPressMask | KeyReleaseMask )
typedef struct{
Display *dpy;
int width, height;
int screen_num;
unsigned long cl_background, cl_border;
}X11_display_t;
int X11_display_init( X11_display_t *display);
int X11_display_close( X11_display_t *display);
#endif