summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/w/vbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/cxx/raleigh/w/vbox.h')
-rw-r--r--src/user/include/cxx/raleigh/w/vbox.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/user/include/cxx/raleigh/w/vbox.h b/src/user/include/cxx/raleigh/w/vbox.h
new file mode 100644
index 0000000..aead128
--- /dev/null
+++ b/src/user/include/cxx/raleigh/w/vbox.h
@@ -0,0 +1,22 @@
+#ifndef RALEIGH_W_VBOX_H
+#define RALEIGH_W_VBOX_H
+
+#include <raleigh/widget.h>
+#include <structs/dllist.h>
+
+namespace raleigh {
+ class vbox : public widget {
+ public:
+ //do not modify this list afterward
+ vbox(dllist<widget &> widgets);
+
+ void notify_window_change() override;
+ void paint(_pixel_t *pixbuf, uint32_t pitch) override;
+ bool try_handle_click(coord window_coords, enum mouse_packet::mouse_button click_type, bool up) override;
+ void notify_has_opaque_parent(widget *parent) override;
+ private:
+ dllist<widget &> widgets;
+ };
+}
+
+#endif \ No newline at end of file