things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@18 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
edfa67e964
commit
6c44baff6c
4 changed files with 57 additions and 8 deletions
|
|
@ -7,12 +7,15 @@
|
|||
|
||||
MILSKODECL HMILSKO MilskoCreateWidget(MilskoClass class, HMILSKO parent, int x, int y, unsigned int width, unsigned int height);
|
||||
MILSKODECL void MilskoDestroyWidget(HMILSKO handle);
|
||||
MILSKODECL void MilskoLoop(HMILSKO handle);
|
||||
MILSKODECL void MilskoStep(HMILSKO handle);
|
||||
MILSKODECL int MilskoPending(HMILSKO handle);
|
||||
|
||||
MILSKODECL void MilskoSetInteger(HMILSKO handle, const char* key, int n);
|
||||
MILSKODECL void MilskoSetText(HMILSKO handle, const char* key, const char* value);
|
||||
MILSKODECL void MilskoApply(HMILSKO handle, ...);
|
||||
MILSKODECL void MilskoLoop(HMILSKO handle);
|
||||
MILSKODECL void MilskoStep(HMILSKO handle);
|
||||
MILSKODECL int MilskoPending(HMILSKO handle);
|
||||
|
||||
MILSKODECL void MilskoSetInteger(HMILSKO handle, const char* key, int n);
|
||||
MILSKODECL void MilskoSetText(HMILSKO handle, const char* key, const char* value);
|
||||
MILSKODECL int MilskoGetInteger(HMILSKO handle, const char* key);
|
||||
MILSKODECL const char* MilskoGetText(HMILSKO handle, const char* key);
|
||||
MILSKODECL void MilskoApply(HMILSKO handle, ...);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -9,6 +9,13 @@ typedef struct _MilskoPoint {
|
|||
int y;
|
||||
} MilskoPoint;
|
||||
|
||||
typedef struct _MilskoRect {
|
||||
int x;
|
||||
int y;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
} MilskoRect;
|
||||
|
||||
typedef struct _MilskoTextKeyValue {
|
||||
char* key;
|
||||
char* value;
|
||||
|
|
@ -40,6 +47,11 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue