fluid.structs

Members

Enums

IsOpaque
enum IsOpaque

InBounds is used as a return value of Node.inBounds. For most use-cases, InBounds.yes and InBounds.no are the most appropriate, specifying that the point in question is, or is not, in the node's bounds. This defines the way nodes interact with mouse, touchscreen or other hover events (fluid.io.hover).

NodeAlign
enum NodeAlign
Undocumented in source.
NodeTag
enum NodeTag

Tags are optional "marks" left on nodes that are used to apply matching styles. Tags closely resemble HTML classes.

isNodeParam
eponymoustemplate isNodeParam(T, NodeType = Node)

Check if the given type implements node parameter interface.

isSomeEnum
eponymoustemplate isSomeEnum(alias tag)

Test if the given symbol is an enum, or an enum member.

Functions

alignRectangle
Vector2 alignRectangle(NodeAlign[2] alignment, Rectangle space, Vector2 size)

Place a rectangle inside another based on its specified alignment. This function considers NodeAlign.fill to be equivalent to NodeAlign.start.

disabled
auto disabled(bool value)

This node property will disable the subject, setting the isHidden field to true.

hidden
auto hidden(bool value)

This node property will make the subject hidden, setting the isHidden field to true.

ignoreMouse
auto ignoreMouse(bool value)

This node property will disable mouse input on the given node.

layout
Layout layout(uint expand, NodeAlign alignX, NodeAlign alignY)
Layout layout(uint expand, NodeAlign align_)
Layout layout(NodeAlign alignX, NodeAlign alignY)
Layout layout(NodeAlign align_)
Layout layout(uint expand)

Create a new layout

layout
Layout layout()

CTFE version of the layout constructor, allows using strings instead of enum members, to avoid boilerplate.

tagID
TagID tagID()
Undocumented in source.
tags
TagList tags()

Specify tags for the next node to add.

Structs

IsOpaqueMask
struct IsOpaqueMask

This bitmask defines whether a node contains a point in its boundaries.

Layout
struct Layout

Node parameter for setting the node layout.

TagID
struct TagID

Unique ID of a node tag.

TagList
struct TagList

Node parameter assigning a new set of tags to a node.

Templates

isNodeTag
template isNodeTag(alias tag)

Check if the given item is a node tag.

Meta