diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-06 12:20:51 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-06 12:20:51 -0400 |
| commit | ee1653f542f0c070afb8310c9041267496bbdf05 (patch) | |
| tree | b18654d87e569457a61ad15d0955ad9c53efd0e7 /new/ui.h | |
| parent | 50577098478ed0e7cfb3f2a417bddb16187929f6 (diff) | |
Started doing the C rewrite. Defined the basic initialization and main loop and window API and implemented them on GTK+.
Diffstat (limited to 'new/ui.h')
| -rw-r--r-- | new/ui.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/new/ui.h b/new/ui.h new file mode 100644 index 0000000..11f3615 --- /dev/null +++ b/new/ui.h @@ -0,0 +1,27 @@ +// 6 april 2015 + +#ifndef __UI_UI_H__ +#define __UI_UI_H__ + +#include <stdint.h> + +typedef struct uiInitError uiInitError; +typedef struct uiInitOptions uiInitOptions; + +uiInitError *uiInit(uiInitOptions *); +const char *uiInitErrorMessage(uiInitError *); +void uiInitErrorFree(uiInitError *); + +void uiMain(void); +void uiQuit(void); + +typedef struct uiWindow uiWindow; +uiWindow *uiNewWindow(char *, int, int); +void uiWindowDestroy(uiWindow *); +uintptr_t uiWindowHandle(uiWindow *); +// TODO titles +void uiWindowShow(uiWindow *); +void uiWindowHide(uiWindow *); +void uiWindowOnClosing(uiWindow *, int (*)(uiWindow *, void *), void *); + +#endif |
