mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 15:10:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@18 b9cfdab3-6d41-4d17-bbe4-086880011989
58 lines
1010 B
C
58 lines
1010 B
C
/* $Id$ */
|
|
#ifndef __MILSKO_TYPEDEFS_H__
|
|
#define __MILSKO_TYPEDEFS_H__
|
|
|
|
#include <Milsko/MachDep.h>
|
|
|
|
typedef struct _MilskoPoint {
|
|
int x;
|
|
int y;
|
|
} MilskoPoint;
|
|
|
|
typedef struct _MilskoRect {
|
|
int x;
|
|
int y;
|
|
unsigned int width;
|
|
unsigned int height;
|
|
} MilskoRect;
|
|
|
|
typedef struct _MilskoTextKeyValue {
|
|
char* key;
|
|
char* value;
|
|
} MilskoTextKeyValue;
|
|
|
|
typedef struct _MilskoIntegerKeyValue {
|
|
char* key;
|
|
int value;
|
|
} MilskoIntegerKeyValue;
|
|
|
|
typedef struct _MilskoClass* MilskoClass;
|
|
|
|
#ifdef _MILSKO
|
|
#include <Milsko/LowLevel.h>
|
|
|
|
typedef struct _Milsko* HMILSKO;
|
|
|
|
typedef struct _Milsko {
|
|
HMILSKOLL lowlevel;
|
|
HMILSKO parent;
|
|
HMILSKO* children;
|
|
MilskoClass class;
|
|
|
|
MilskoTextKeyValue* text;
|
|
MilskoIntegerKeyValue* integer;
|
|
}* HMILSKO;
|
|
#else
|
|
typedef void* HMILSKO;
|
|
#endif
|
|
|
|
typedef struct _MilskoClass {
|
|
void* opaque;
|
|
void (*create)(HMILSKO handle);
|
|
void (*destroy)(HMILSKO handle);
|
|
void (*draw)(HMILSKO handle);
|
|
void (*click)(HMILSKO handle);
|
|
} *MilskoClass, MilskoClassRec;
|
|
|
|
#endif
|