bad solution
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@30 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
c2b08729ef
commit
61b442d259
7 changed files with 92 additions and 63 deletions
|
|
@ -2,16 +2,18 @@
|
|||
#ifndef __MILSKO_X11_H__
|
||||
#define __MILSKO_X11_H__
|
||||
|
||||
typedef struct _MilskoLowLevel* MilskoLL;
|
||||
typedef struct _MilskoColor* MilskoLLColor;
|
||||
|
||||
#include <Milsko/MachDep.h>
|
||||
|
||||
typedef struct _MilskoLL * MilskoLL, MilskoLLRec;
|
||||
typedef struct _MilskoLLColor *MilskoLLColor, MilskoLLColorRec;
|
||||
|
||||
#include <Milsko/TypeDefs.h>
|
||||
#include <Milsko/LowLevel.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
typedef struct _MilskoLowLevel {
|
||||
struct _MilskoLL {
|
||||
Display* display;
|
||||
Window window;
|
||||
GC gc;
|
||||
|
|
@ -22,14 +24,14 @@ typedef struct _MilskoLowLevel {
|
|||
unsigned int height;
|
||||
void* user;
|
||||
|
||||
void (*draw)(MilskoLL handle);
|
||||
}* MilskoLL;
|
||||
MilskoLLCallback callback;
|
||||
};
|
||||
|
||||
typedef struct _MilskoColor {
|
||||
struct _MilskoLLColor {
|
||||
unsigned long pixel;
|
||||
int red;
|
||||
int green;
|
||||
int blue;
|
||||
}* MilskoLLColor;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue