DragAction

Undocumented in source.

Constructors

this
this(DragSlot slot)
Undocumented in source.

Members

Functions

afterInput
void afterInput(bool focusHandled)

Process input.

afterTree
void afterTree()

Tree drawn, draw the node now.

beforeDraw
void beforeDraw(Node node, Rectangle rectangle)
Undocumented in source. Be warned that the author may not have intended to support it.
beforeResize
void beforeResize(Node node, Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
beforeTree
void beforeTree(Node , Rectangle )
Undocumented in source. Be warned that the author may not have intended to support it.
offset
Vector2 offset()
Undocumented in source. Be warned that the author may not have intended to support it.
relativeDragRectangle
Rectangle relativeDragRectangle()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

mouseStart
Vector2 mouseStart;
Undocumented in source.
slot
DragSlot slot;
Undocumented in source.
target
FluidDroppable target;
Undocumented in source.
targetRectangle
Rectangle targetRectangle;
Undocumented in source.

Inherited Members

From TreeAction

startNode
Node startNode;

Node to descend into; beforeDraw and afterDraw will only be emitted for this node and its children.

toStop
bool toStop;

If true, this action is complete and no callbacks should be ran.

stop
void stop()

Stop the action

beforeTree
void beforeTree(Node root, Rectangle viewport)

Called before the tree is drawn. Keep in mind this might not be called if the action is started when tree iteration has already begun.

beforeResize
void beforeResize(Node node, Vector2 viewportSpace)

Called before a node is resized.

beforeDraw
void beforeDraw(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
void beforeDraw(Node node, Rectangle space)

Called before each drawImpl call of any node in the tree, so supplying parent nodes before their children.

beforeDrawImpl
void beforeDrawImpl(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)

internal

afterDraw
void afterDraw(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)
void afterDraw(Node node, Rectangle space)

Called after each drawImpl call of any node in the tree, so supplying children nodes before their parents.

afterDrawImpl
void afterDrawImpl(Node node, Rectangle space, Rectangle paddingBox, Rectangle contentBox)

internal

afterTree
void afterTree()

Called after the tree is drawn. Called before input events, so they can assume actions have completed.

afterInput
void afterInput(bool keyboardHandled)

Hook that triggers after processing input. Useful if post-processing is necessary to, perhaps, implement fallback input.

Meta