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, Label provides the label simpleConstructor. Using these has increased convenience by making it possible to specify special properties while constructing the node, for example

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

See Also

fluid.utils.simpleConstructor

Meta