diff options
Diffstat (limited to 'code/fe310/eos/eve/widget/text.h')
-rw-r--r-- | code/fe310/eos/eve/widget/text.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/code/fe310/eos/eve/widget/text.h b/code/fe310/eos/eve/widget/text.h index d75a075..83b131d 100644 --- a/code/fe310/eos/eve/widget/text.h +++ b/code/fe310/eos/eve/widget/text.h @@ -1,9 +1,5 @@ #include <stdint.h> -#include "widget.h" -#include "screen.h" -#include "font.h" - typedef struct EVETextCursor { char on; uint16_t x; @@ -22,6 +18,7 @@ typedef struct EVETextWidget { EVEFont *font; EVETextCursor cursor1; EVETextCursor cursor2; + EVETextCursor *cursor_f; uint16_t line0; uint8_t tag0; uint8_t tagN; @@ -33,11 +30,11 @@ typedef struct EVETextWidget { } track; } EVETextWidget; -void eve_textw_init(EVETextWidget *widget, uint16_t x, uint16_t y, uint16_t w, uint16_t h, char *text, uint64_t text_size, uint16_t *line, uint16_t line_size, EVEFont *font); -int eve_textw_touch(EVEWidget *_widget, EVEScreen *screen, uint8_t tag0, int touch_idx); -uint8_t eve_textw_draw(EVEWidget *_widget, EVEScreen *screen, uint8_t tag0, char active); +void eve_textw_init(EVETextWidget *widget, int16_t x, int16_t y, uint16_t w, uint16_t h, EVEFont *font, char *text, uint64_t text_size, uint16_t *line, uint16_t line_size); +int eve_textw_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx, EVEPageFocus *focus); +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, uint16_t line); void eve_textw_cursor_update(EVETextWidget *widget, EVETextCursor *cursor); -void eve_textw_cursor_set(EVETextWidget *widget, EVETextCursor *cursor, uint8_t tag, uint16_t x); -void eve_textw_cursor_clear(EVETextCursor *cursor);
\ No newline at end of file +void eve_textw_cursor_set(EVETextWidget *widget, EVETextCursor *cursor, uint8_t tag, int16_t x); +void eve_textw_cursor_clear(EVETextCursor *cursor); |