2025-09-28 02:51:15 +00:00
|
|
|
/* $Id$ */
|
2025-09-28 08:49:49 +00:00
|
|
|
#ifndef __MILSKO_TYPEDEFS_H__
|
|
|
|
|
#define __MILSKO_TYPEDEFS_H__
|
2025-09-28 02:51:15 +00:00
|
|
|
|
2025-09-28 07:03:05 +00:00
|
|
|
#include <Milsko/MachDep.h>
|
|
|
|
|
|
2025-09-28 02:51:15 +00:00
|
|
|
typedef struct _MilskoPoint {
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
|
|
|
|
} MilskoPoint;
|
|
|
|
|
|
2025-09-28 09:27:28 +00:00
|
|
|
typedef struct _MilskoRect {
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
|
|
|
|
unsigned int width;
|
|
|
|
|
unsigned int height;
|
|
|
|
|
} MilskoRect;
|
|
|
|
|
|
2025-09-28 09:14:57 +00:00
|
|
|
typedef struct _MilskoTextKeyValue {
|
|
|
|
|
char* key;
|
|
|
|
|
char* value;
|
|
|
|
|
} MilskoTextKeyValue;
|
|
|
|
|
|
|
|
|
|
typedef struct _MilskoIntegerKeyValue {
|
|
|
|
|
char* key;
|
|
|
|
|
int value;
|
|
|
|
|
} MilskoIntegerKeyValue;
|
|
|
|
|
|
2025-09-28 08:37:12 +00:00
|
|
|
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;
|
2025-09-28 09:14:57 +00:00
|
|
|
|
|
|
|
|
MilskoTextKeyValue* text;
|
|
|
|
|
MilskoIntegerKeyValue* integer;
|
2025-09-28 08:37:12 +00:00
|
|
|
}* HMILSKO;
|
|
|
|
|
#else
|
|
|
|
|
typedef void* HMILSKO;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef struct _MilskoClass {
|
2025-09-28 09:27:28 +00:00
|
|
|
void* opaque;
|
|
|
|
|
void (*create)(HMILSKO handle);
|
|
|
|
|
void (*destroy)(HMILSKO handle);
|
|
|
|
|
void (*draw)(HMILSKO handle);
|
|
|
|
|
void (*click)(HMILSKO handle);
|
2025-09-28 08:37:21 +00:00
|
|
|
} *MilskoClass, MilskoClassRec;
|
2025-09-28 08:37:12 +00:00
|
|
|
|
2025-09-28 02:51:15 +00:00
|
|
|
#endif
|