1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef TOOLKIT_H
30 #define TOOLKIT_H
31
32 #include <inttypes.h>
33 #include "../ui/toolkit.h"
34 #include "../common/context.h"
35 #include "../common/object.h"
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 #define UI_IMPORT __declspec(dllimport)
42 __declspec(dllimport)
int __stdcall myfunc(
char *str);
43
44 typedef struct UiEventData {
45 UiObject *obj;
46 ui_callback callback;
47 void *user_data;
48 int value;
49 } UiEventData;
50
51 typedef void(*UIcallback)(
void*,
void*);
52
53 UI_IMPORT void __stdcall UIinit(
char *appname);
54
55 UI_IMPORT void __stdcall UIonstartup(ui_callback f,
void *userdata);
56 UI_IMPORT void __stdcall UIonopen(ui_callback f,
void *userdata);
57 UI_IMPORT void __stdcall UIonexit(ui_callback f,
void *userdata);
58 UI_IMPORT void __stdcall UImain();
59 UI_IMPORT void __stdcall UIshow(
UIWIDGET widget);
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif
66
67