2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
#ifndef __MILSKO_X11_H__
|
|
|
|
|
#define __MILSKO_X11_H__
|
|
|
|
|
|
2025-09-28 07:03:05 +00:00
|
|
|
#include <Milsko/MachDep.h>
|
2025-09-28 21:55:50 +00:00
|
|
|
|
|
|
|
|
typedef struct _MilskoLL * MilskoLL, MilskoLLRec;
|
|
|
|
|
typedef struct _MilskoLLColor *MilskoLLColor, MilskoLLColorRec;
|
|
|
|
|
|
2025-09-28 09:50:28 +00:00
|
|
|
#include <Milsko/TypeDefs.h>
|
2025-09-28 21:55:50 +00:00
|
|
|
#include <Milsko/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-28 21:55:50 +00:00
|
|
|
struct _MilskoLL {
|
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-28 22:21:51 +00:00
|
|
|
MilskoLLHandler handler;
|
2025-09-28 21:55:50 +00:00
|
|
|
};
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-28 21:55:50 +00:00
|
|
|
struct _MilskoLLColor {
|
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
|