2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
2025-09-30 13:04:40 +00:00
|
|
|
/*!
|
|
|
|
|
* %file Mw/X11.h
|
|
|
|
|
* %brief X11 backend
|
|
|
|
|
* %warning This is used internally
|
|
|
|
|
*/
|
2025-09-29 00:06:16 +00:00
|
|
|
#ifndef __MW_X11_H__
|
|
|
|
|
#define __MW_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-09-28 02:51:15 +00:00
|
|
|
#include <X11/X.h>
|
|
|
|
|
#include <X11/Xutil.h>
|
2025-09-30 00:52:43 +00:00
|
|
|
#include <X11/extensions/XShm.h>
|
|
|
|
|
#include <X11/extensions/Xrender.h>
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
struct _MwLL {
|
2025-09-28 22:00:17 +00:00
|
|
|
Display* display;
|
|
|
|
|
Window window;
|
|
|
|
|
GC gc;
|
|
|
|
|
Colormap colormap;
|
|
|
|
|
void* user;
|
2025-09-29 07:05:09 +00:00
|
|
|
Atom wm_delete;
|
2025-09-28 09:50:28 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
MwLLHandler handler;
|
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 {
|
|
|
|
|
int width;
|
|
|
|
|
int height;
|
|
|
|
|
|
|
|
|
|
int use_shm;
|
|
|
|
|
XShmSegmentInfo shm;
|
|
|
|
|
Display* display;
|
|
|
|
|
XImage* image;
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-28 02:51:15 +00:00
|
|
|
#endif
|