summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/window.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-09 11:24:11 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-09 11:24:11 -0500
commit0f2398d1f622cce37925f52d978d92e6cce1c7a9 (patch)
tree68435086d6375a6a5dab2106b1ecfdabb6340fa8 /src/user/include/cxx/raleigh/window.h
parentfd4557c4adddf710979a42e9f9d470bc8b3f77bd (diff)
downloadportland-os-0f2398d1f622cce37925f52d978d92e6cce1c7a9.tar.gz
making mouse movements only reported to widgets in raleigh if they request it, and making it continue while the mouse is outside the widget (but inside the window)
Diffstat (limited to 'src/user/include/cxx/raleigh/window.h')
-rw-r--r--src/user/include/cxx/raleigh/window.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/include/cxx/raleigh/window.h b/src/user/include/cxx/raleigh/window.h
index 0dd9341..2b759d5 100644
--- a/src/user/include/cxx/raleigh/window.h
+++ b/src/user/include/cxx/raleigh/window.h
@@ -22,6 +22,7 @@ namespace raleigh {
void notify_needs_paint(widget &from);
void notify_widget_size_change(widget &from, coord old_size);
+ void notify_wants_movements(widget &from, enum mouse_packet::mouse_button while_down);
enum try_actions_return_t {NONE, GOOD, DELETE};
try_actions_return_t try_actions();
void show();
@@ -32,6 +33,8 @@ namespace raleigh {
coord size;
widget &root;
widget *focussed;
+ widget *drag_reciever;
+ enum mouse_packet::mouse_button drag_until;
_pixel_t bg_color;
bool needs_repaint;
void paint_full();