diff options
Diffstat (limited to 'views/widget/root_view.h')
-rw-r--r-- | views/widget/root_view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/views/widget/root_view.h b/views/widget/root_view.h index b33ecf5..0ba3d51 100644 --- a/views/widget/root_view.h +++ b/views/widget/root_view.h @@ -64,6 +64,11 @@ class RootView : public View, // Input --------------------------------------------------------------------- + // If a capture view has been set all mouse events are forwarded to the + // capture view, regardless of whether the mouse is over the view. + void set_capture_view(View* v) { capture_view_ = v; } + View* capture_view() { return capture_view_; } + // Process a key event. Send the event to the focused view and up the focus // path, and finally to the default keyboard handler, until someone consumes // it. Returns whether anyone consumed the event. @@ -159,6 +164,9 @@ class RootView : public View, // Input --------------------------------------------------------------------- + // View capturing mouse input. + View* capture_view_; + // The view currently handing down - drag - up View* mouse_pressed_handler_; |