From 76e39eac8cee2175ec62a191f7c91ca53857e80c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 5 Mar 2021 18:07:48 -0500 Subject: more raleigh, including button and vbox widgets --- src/user/include/cxx/raleigh/w/vbox.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/user/include/cxx/raleigh/w/vbox.h (limited to 'src/user/include/cxx/raleigh/w/vbox.h') 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 +#include + +namespace raleigh { + class vbox : public widget { + public: + //do not modify this list afterward + vbox(dllist 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 widgets; + }; +} + +#endif \ No newline at end of file -- cgit v1.2.3