Rev 9810 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9810 | Rev 9811 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef KOLIBRI_MSGBOX_H |
1 | #ifndef KOLIBRI_MSGBOX_H |
2 | #define KOLIBRI_MSGBOX_H |
2 | #define KOLIBRI_MSGBOX_H |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #include |
4 | #include |
5 | #include |
- | |
6 | #include |
5 | #include |
7 | #include |
6 | #include |
Line 8... | Line 7... | ||
8 | #include |
7 | #include |
9 | 8 | ||
Line 15... | Line 14... | ||
15 | uint32_t top_stack; |
14 | uint32_t top_stack; |
16 | }__attribute__((packed)) msgbox; |
15 | }__attribute__((packed)) msgbox; |
Line 17... | Line 16... | ||
17 | 16 | ||
Line 18... | Line 17... | ||
18 | typedef void (*msgbox_callback)(void); |
17 | typedef void (*msgbox_callback)(void); |
19 | 18 | ||
20 | DLLAPI void __stdcall mb_create(msgbox *, void *thread); // clears callbacks, ! if fix lib, we can return eax as of Fn51 |
19 | extern void __stdcall (*mb_create)(msgbox *, void *thread); // clears callbacks, ! if fix lib, we can return eax as of Fn51 |
Line 21... | Line 20... | ||
21 | DLLAPI void __stdcall mb_setfunctions(msgbox_callback*); // must be called immediately after create, zero-ended array |
20 | extern void __stdcall (*mb_setfunctions)(msgbox_callback*); // must be called immediately after create, zero-ended array |
22 | DLLAPI void __stdcall mb_reinit(msgbox *); // recalc sizes when structure changes, called auto when MsgBoxCreate |
21 | extern void __stdcall (*mb_reinit)(msgbox *); // recalc sizes when structure changes, called auto when MsgBoxCreate |
23 | 22 | ||
24 | static inline msgbox* kolibri_new_msgbox(char* title, char* text, int def_but, ...) |
23 | static inline msgbox* kolibri_new_msgbox(char* title, char* text, int def_but, ...) |