diff options
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 |