Skip to main content

Module node

Module node 

Source
Expand description

Components describing UI nodes: their layout style and how they are drawn.

Structs§

ComputedUiNode
Layout result of a UiNode, in logical window pixels (origin at the top-left corner).
UiBackground
Fill color of a UiNode. Nodes without one (nor a UiImage) are invisible, and let the pointer through.
UiBorderColor
Color of the border, whose widths are set by UiStyle::border.
UiCornerRadius
Radius of the node corners, in logical pixels.
UiImage
Image stretched over the whole node, in place of its UiBackground. The texture holds sRGB data, as loaded by default.
UiNode
A UI node, laid out by taffy from its UiStyle. Its UI children are the entity’s [Children] that are also UiNodes. A node without a UiNode parent is a root, laid out against the whole window.