DragEventclass

Information about a widget drag and drop event.

objectDragEvent
Namespace
global
Assembly
Sandbox.Tools
Declaration
public class Editor.Widget.DragEvent

Constructors1

Showing 1 constructors

public DragEvent()PUBLICCONSTRUCTOR

Properties7

Showing 7 properties

public Editor.DropAction Editor.Widget.DragEvent.Action { get; set; }PUBLICGETSET

Set this to what action will be (or was) performed.

Returns:DropAction

public Editor.DragData Editor.Widget.DragEvent.Data { get; set; }PUBLICGETSET

The drag data.

Returns:DragData

public bool Editor.Widget.DragEvent.HasAlt { get; set; }PUBLICGETSET

Whether `Alt` key was being held down at the time of the event.

Returns:bool

public bool Editor.Widget.DragEvent.HasCtrl { get; set; }PUBLICGETSET

Whether `Control` key was being held down at the time of the event.

Returns:bool

public bool Editor.Widget.DragEvent.HasShift { get; set; }PUBLICGETSET

Whether `Shift` key was being held down at the time of the event.

Returns:bool

public Vector2 Editor.Widget.DragEvent.LocalPosition { get; set; }PUBLICGETSET

Cursor position, local to this widget.

Returns:Vector2

On this page