diff options
Diffstat (limited to 'src/user/raleigh/w/button.cpp')
-rw-r--r-- | src/user/raleigh/w/button.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/user/raleigh/w/button.cpp b/src/user/raleigh/w/button.cpp index a92167e..2abf9a9 100644 --- a/src/user/raleigh/w/button.cpp +++ b/src/user/raleigh/w/button.cpp @@ -8,6 +8,7 @@ namespace raleigh { size = coord(inner.size.x + 2, inner.size.y + 2); closest_opaque = this; inner.notify_has_opaque_parent(this); + inner.parent = this; } void button::notify_window_change() { @@ -49,11 +50,9 @@ namespace raleigh { } } - void button::notify_has_opaque_parent(widget *parent) {} - - void button::handle_key(struct key_packet kp) {} - - void button::on_focus() {} + void button::notify_child_size_change(widget &child, coord old_size) { + set_size(coord(inner.size.x + 2, inner.size.y + 2)); + } - void button::on_unfocus() {} + void button::notify_has_opaque_parent(widget *parent) {} }
\ No newline at end of file |