Manages the dragging of GUI elements
More...
|
static DeDragResult | Drag (int dragId, IList draggableList, int currDraggableItemIndex) |
| Call this after each draggable GUI block, to calculate and draw the current drag state (or complete it if the mouse was released). More...
|
|
static DeDragResult | Drag (int dragId, IList draggableList, int currDraggableItemIndex, Color dragEvidenceColor) |
| Call this after each draggable GUI block, to calculate and draw the current drag state (or complete it if the mouse was released). More...
|
|
static DeDragResult | EndDrag (bool applyDrag) |
| Ends the drag operations, and eventually applies the drag outcome. Returns TRUE if the position of the dragged item actually changed. Called automatically by Drag method. Use it only if you want to force the end of a drag operation. More...
|
|
static void | StartDrag (int dragId, Editor editor, IList draggableList, int draggedItemIndex, object optionalData=null) |
| Starts a drag operation on a GUI element. More...
|
|
static void | StartDrag (int dragId, EditorWindow editorWindow, IList draggableList, int draggedItemIndex, object optionalData=null) |
| Starts a drag operation on a GUI element. More...
|
|
|
static readonly Color | DefaultDragColor = new Color(0.1720873f, 0.4236527f, 0.7686567f, 0.35f) |
|
Manages the dragging of GUI elements
static DeDragResult DG.DemiEditor.DeGUIDrag.Drag |
( |
int |
dragId, |
|
|
IList |
draggableList, |
|
|
int |
currDraggableItemIndex |
|
) |
| |
|
static |
Call this after each draggable GUI block, to calculate and draw the current drag state (or complete it if the mouse was released).
- Parameters
-
dragId | ID for this drag operation (must be the same for both StartDrag and Drag |
draggableList | List containing the draggable item and all other relative draggable items |
currDraggableItemIndex | Current index of the draggable item being drawn |
static DeDragResult DG.DemiEditor.DeGUIDrag.Drag |
( |
int |
dragId, |
|
|
IList |
draggableList, |
|
|
int |
currDraggableItemIndex, |
|
|
Color |
dragEvidenceColor |
|
) |
| |
|
static |
Call this after each draggable GUI block, to calculate and draw the current drag state (or complete it if the mouse was released).
- Parameters
-
dragId | ID for this drag operation (must be the same for both StartDrag and Drag |
draggableList | List containing the draggable item and all other relative draggable items |
currDraggableItemIndex | Current index of the draggable item being drawn |
dragEvidenceColor | Color to use for drag divider and selection |
static DeDragResult DG.DemiEditor.DeGUIDrag.EndDrag |
( |
bool |
applyDrag | ) |
|
|
static |
Ends the drag operations, and eventually applies the drag outcome. Returns TRUE if the position of the dragged item actually changed. Called automatically by Drag method. Use it only if you want to force the end of a drag operation.
- Parameters
-
applyDrag | If TRUE applies the drag results, otherwise simply cancels the drag |
static void DG.DemiEditor.DeGUIDrag.StartDrag |
( |
int |
dragId, |
|
|
Editor |
editor, |
|
|
IList |
draggableList, |
|
|
int |
draggedItemIndex, |
|
|
object |
optionalData = null |
|
) |
| |
|
static |
Starts a drag operation on a GUI element.
- Parameters
-
dragId | ID for this drag operation (must be the same for both StartDrag and Drag |
editor | Reference to the current editor drawing the GUI (used when a Repaint is needed) |
draggableList | List containing the dragged item and all other relative draggable items |
draggedItemIndex | DraggableList index of the item being dragged |
optionalData | Optional data that can be retrieved via the optionalDragData static property |
static void DG.DemiEditor.DeGUIDrag.StartDrag |
( |
int |
dragId, |
|
|
EditorWindow |
editorWindow, |
|
|
IList |
draggableList, |
|
|
int |
draggedItemIndex, |
|
|
object |
optionalData = null |
|
) |
| |
|
static |
Starts a drag operation on a GUI element.
- Parameters
-
dragId | ID for this drag operation (must be the same for both StartDrag and Drag |
editorWindow | Reference to the current editor drawing the GUI (used when a Repaint is needed) |
draggableList | List containing the dragged item and all other relative draggable items |
draggedItemIndex | DraggableList index of the item being dragged |
optionalData | Optional data that can be retrieved via the optionalDragData static property |
readonly Color DG.DemiEditor.DeGUIDrag.DefaultDragColor = new Color(0.1720873f, 0.4236527f, 0.7686567f, 0.35f) |
|
static |
object DG.DemiEditor.DeGUIDrag.draggedItem |
|
staticget |
Return the current item being dragged, or NULL if there is none
int DG.DemiEditor.DeGUIDrag.draggedItemOriginalIndex |
|
staticget |
Starting index of current item being dragged, or NULL if there is none
Type DG.DemiEditor.DeGUIDrag.draggedItemType |
|
staticget |
Type of current item being dragged, or NULL if there is none
bool DG.DemiEditor.DeGUIDrag.isDragging |
|
staticget |
True if a GUI element is currently being dragged
object DG.DemiEditor.DeGUIDrag.optionalDragData |
|
staticget |
Retrieves the eventual optional data stored via the StartDrag method
The documentation for this class was generated from the following file:
- D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__Demigiant.Libraries/_Demigiant.Libraries/Core/DemiEditor/DeGUIDrag.cs