27 #include "../../shared/ufotypes.h"
void UI_DNDDragItem(uiNode_t *node, const Item *item)
Start to drag an item.
void UI_DNDDrop(void)
Drop the object at the current position.
uiNode_t * UI_DNDGetTargetNode(void)
Return target of the DND.
item instance data, with linked list capability
void UI_DrawDragAndDrop(int mousePosX, int mousePosY)
Draw to dragging object and catch mouse move event.
bool UI_DNDIsTargetNode(uiNode_t *node)
Return true if the requested node is the current target of the DND.
bool UI_DNDIsDragging(void)
Return true if we are dragging something.
int UI_DNDGetType(void)
Return the current type of the dragging object, else DND_NOTHING.
Atomic structure used to define most of the UI.
bool UI_DNDIsSourceNode(uiNode_t *node)
Return true if the requested node is the source of the DND.
uiNode_t * UI_DNDGetSourceNode(void)
Return source of the DND.
void UI_DNDAbort(void)
Drop the object at the current position.
Item * UI_DNDGetItem(void)