summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/eve_text.h')
-rw-r--r--code/fe310/eos/eve_text.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/code/fe310/eos/eve_text.h b/code/fe310/eos/eve_text.h
new file mode 100644
index 0000000..e882195
--- /dev/null
+++ b/code/fe310/eos/eve_text.h
@@ -0,0 +1,20 @@
+#include <stdint.h>
+
+typedef struct EVETextBox {
+ uint16_t buf_addr;
+ int buf_line_h;
+ int w;
+ int h;
+ int x;
+ int y;
+ int buf_idx;
+ int line_idx;
+ uint16_t dl_offset;
+ uint8_t bitmap_handle;
+} EVETextBox;
+
+void eos_eve_text_init(EVETextBox *box, uint16_t buf_addr, int buf_line_h, int w, int h, int x, int y, uint8_t bitmap_handle);
+void eos_eve_text_update(EVETextBox *box);
+void eos_eve_text_draw(EVETextBox *box);
+void eos_eve_text_putc(EVETextBox *box, int c);
+void eos_eve_text_newline(EVETextBox *box); \ No newline at end of file