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