2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
#ifndef __MILSKO_X11_H__
|
|
|
|
|
#define __MILSKO_X11_H__
|
|
|
|
|
|
2025-09-28 09:50:28 +00:00
|
|
|
typedef struct _MilskoLowLevel* MilskoLL;
|
|
|
|
|
typedef struct _MilskoColor* MilskoLLColor;
|
|
|
|
|
|
2025-09-28 07:03:05 +00:00
|
|
|
#include <Milsko/MachDep.h>
|
2025-09-28 09:50:28 +00:00
|
|
|
#include <Milsko/TypeDefs.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 06:52:49 +00:00
|
|
|
typedef struct _MilskoLowLevel {
|
2025-09-28 04:07:41 +00:00
|
|
|
Display* display;
|
|
|
|
|
Window window;
|
|
|
|
|
GC gc;
|
|
|
|
|
Colormap colormap;
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
2025-09-28 04:06:26 +00:00
|
|
|
unsigned int width;
|
|
|
|
|
unsigned int height;
|
2025-09-28 09:50:28 +00:00
|
|
|
void* user;
|
|
|
|
|
|
|
|
|
|
void (*draw)(MilskoLL handle);
|
|
|
|
|
}* MilskoLL;
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-28 06:52:49 +00:00
|
|
|
typedef struct _MilskoColor {
|
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 09:50:28 +00:00
|
|
|
}* MilskoLLColor;
|
2025-09-28 02:51:15 +00:00
|
|
|
|
|
|
|
|
#endif
|