diff options
| author | tech kaczynski <tk@techkaczynski.dev> | 2026-09-22 22:38:57 +1000 |
|---|---|---|
| committer | tech kaczynski <tk@techkaczynski.dev> | 2026-09-22 22:38:57 +1000 |
| commit | 08cb8d6a585dd552b69a488d9db1be123f01467a (patch) | |
| tree | 77d50ce30bbc102b08486929ba654b5bef70af43 /app.h | |
initial commit.
Diffstat (limited to 'app.h')
| -rw-r--r-- | app.h | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -0,0 +1,33 @@ +#ifndef APP_H +#define APP_H + +#include "common.h" + +typedef enum { + APP_MODE_EDIT_NONE, + APP_MODE_EDIT_SELECT, + APP_MODE_EDIT_CTRL, + APP_MODE_EDIT_MOVE, + APP_MODE_EDIT_ROTATE, + APP_MODE_EDIT_SPACE, + APP_MODE_EDIT_CMD, + APP_MODE_PLAY, +} AppMode; + +typedef enum { + APP_FLAG_EDIT, + APP_FLAG_DEBUG, +} AppFlag; + +typedef struct { + int w, h; + AppMode mode; + AppFlag flags; + bool run; +} App; + +extern App app; + +void app_notify(cstr title, cstr msg); + +#endif |
