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/padding.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/padding.cpp')
-rw-r--r-- | src/user/raleigh/w/padding.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/user/raleigh/w/padding.cpp b/src/user/raleigh/w/padding.cpp index 0f93216..87167c3 100644 --- a/src/user/raleigh/w/padding.cpp +++ b/src/user/raleigh/w/padding.cpp @@ -17,16 +17,20 @@ namespace raleigh { inner.paint(pixbuf, pitch); } - bool padding::try_handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) { - return (window_coords.x >= inner.window_offset.x) && - (window_coords.y >= inner.window_offset.y) && - (window_coords.x < inner.window_offset.x + inner.size.x) && - (window_coords.y < inner.window_offset.y + inner.size.y) && - inner.try_handle_click(window_coords, click_type, up); + void padding::handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) { + if ((window_coords.x >= inner.window_offset.x) && + (window_coords.y >= inner.window_offset.y) && + (window_coords.x < inner.window_offset.x + inner.size.x) && + (window_coords.y < inner.window_offset.y + inner.size.y)) + inner.handle_click(window_coords, click_type, up); } void padding::notify_has_opaque_parent(widget *parent) { closest_opaque = parent; inner.notify_has_opaque_parent(parent); } + + void padding::handle_key(struct key_packet kp) {}; + void padding::on_focus() {}; + void padding::on_unfocus() {}; }
\ No newline at end of file |