Frame

This is a frame, a stylized container for other nodes.

Frame supports drag & drop via acceptDrop.

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

canDrop
bool canDrop(Node node)
childOffset
Vector2 childOffset(Vector2 currentOffset, Vector2 childSpace)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
drop
void drop(Vector2 position, Rectangle rectangle, Node node)
Undocumented in source. Be warned that the author may not have intended to support it.
dropHover
void dropHover(Vector2 position, Rectangle rectangle)
Undocumented in source. Be warned that the author may not have intended to support it.
dropOffset
Vector2 dropOffset(Vector2 offset)

Drag and drop implementation: Offset nodes to provide space for the dropped node.

hoveredImpl
bool hoveredImpl(Rectangle rect, Vector2 mousePosition)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 availableSpace)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

dropCursor
Vector2 dropCursor;

Position of the cursor, indicating the area of the drop.

dropSelector
Selector dropSelector;

Selector (same as in themes) used to decide which nodes can be dropped inside, defaults to none.

dropSize
Vector2 dropSize;

Size of the droppable area.

isDropHovered
bool isDropHovered;

If true, a drag & drop node hovers this frame.

Inherited Members

From Space

children
Children children;

Children of this frame.

isHorizontal
bool isHorizontal;

Defines in what directions children of this frame should be placed.

horizontal
alias horizontal = isHorizontal
Undocumented in source.
directionHorizontal
alias directionHorizontal = horizontal
Undocumented in source.
opOpAssign
void opOpAssign(T nodes)

Add children.

resizeImpl
void resizeImpl(Vector2 available)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImpl
void drawImpl(Rectangle , Rectangle area)
Undocumented in source. Be warned that the author may not have intended to support it.
filterChildren
auto filterChildren()

List children in the space, removing all nodes queued for deletion beforehand.

hoveredImpl
bool hoveredImpl(Rectangle , Vector2 )

Space does not take hover; isHovered is always false.

childOffset
Vector2 childOffset(Vector2 currentOffset, Vector2 childSpace)

Calculate the offset for the next node, given the childSpace result for its previous sibling.

childSpace
Vector2 childSpace(Node child, Vector2 available, bool stateful)

Get space for a child.

From FluidDroppable

canDrop
bool canDrop(Node node)

Returns true if the given node can be dropped into this node.

dropHover
void dropHover(Vector2 position, Rectangle rectangle)

Called every frame an eligible node is hovering the rectangle. Used to provide feedback while drawing the container node.

drop
void drop(Vector2 position, Rectangle rectangle, Node node)

Specifies the given node has been dropped inside the container.

Meta