mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-10 11:23:29 +00:00
rahhh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@37 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
78
include/Mw/TypeDefs.h
Normal file
78
include/Mw/TypeDefs.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MW_TYPEDEFS_H__
|
||||
#define __MW_TYPEDEFS_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
typedef struct _MwClass * MwClass, MwClassRec;
|
||||
typedef struct _MwPoint MwPoint;
|
||||
typedef struct _MwRect MwRect;
|
||||
typedef struct _MwIntegerKeyValue MwIntegerKeyValue;
|
||||
typedef struct _MwTextKeyValue MwTextKeyValue;
|
||||
typedef struct _MwUserHandlerKeyValue MwUserHandlerKeyValue;
|
||||
#ifdef _MW
|
||||
typedef struct _MwWidget *MwWidget, MwWidgetRec;
|
||||
#else
|
||||
typedef void* MwWidget;
|
||||
#endif
|
||||
typedef void (*MwHandler)(MwWidget handle);
|
||||
typedef void (*MwUserHandler)(MwWidget handle, void* user_data, void* call_data);
|
||||
|
||||
#ifdef _MW
|
||||
#include <Mw/LowLevel.h>
|
||||
#endif
|
||||
|
||||
struct _MwPoint {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
struct _MwRect {
|
||||
int x;
|
||||
int y;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
};
|
||||
|
||||
struct _MwTextKeyValue {
|
||||
char* key;
|
||||
char* value;
|
||||
};
|
||||
|
||||
struct _MwIntegerKeyValue {
|
||||
char* key;
|
||||
int value;
|
||||
};
|
||||
|
||||
struct _MwUserHandlerKeyValue {
|
||||
char* key;
|
||||
void* user_data;
|
||||
MwUserHandler value;
|
||||
};
|
||||
|
||||
#ifdef _MW
|
||||
struct _MwWidget {
|
||||
char* name;
|
||||
|
||||
MwLL lowlevel;
|
||||
MwWidget parent;
|
||||
MwWidget* children;
|
||||
MwClass class;
|
||||
|
||||
int pressed;
|
||||
|
||||
MwIntegerKeyValue* integer;
|
||||
MwTextKeyValue* text;
|
||||
MwUserHandlerKeyValue* handler;
|
||||
};
|
||||
#endif
|
||||
|
||||
struct _MwClass {
|
||||
void* opaque;
|
||||
MwHandler create;
|
||||
MwHandler destroy;
|
||||
MwHandler draw;
|
||||
MwHandler click;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user