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/raleigh/w/button.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/user/raleigh/w/button.cpp') diff --git a/src/user/raleigh/w/button.cpp b/src/user/raleigh/w/button.cpp index 06d9c1d..a92167e 100644 --- a/src/user/raleigh/w/button.cpp +++ b/src/user/raleigh/w/button.cpp @@ -31,9 +31,9 @@ namespace raleigh { } } - bool button::try_handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) { + void button::handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) { if (click_type != mouse_packet::LEFT) - return false; + return; if (up) { is_pressed = false; inner.window_offset = coord(window_offset.x + 1, window_offset.y + 1); @@ -47,8 +47,13 @@ namespace raleigh { inner.notify_window_change(); w->notify_needs_paint(*this); } - return true; } void button::notify_has_opaque_parent(widget *parent) {} + + void button::handle_key(struct key_packet kp) {} + + void button::on_focus() {} + + void button::on_unfocus() {} } \ No newline at end of file -- cgit v1.2.3