DragSlot

A drag slot is a node slot providing drag & drop functionality.

Constructors

this
this(Node node)

Create a new drag slot and place a node inside of it.

Members

Aliases

isHidden
alias isHidden = typeof(super).isHidden
Undocumented in source.

Functions

drag
void drag()

Drag the node.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
hoveredImpl
bool hoveredImpl(Rectangle rect, Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
isDragged
bool isDragged()

If true, this node is currently being dragged.

isHovered
bool isHovered()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseImpl
void mouseImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 available)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin makeHoverable
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Properties

isHidden
bool isHidden [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

dragAction
DragAction dragAction;

Current drag action, if applicable.

handle
DragHandle handle;
Undocumented in source.

Inherited Members

From FluidHoverable

mouseImpl
void mouseImpl()

Handle mouse input on the node.

isDisabled
inout(bool) isDisabled()

Check if the node is disabled. mixin makeHoverable to implement.

isHovered
bool isHovered()

Check if the node is hovered.

asNode
inout(Node) asNode()

Get the underlying node.

inputActionImpl
bool inputActionImpl(InputActionID id, bool active)

Handle input actions. This function is called by runInputAction and can be overriden to preprocess input actions in some cases.

runInputActionImpl
bool runInputActionImpl(InputActionID action, bool active)

Run input actions.

runInputAction
bool runInputAction(InputActionID action, bool active)
Undocumented in source. Be warned that the author may not have intended to support it.
runInputAction
bool runInputAction(bool active)
Undocumented in source. Be warned that the author may not have intended to support it.
runMouseInputActions
bool runMouseInputActions()

Run mouse input actions for the node.

makeHoverable
mixintemplate makeHoverable()
Undocumented in source.
enableInputActions
mixintemplate enableInputActions()
Undocumented in source.

Meta