diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-07 23:19:48 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-07 23:19:48 -0500 |
commit | 1a5ece4f52ef17c7c868e95eb26e98137d5cab6f (patch) | |
tree | 2ab5c639d368d3ec497b464009f0401e71d433f1 /src/user/raleigh/w/button.cpp | |
parent | 348e1876d25320e6480f2795c9388b2bc080c743 (diff) | |
download | portland-os-1a5ece4f52ef17c7c868e95eb26e98137d5cab6f.tar.gz |
keyboard support in raleigh, word wrap and more in entry widget
Diffstat (limited to 'src/user/raleigh/w/button.cpp')
-rw-r--r-- | src/user/raleigh/w/button.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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 |