GluiNode

Represents a Glui node.

Constructors

this
this(Layout layout, Theme theme)
this(Theme theme, Layout layout)
this()

Members

Functions

disabled
deprecated inout(bool) disabled()

Check if this node is disabled.

draw
void draw()

Draw this node as a root node.

draw
void draw(Rectangle space)

Draw this node at specified location.

drawImpl
void drawImpl(Rectangle paddingBox, Rectangle contentBox)

Draw this node.

hide
This hide()

Hide the node.

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

Check if the node is hovered.

isDisabled
inout(bool) isDisabled()

Check if this node is disabled.

isDisabledInherited
bool isDisabledInherited()

Checks if the node is disabled, either by self, or by any of its ancestors. Only works while the node is being drawn.

mousePass
deprecated inout(bool) mousePass()
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
const(Style) pickStyle()

Get the current style.

remove
void remove()

Remove this node from the tree before the next draw.

resize
void resize(LayoutTree* tree, Theme theme, Vector2 space)

Recalculate the minimum node size and update the minSize property.

resizeImpl
void resizeImpl(Vector2 space)

Ditto

show
This show()

Show the node.

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

Toggle the node's visibility.

updateSize
void updateSize()

Recalculate the window size before next draw.

Mixins

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

Mixin templates

ImplHoveredRect
mixintemplate ImplHoveredRect()
Undocumented in source.

Properties

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

Check if the node is hidden.

isHidden
bool isHidden [@property setter]

Set the visibility

isHovered
bool isHovered [@property getter]

Check if this node is hovered.

theme
const(Theme) theme [@property getter]

Get the current theme.

theme
Theme theme [@property setter]

Set the theme.

Variables

ignoreMouse
bool ignoreMouse;

If true, mouse focus will be disabled for this node, so mouse signals will "go through" to its parents, as if the node wasn't there. The mouse will still detect hover like normal.

layout
Layout layout;

Layout for this node.

minSize
auto minSize;

Minimum size of the node.

toRemove
bool toRemove;

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

tree
LayoutTree* tree;

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

Inherited Members

From Styleable

reloadStyles
void reloadStyles()

Reload styles for the node. Triggered when the theme is changed.

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source.

Meta