Node.this

Construct a new node.

The typical approach to constructing new nodes is via fluid.utils.simpleConstructor. A node component would provide an alias pointing to the simpleConstructor instance, which can then be used as a factory function. For example, Node provides the label simpleConstructor. Using these has increased convenience by making it possible to omit NodeParams or to specify each parameter individually, for example

auto myLabel = label(.layout!1, .theme, "Hello, World!");
// Equivalent of:
auto myLabel = new Label(NodeParams(.layout!1, .theme), "Hello, World!");

See Also

fluid.utils.simpleConstructor

Meta