-
Notifications
You must be signed in to change notification settings - Fork 735
Fixes #4172 Timeout revamp and remove continuous mouse #4173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6402f3a
a7a5d1a
8f43909
cbb20ff
b91a9ca
a19145a
d8335c4
98947ba
e946638
550ef03
a28cc6c
6d794f2
ee7ea86
887631d
0d75ef0
c3c6c70
f717be5
32d747a
e9a33cb
48e80f3
06e45e1
c106ff0
6f11fd6
c597454
aba2e43
2dfe6b3
f18b752
34bc316
0016a18
e85cccd
e4c7f0f
e13ed63
c588e04
c2390ad
49dc897
394794a
308b26f
e20b489
78c5d0d
966178e
8721ea3
53de140
7fb15fa
889e071
77e8675
144b027
de953f7
f6b9fe7
65207ad
079a4c5
768e5bd
fb19bfa
87fe518
62fd462
1efaf49
837298a
a1ea545
8abb13c
6515d88
a938fc1
ad8248a
ee22ef8
d47defc
c477cce
28787e8
5fc2e48
47aa0cd
6894b58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,38 @@ | ||
| namespace Terminal.Gui.App; | ||
|
|
||
| /// <summary> | ||
| /// Interface for class that tracks which <see cref="View"/> (if any) has 'grabbed' the mouse | ||
| /// and wants priority updates about its activity e.g. where it moves to, when it is released | ||
| /// etc. Example use case is a button on a scroll bar being held down by the mouse - resulting | ||
| /// in continuous scrolling. | ||
| /// </summary> | ||
| public interface IMouseGrabHandler | ||
| { | ||
| /// <summary> | ||
| /// Gets the view that grabbed the mouse (e.g. for dragging). When this is set, all mouse events will be routed to | ||
| /// this view until the view calls <see cref="UngrabMouse"/> or the mouse is released. | ||
| /// </summary> | ||
| public View? MouseGrabView { get; } | ||
|
Check warning on line 15 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
|
|
||
| /// <summary>Invoked when a view wants to grab the mouse; can be canceled.</summary> | ||
| public event EventHandler<GrabMouseEventArgs>? GrabbingMouse; | ||
|
Check warning on line 18 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
|
|
||
| /// <summary>Invoked when a view wants un-grab the mouse; can be canceled.</summary> | ||
| public event EventHandler<GrabMouseEventArgs>? UnGrabbingMouse; | ||
|
Check warning on line 21 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
|
|
||
| /// <summary>Invoked after a view has grabbed the mouse.</summary> | ||
| public event EventHandler<ViewEventArgs>? GrabbedMouse; | ||
|
Check warning on line 24 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
|
|
||
| /// <summary>Invoked after a view has un-grabbed the mouse.</summary> | ||
| public event EventHandler<ViewEventArgs>? UnGrabbedMouse; | ||
|
Check warning on line 27 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
|
|
||
| /// <summary> | ||
| /// Grabs the mouse, forcing all mouse events to be routed to the specified view until <see cref="UngrabMouse"/> | ||
| /// is called. | ||
| /// </summary> | ||
| /// <param name="view">View that will receive all mouse events until <see cref="UngrabMouse"/> is invoked.</param> | ||
| public void GrabMouse (View? view); | ||
|
Check warning on line 34 in Terminal.Gui/App/IMouseGrabHandler.cs
|
||
tig marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /// <summary>Releases the mouse grab, so mouse events will be routed to the view on which the mouse is.</summary> | ||
| public void UngrabMouse (); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.