Basic UI with commands
This commit is contained in:
11
ui/base.h
11
ui/base.h
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user