class
EditorWindowDropTarget
Drop target associated with a particular editor window.
Drop target window and bounds will be updated if the parent window is re-docked or moved around the screen.
Public
Constructors
EditorWindowDropTarget
Methods
~EditorWindowDropTarget
GetFileList
Returns a list of files received by the drop target.
Only valid after a drop of FileList type has been triggered.
SetArea
Updates the area of the drop target, relative to the parent editor window.
GetAbsoluteDropTargetArea
Returns the bounds of the drop target, relative to the screen origin.
This depends of set bounds using SetBounds() and the current position and size of the parent editor window.
Destroy
Makes the drop target inactive.
Fields
OnDragOver
Triggered when a pointer is being dragged over the drop area.
Provides window coordinates of the pointer position.
OnDrop
Triggered when the user completes a drop while pointer is over the drop area.
Provides window coordinates of the pointer position.
OnEnter
Triggered when a pointer enters the drop area.
Provides window coordinates of the pointer position.
Private
Methods
SetDropTarget
Creates an internal native drop target over the specified window.
Any previous drop target is overwritten.
- parentWindow
- Window the drop target is located on.
- area
- Area of the drop target, relative to the parent window.
DoOnWindowParentTabGroupChanged
Triggered when editor window parent tab group changes.
This might mean we need to re-create the drop target as the parent render window might have changed.
DoOnWidgetResized
Triggered when the parent editor window is resized.
DoOnWidgetMoved
Triggered when the parent editor window is moved.