123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- namespace Terminal.Gui;
- /// <summary>Mouse flags reported in <see cref="Terminal.Gui.MouseEventArgs"/>.</summary>
- /// <remarks>They just happen to map to the ncurses ones.</remarks>
- [Flags]
- public enum MouseFlags
- {
- /// <summary>
- /// No mouse event. This is the default value for <see cref="Terminal.Gui.MouseEventArgs.Flags"/> when no mouse event is being reported.
- /// </summary>
- None = 0,
- /// <summary>The first mouse button was pressed.</summary>
- Button1Pressed = 0x2,
- /// <summary>The first mouse button was released.</summary>
- Button1Released = 0x1,
- /// <summary>The first mouse button was clicked (press+release).</summary>
- Button1Clicked = 0x4,
- /// <summary>The first mouse button was double-clicked.</summary>
- Button1DoubleClicked = 0x8,
- /// <summary>The first mouse button was triple-clicked.</summary>
- Button1TripleClicked = 0x10,
- /// <summary>The second mouse button was pressed.</summary>
- Button2Pressed = 0x80,
- /// <summary>The second mouse button was released.</summary>
- Button2Released = 0x40,
- /// <summary>The second mouse button was clicked (press+release).</summary>
- Button2Clicked = 0x100,
- /// <summary>The second mouse button was double-clicked.</summary>
- Button2DoubleClicked = 0x200,
- /// <summary>The second mouse button was triple-clicked.</summary>
- Button2TripleClicked = 0x400,
- /// <summary>The third mouse button was pressed.</summary>
- Button3Pressed = 0x2000,
- /// <summary>The third mouse button was released.</summary>
- Button3Released = 0x1000,
- /// <summary>The third mouse button was clicked (press+release).</summary>
- Button3Clicked = 0x4000,
- /// <summary>The third mouse button was double-clicked.</summary>
- Button3DoubleClicked = 0x8000,
- /// <summary>The third mouse button was triple-clicked.</summary>
- Button3TripleClicked = 0x10000,
- /// <summary>The fourth mouse button was pressed.</summary>
- Button4Pressed = 0x80000,
- /// <summary>The fourth mouse button was released.</summary>
- Button4Released = 0x40000,
- /// <summary>The fourth button was clicked (press+release).</summary>
- Button4Clicked = 0x100000,
- /// <summary>The fourth button was double-clicked.</summary>
- Button4DoubleClicked = 0x200000,
- /// <summary>The fourth button was triple-clicked.</summary>
- Button4TripleClicked = 0x400000,
- /// <summary>Flag: the shift key was pressed when the mouse button took place.</summary>
- ButtonShift = 0x2000000,
- /// <summary>Flag: the ctrl key was pressed when the mouse button took place.</summary>
- ButtonCtrl = 0x1000000,
- /// <summary>Flag: the alt key was pressed when the mouse button took place.</summary>
- ButtonAlt = 0x4000000,
- /// <summary>The mouse position is being reported in this event.</summary>
- ReportMousePosition = 0x8000000,
- /// <summary>Vertical button wheeled up.</summary>
- WheeledUp = 0x10000000,
- /// <summary>Vertical button wheeled down.</summary>
- WheeledDown = 0x20000000,
- /// <summary>Vertical button wheeled up while pressing ButtonCtrl.</summary>
- WheeledLeft = ButtonCtrl | WheeledUp,
- /// <summary>Vertical button wheeled down while pressing ButtonCtrl.</summary>
- WheeledRight = ButtonCtrl | WheeledDown,
- /// <summary>Mask that captures all the events.</summary>
- AllEvents = 0x7ffffff
- }
|