GluiMapSpace

Undocumented in source.

Constructors

this
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(GluiNode node, Position position)

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

dragChildBy
void dragChildBy(GluiNode 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
GluiNode mouseDrag(GluiNode 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(GluiNode) mouseDrag()

Get the node currently affected by mouseDrag.

moveChild
void moveChild(GluiNode node, Position position)
Undocumented in source.
moveChild
void moveChild(GluiNode node, Vector2 vector)
Undocumented in source.
moveChild
void moveChild(GluiNode node, DropVector vector)
Undocumented in source. Be warned that the author may not have intended to support it.
preventOverlap
deprecated inout(bool) preventOverlap()
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[GluiNode] positions;

Mapping of nodes to their positions.

preventOverflow
bool preventOverflow;

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

Mixed In Members

From mixin DefineStyles

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From GluiSpace

__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.

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.
drawChildren
void drawChildren(void delegate(GluiNode) @(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
const(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta