MapSpace

Undocumented in source.

Constructors

this
this(NodeParams params, T children)

Construct the space. Arguments are either nodes, or positions/vectors affecting the next node added through the constructor.

this
deprecated this(BasicNodeParam!index params, T children)

Construct the space. Arguments are either nodes, or positions/vectors affecting the next node added through the constructor.

Members

Aliases

DropDirection
alias DropDirection = MapDropDirection
Undocumented in source.
DropVector
alias DropVector = MapDropVector
Undocumented in source.
Position
alias Position = MapPosition
Undocumented in source.

Functions

addChild
void addChild(Node node, Position position)
addFocusedChild
void addFocusedChild(Node node, Position position)

Add a new child to the space and assign it some position.

dragChildBy
void dragChildBy(Node node, Vector2 delta)

Drag the given child, changing its position relatively.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseDrag
Node mouseDrag(Node node)

Make a node move relatively according to mouse position changes, making it behave as if it was being dragged by the mouse.

mouseDrag
inout(Node) mouseDrag()

Get the node currently affected by mouseDrag.

moveChild
void moveChild(Node node, Position position)
Undocumented in source.
moveChild
void moveChild(Node node, Vector2 vector)
Undocumented in source.
moveChild
void moveChild(Node node, DropVector vector)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
stopMouseDrag
void stopMouseDrag()

Stop current mouse movements

Mixins

__anonymous
mixin DefineStyles
Undocumented in source.

Variables

positions
Position[Node] positions;

Mapping of nodes to their positions.

preventOverflow
bool preventOverflow;

If true, the node will prevent its children from leaving the screen space.

Inherited Members

From Space

__anonymous
mixin DefineStyles
Undocumented in source.
children
Children children;

Children of this frame.

horizontal
bool horizontal;

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

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

Add children.

shallowScrollTo
Rectangle shallowScrollTo(Node , Vector2 , Rectangle , Rectangle childBox)
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.
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.

drawChildren
deprecated void drawChildren(void delegate(Node) @(safe) painter)

Iterate over every child and perform the painting function. Will automatically remove nodes queued for removal.

hoveredImpl
bool hoveredImpl(Rectangle , Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
inout(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta