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.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/code/fe310/eos/eve_text.h b/code/fe310/eos/eve_text.h
index 794f430..814a0cd 100644
--- a/code/fe310/eos/eve_text.h
+++ b/code/fe310/eos/eve_text.h
@@ -1,14 +1,16 @@
#include <stdint.h>
-typedef struct EOSText {
- int x;
- int y;
- int w;
- int h;
- int buf_line_h;
- int buf_idx;
- int line_idx;
- uint32_t buf_addr;
+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;
@@ -16,11 +18,12 @@ typedef struct EOSText {
uint8_t ch_w;
uint8_t dl_size;
char dirty;
-} EOSText;
+} EVEText;
-void eos_text_init(EOSText *box, int x, int y, int w, int h, double scale_x, double scale_y, uint8_t tag, int buf_line_h, uint32_t mem_addr, uint32_t *mem_next);
-void eos_text_draw(EOSText *box, uint8_t tag0, int touch_idx);
-void eos_text_update(EOSText *box, int line_idx);
-void eos_text_putc(EOSText *box, int c);
-void eos_text_newline(EOSText *box);
-void eos_text_backspace(EOSText *box);
+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);