From b66e67e3a5f2680ee0e44228fce0fcaeff87206b Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 19 Dec 2019 04:48:56 +0100 Subject: eve textbox added; eve cmd result function added --- code/fe310/eos/eve_text.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 code/fe310/eos/eve_text.h (limited to 'code/fe310/eos/eve_text.h') 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 + +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 -- cgit v1.2.3