diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-07-29 09:21:45 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-07-29 09:21:45 +0200 |
commit | 0e518d5117b73fd54081decf1c0eb9f9d3173ff6 (patch) | |
tree | 9ef8f4529e3b24cd9ca16e6c46a89781abc8c670 /code/fe310/eos/eve/widget/textw.h | |
parent | 5a39774e6ed9002de3f0ec1f2cdbba2ebbe9fbde (diff) |
unicode support
Diffstat (limited to 'code/fe310/eos/eve/widget/textw.h')
-rw-r--r-- | code/fe310/eos/eve/widget/textw.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/fe310/eos/eve/widget/textw.h b/code/fe310/eos/eve/widget/textw.h index ee3eefb..cd46ea3 100644 --- a/code/fe310/eos/eve/widget/textw.h +++ b/code/fe310/eos/eve/widget/textw.h @@ -10,7 +10,7 @@ typedef struct EVETextCursor { typedef struct EVETextWidget { EVEWidget w; EVEFont *font; - char *text; + utf8_t *text; uint16_t text_size; uint16_t text_len; uint16_t *line; @@ -29,11 +29,11 @@ typedef struct EVETextWidget { } track; } EVETextWidget; -void eve_textw_init(EVETextWidget *widget, EVERect *g, EVEFont *font, char *text, uint16_t text_size, uint16_t *line, uint16_t line_size); +void eve_textw_init(EVETextWidget *widget, EVERect *g, EVEFont *font, utf8_t *text, uint16_t text_size, uint16_t *line, uint16_t line_size); int eve_textw_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx); uint8_t eve_textw_draw(EVEWidget *_widget, EVEPage *page, uint8_t tag0); void eve_textw_putc(void *_w, int c); -int eve_textw_update(EVETextWidget *widget, EVEPage *page, uint16_t line); +uint16_t eve_textw_update(EVETextWidget *widget, EVEPage *page, uint16_t line); void eve_textw_cursor_update(EVETextWidget *widget, EVETextCursor *cursor); void eve_textw_cursor_set(EVETextWidget *widget, EVETextCursor *cursor, uint8_t tag, int16_t x); void eve_textw_cursor_clear(EVETextWidget *widget, EVETextCursor *cursor); |