s&box docs

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 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 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.

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.MouseEvent

On this page