From 1a5ece4f52ef17c7c868e95eb26e98137d5cab6f Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 7 Mar 2021 23:19:48 -0500 Subject: keyboard support in raleigh, word wrap and more in entry widget --- src/user/include/cxx/raleigh/w/padding.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/user/include/cxx/raleigh/w/padding.h') diff --git a/src/user/include/cxx/raleigh/w/padding.h b/src/user/include/cxx/raleigh/w/padding.h index 216b984..792e204 100644 --- a/src/user/include/cxx/raleigh/w/padding.h +++ b/src/user/include/cxx/raleigh/w/padding.h @@ -10,8 +10,11 @@ namespace raleigh { void notify_window_change() override; void paint(_pixel_t *pixbuf, uint32_t pitch) override; - bool try_handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) override; + void handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) override; void notify_has_opaque_parent(widget *parent) override; + void handle_key(struct key_packet kp) override; + void on_focus() override; + void on_unfocus() override; private: widget &inner; uint32_t pad_by; -- cgit v1.2.3