diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-12-03 11:57:19 -0500 |
|---|---|---|
| committer | John Sullivan <jsullivan@csumb.edu> | 2022-01-10 03:08:06 +0000 |
| commit | 8120fd052120423cc4e84d7e893bef125fb06a6b (patch) | |
| tree | 06baa3f1e015df4175133253f5044a4a0b504e1b /keyboard.h | |
| parent | 7ec530ef4612dc5b9df5e4faf57708df9e4fad8f (diff) | |
| download | suggpicker-8120fd052120423cc4e84d7e893bef125fb06a6b.tar.gz | |
overlapped key output: highlight letters swiped through
Diffstat (limited to 'keyboard.h')
| -rw-r--r-- | keyboard.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboard.h b/keyboard.h index cdb5dd8..5610f38 100644 --- a/keyboard.h +++ b/keyboard.h @@ -45,6 +45,7 @@ struct clr_scheme { Color fg; Color bg; Color high; + Color swipe; Color text; }; @@ -105,6 +106,8 @@ struct kbd { void draw_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t border, Color color); +void draw_over_inset(struct drwsurf *ds, uint32_t x, uint32_t y, uint32_t width, + uint32_t height, uint32_t border, Color color); void kbd_init(struct kbd *kb, struct layout *layouts, char *layer_names_list); void kbd_init_layout(struct layout *l, uint32_t width, uint32_t height); @@ -114,7 +117,9 @@ void kbd_release_key(struct kbd *kb, uint32_t time); void kbd_motion_key(struct kbd *kb, uint32_t time, uint32_t x, uint32_t y); void kbd_press_key(struct kbd *kb, struct key *k, uint32_t time); void kbd_print_key_stdout(struct kbd *kb, struct key *k); -void kbd_draw_key(struct kbd *kb, struct key *k, bool pressed); +void kbd_draw_key(struct kbd *kb, struct key *k, bool pressed, bool swiped); +void kbd_draw_press(struct kbd *kb, struct key *k, bool pressed); +void kbd_draw_swipe(struct kbd *kb, struct key *k); void kbd_draw_layout(struct kbd *kb); void kbd_resize(struct kbd *kb, struct layout *layouts, uint8_t layoutcount); uint8_t kbd_get_rows(struct layout *l); |
