2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
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>
|
2025-09-28 21:55:50 +00:00
|
|
|
|
2025-09-29 00:10:20 +00:00
|
|
|
typedef struct _MwLL * MwLL, MwLLRec;
|
2025-09-29 00:04:04 +00:00
|
|
|
typedef struct _MwLLColor *MwLLColor, MwLLColorRec;
|
2025-09-28 21:55:50 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
#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-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-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
|
|
|
|
|
|
|
|
#endif
|