GluiSpace

This is a space, basic container for other nodes.

Space only acts as a container and doesn't implement styles and doesn't take focus. It can be very useful to build overlaying nodes, eg. with GluiOnionFrame.

Constructors

this
this(BasicNodeParam!index params, GluiNode[] nodes)
Undocumented in source.

Members

Functions

drawChildren
void drawChildren(void delegate(GluiNode) @(safe) painter)

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

drawImpl
void drawImpl(Rectangle , Rectangle area)
Undocumented in source. Be warned that the author may not have intended to support it.
hoveredImpl
bool hoveredImpl(Rectangle , Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T nodes)

Add children.

pickStyle
const(Style) pickStyle()
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 DefineStyles
Undocumented in source.

Variables

children
Children children;

Children of this frame.

directionHorizontal
bool directionHorizontal;

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

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 GluiNode

__anonymous
mixin DefineStyles!("style", q{ Style.init })

This node defines a single style, style, which also works as a default style for all other nodes. However, rather than for that, the purpose of this style is to define the convention of style being the node's default, idle style.

tree
LayoutTree* tree;

Tree data for the node. Note: requires at least one draw before this will work.

layout
Layout layout;

Layout for this node.

toRemove
bool toRemove;

If true, this node will be removed from the tree on the next draw.

minSize
auto minSize;

Minimum size of the node.

theme
const(Theme) theme [@property getter]

Get the current theme.

theme
Theme theme [@property setter]

Set the theme.

hidden
bool hidden [@property getter]

Check if the node is hidden.

hidden
bool hidden [@property setter]

Set the visibility

show
GluiNode show()

Show the node.

hide
GluiNode hide()

Hide the node.

toggleShow
void toggleShow()

Toggle the node's visibility.

remove
void remove()

Remove this node from the tree before the next draw.

hovered
bool hovered [@property getter]

Check if this node is hovered.

updateSize
void updateSize()

Recalculate the window size before next draw.

draw
void draw()

Draw this node as a root node.

draw
void draw(Rectangle space)

Draw this node at specified location.

resize
void resize(Vector2 space)

Recalculate the minimum node size and update the minSize property.

resizeImpl
void resizeImpl(Vector2 space)

Ditto

drawImpl
void drawImpl(Rectangle paddingBox, Rectangle contentBox)

Draw this node.

hoveredImpl
bool hoveredImpl(Rectangle rect, Vector2 mousePosition)

Check if the node is hovered.

ImplHoveredRect
mixintemplate ImplHoveredRect()
Undocumented in source.
pickStyle
const(Style) pickStyle()

Get the current style.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta