2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
2025-10-04 13:51:12 +00:00
|
|
|
#ifndef __X11_H__
|
|
|
|
|
#define __X11_H__
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
#include <Mw/MachDep.h>
|
|
|
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
|
#include <Mw/LowLevel.h>
|
2025-09-28 07:03:05 +00:00
|
|
|
|
2025-10-04 04:10:45 +00:00
|
|
|
#include <X11/Xlib.h>
|
2025-09-28 02:51:15 +00:00
|
|
|
#include <X11/Xutil.h>
|
2025-10-11 06:21:43 +00:00
|
|
|
#include <X11/Xatom.h>
|
2025-10-06 10:37:08 +00:00
|
|
|
#include <X11/Xcursor/Xcursor.h>
|
2025-09-30 00:52:43 +00:00
|
|
|
#include <X11/extensions/Xrender.h>
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
struct _MwLL {
|
2025-10-14 13:09:15 +00:00
|
|
|
Display* display;
|
|
|
|
|
Window window;
|
|
|
|
|
Pixmap pixmap;
|
|
|
|
|
GC gc;
|
|
|
|
|
Colormap colormap;
|
|
|
|
|
void* user;
|
|
|
|
|
Atom wm_delete;
|
|
|
|
|
int copy_buffer;
|
|
|
|
|
XIM xim;
|
|
|
|
|
XIC xic;
|
|
|
|
|
XVisualInfo* visual;
|
2025-09-28 09:50:28 +00:00
|
|
|
|
2025-09-30 17:47:03 +00:00
|
|
|
unsigned int width;
|
|
|
|
|
unsigned int height;
|
|
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
MwLLHandler handler;
|
2025-10-17 19:11:32 +00:00
|
|
|
|
|
|
|
|
int grabbed;
|
2025-09-28 21:55:50 +00:00
|
|
|
};
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
struct _MwLLColor {
|
2025-09-28 02:51:15 +00:00
|
|
|
unsigned long pixel;
|
2025-09-28 13:53:35 +00:00
|
|
|
int red;
|
|
|
|
|
int green;
|
|
|
|
|
int blue;
|
2025-09-28 21:55:50 +00:00
|
|
|
};
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-30 00:52:43 +00:00
|
|
|
struct _MwLLPixmap {
|
2025-10-01 07:00:28 +00:00
|
|
|
int width;
|
|
|
|
|
int height;
|
|
|
|
|
unsigned char* data;
|
2025-09-30 00:52:43 +00:00
|
|
|
|
2025-10-14 13:09:15 +00:00
|
|
|
int depth;
|
|
|
|
|
|
2025-10-16 05:54:43 +00:00
|
|
|
int use_render;
|
|
|
|
|
Display* display;
|
|
|
|
|
XImage* image;
|
|
|
|
|
XImage* mask;
|
2025-09-30 00:52:43 +00:00
|
|
|
};
|
|
|
|
|
|
2025-09-28 02:51:15 +00:00
|
|
|
#endif
|