diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-04 19:11:42 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-04 19:11:42 -0500 |
commit | 406af09ade55553e2b064506c3ba3c89bd965d73 (patch) | |
tree | dd6da93bc329d6b1097aa1afcde2af19491dfc8e /src/user/include/cxx/raleigh/widget.h | |
parent | 86af7f631080bc4b45846bd7f382c4cedcbec2b4 (diff) | |
download | portland-os-406af09ade55553e2b064506c3ba3c89bd965d73.tar.gz |
start of a c++ widget toolkit, c++ runtime
Diffstat (limited to 'src/user/include/cxx/raleigh/widget.h')
-rw-r--r-- | src/user/include/cxx/raleigh/widget.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/user/include/cxx/raleigh/widget.h b/src/user/include/cxx/raleigh/widget.h new file mode 100644 index 0000000..1839333 --- /dev/null +++ b/src/user/include/cxx/raleigh/widget.h @@ -0,0 +1,27 @@ +#ifndef RALEIGH_WIDGET_H +#define RALEIGH_WIDGET_H + +namespace raleigh { + class widget; +} + +#include <raleigh/window.h> +#include <pland/syscall.h> +#include <raleigh/util.h> + +namespace raleigh { + class widget { + public: + coord size; + + //set by window class (or parent widget) + window *w; + coord window_offset; + + //called by window class (or parent widget) + virtual void notify_window_change() = 0; + virtual void paint(_pixel_t *pixbuf, uint32_t pitch) = 0; + }; +} + +#endif
\ No newline at end of file |