diff options
Diffstat (limited to 'src/app.h')
-rw-r--r-- | src/app.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/app.h b/src/app.h new file mode 100644 index 00000000..2c877d00 --- /dev/null +++ b/src/app.h | |||
@@ -0,0 +1,29 @@ | |||
1 | #pragma once | ||
2 | |||
3 | /* Application core: event loop, base event processing, audio synth. */ | ||
4 | |||
5 | #include <the_Foundation/string.h> | ||
6 | |||
7 | iDeclareType(Window) | ||
8 | |||
9 | enum iUserEventCode { | ||
10 | command_UserEventCode = 1, | ||
11 | }; | ||
12 | |||
13 | const iString *execPath_App (void); | ||
14 | |||
15 | int run_App (int argc, char **argv); | ||
16 | void processEvents_App (void); | ||
17 | void refresh_App (void); | ||
18 | |||
19 | iAny * findWidget_App (const char *id); | ||
20 | void addTicker_App (void (*ticker)(iAny *), iAny *context); | ||
21 | |||
22 | void postCommand_App (const char *command); | ||
23 | void postCommandf_App (const char *command, ...); | ||
24 | |||
25 | iLocalDef void postCommandString_App(const iString *command) { | ||
26 | postCommand_App(cstr_String(command)); | ||
27 | } | ||
28 | |||
29 | iBool handleCommand_App (const char *cmd); | ||