summaryrefslogtreecommitdiff
path: root/src/user/raleigh/widget.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-08 14:46:19 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-08 14:46:19 -0500
commit8221fd5451f094defa9866f98026b74a969f7693 (patch)
tree9f0e9595fd15bdecbe667f823deded7428547b44 /src/user/raleigh/widget.cpp
parent1a5ece4f52ef17c7c868e95eb26e98137d5cab6f (diff)
downloadportland-os-8221fd5451f094defa9866f98026b74a969f7693.tar.gz
resizable widgets, default widget implementation for some functions, reimplementing meminfo in raleigh
Diffstat (limited to 'src/user/raleigh/widget.cpp')
-rw-r--r--src/user/raleigh/widget.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/user/raleigh/widget.cpp b/src/user/raleigh/widget.cpp
new file mode 100644
index 0000000..719cc06
--- /dev/null
+++ b/src/user/raleigh/widget.cpp
@@ -0,0 +1,22 @@
+#include <raleigh/widget.h>
+
+#include <knob/format.h>
+
+namespace raleigh {
+ widget::widget()
+ : parent(0) {}
+
+ void widget::notify_window_change() {}
+ void widget::handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) {}
+ void widget::handle_key(struct key_packet kp) {}
+ void widget::on_focus() {}
+ void widget::on_unfocus() {}
+ void widget::notify_child_size_change(widget &child, coord old_size) {}
+
+ void widget::set_size(coord new_size) {
+ coord old_size = size;
+ size = new_size;
+ if (w)
+ w->notify_widget_size_change(*this, old_size);
+ }
+} \ No newline at end of file