public sealed struct Editor.MouseEvent
Information about a `Editor.Widget`s mouse event.
Properties
Showing 14 properties
public bool Editor.MouseEvent.Accepted { get; set; }
Whether this event should be propagated to parent widgets () or not ().
public Sandbox.MouseButtons Editor.MouseEvent.Button { get; set; }
The mouse button that triggered the event.
public Sandbox.MouseButtons Editor.MouseEvent.ButtonState { get; set; }
The current mouse button state.
public bool Editor.MouseEvent.HasAlt { get; set; }
Whether `Alt` key was being held down at the time of the event.
public bool Editor.MouseEvent.HasCtrl { get; set; }
Whether `Control` key was being held down at the time of the event.
public bool Editor.MouseEvent.HasShift { get; set; }
Whether `Shift` key was being held down at the time of the event.
public bool Editor.MouseEvent.IsDoubleClick { get; set; }
Whether this mouse event was a double click.
public Sandbox.KeyboardModifiers Editor.MouseEvent.KeyboardModifiers { get; set; }
The keyboard modifier keys that were held down at the moment the event triggered.
public bool Editor.MouseEvent.LeftMouseButton { get; set; }
Whether the event was triggered by the left mouse button.
public Vector2 Editor.MouseEvent.LocalPosition { get; set; }
Position of the mouse cursor relative to the widgets top left corner.
public bool Editor.MouseEvent.MiddleMouseButton { get; set; }
Whether the event was triggered by the left mouse button.
public bool Editor.MouseEvent.RightMouseButton { get; set; }
Whether the event was triggered by the left mouse button.
public Vector2 Editor.MouseEvent.ScreenPosition { get; set; }
Absolute position of the mouse cursor on the screen.
public Vector2 Editor.MouseEvent.WindowPosition { get; set; }
Position of the mouse cursor relative to the top left corner of the window the widget belongs to.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.MouseEvent |