Basic UI with commands

This commit is contained in:
2020-06-12 11:40:48 -07:00
parent b4d90769ba
commit 78859dc4fa
8 changed files with 236 additions and 27 deletions

View File

@@ -1,10 +1,19 @@
#ifndef UI_BASE_H_
#define UI_BASE_H_
#include <stdbool.h>
#include "model.h"
/**
* Prints the string text starting at position *x, *y. x and y are updated to
* the position after the last character
*/
void draw_text(char *text, int *x, int *y);
void draw_text(const char *text, ui_state *state);
/**
* Render the input status bar
*/
void draw_status_line(ui_state *state);
#endif // UI_BASE_H_