initial bar rendering
This commit is contained in:
parent
b0087c772a
commit
7160e10228
7 changed files with 79 additions and 0 deletions
|
|
@ -28,9 +28,20 @@
|
|||
|
||||
KUBO_DYNARRAY_REGISTER(kubo_wall_arr, struct kubo_wall *);
|
||||
|
||||
enum kubo_context_state {
|
||||
KUBO_CONTEXT_STATE_WALL_NEW,
|
||||
KUBO_CONTEXT_STATE_WALL_SELECT,
|
||||
};
|
||||
|
||||
static const char *kubo_context_labels[] = {
|
||||
"Wall New",
|
||||
"Wall Select"
|
||||
};
|
||||
|
||||
struct kubo_context {
|
||||
bool exit_pending;
|
||||
struct kubo_wall_arr walls;
|
||||
enum kubo_context_state state;
|
||||
};
|
||||
|
||||
struct kubo_context *kubo_context_init();
|
||||
|
|
@ -38,4 +49,6 @@ void kubo_context_cleanup(struct kubo_context *context);
|
|||
|
||||
struct kubo_wall *kubo_context_get_pending_wall(struct kubo_context *context);
|
||||
|
||||
const char *kubo_context_get_label(enum kubo_context_state state);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue