summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/eve_text.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-02-26 02:55:32 +0100
committerUros Majstorovic <majstor@majstor.org>2020-02-26 02:55:32 +0100
commitc65d6a08e7f6e48769697f9b7dd08c4933a36eff (patch)
tree17f8bd877da2352ab0037e891b9d6036d686fda0 /code/fe310/eos/eve/eve_text.h
parent206cdf9826233e0f7a923ade6518a26e66d90d86 (diff)
new eve dir
Diffstat (limited to 'code/fe310/eos/eve/eve_text.h')
-rw-r--r--code/fe310/eos/eve/eve_text.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/eve_text.h b/code/fe310/eos/eve/eve_text.h
new file mode 100644
index 0000000..814a0cd
--- /dev/null
+++ b/code/fe310/eos/eve/eve_text.h
@@ -0,0 +1,29 @@
+#include <stdint.h>
+
+typedef struct EVEText {
+ uint16_t x;
+ uint16_t y;
+ uint16_t w;
+ uint16_t h;
+ uint32_t mem_addr;
+ uint16_t line_size;
+ uint16_t line0;
+ int line_top;
+ int line_top0;
+ uint16_t ch_idx;
+ uint16_t transform_a;
+ uint16_t transform_e;
+ uint8_t tag;
+ uint8_t ch_h;
+ uint8_t ch_w;
+ uint8_t dl_size;
+ char dirty;
+} EVEText;
+
+void eve_text_init(EVEText *box, uint16_t x, uint16_t y, uint16_t w, uint16_t h, double scale_x, double scale_y, uint8_t tag, uint16_t line_size, uint32_t mem_addr, uint32_t *mem_next);
+int eve_text_touch(EVEText *box, uint8_t tag0, int touch_idx);
+uint8_t eve_text_draw(EVEText *box);
+int eve_text_putc(EVEText *box, int c);
+void eve_text_update(EVEText *box);
+void eve_text_newline(EVEText *box);
+void eve_text_backspace(EVEText *box);