Module zng::widget::node

source ·
Expand description

Widget node types, UiNode, UiNodeList and others.

Macros§

Structs§

Enums§

Traits§

Functions§

  • Helper for declaring state properties that are controlled by a variable.
  • Helper for declaring state properties that are controlled by a variable.
  • Creates a border node that delegates rendering to a border_visual and manages the border_offsets coordinating with the other borders of the widget.
  • Helper for declaring state properties that depend on a single event.
  • Helper for declaring state properties that depend on two other event states.
  • Helper for declaring state properties that depend on three other event states.
  • Helper for declaring state properties that depend on four other event states.
  • Create a widget node that wraps the widget with any number of other non-widget nodes and still delegates with_context to the widget.
  • Transforms and clips the content node according with the default widget border align behavior.
  • Create a node that controls interaction for all widgets inside node.
  • Node that presents list using item_fn for each new list item.
  • Creates a node that is implemented as a closure that matches over UiNodeOp and delegates to another child node.
  • Creates a node that is implemented as a closure that matches over UiNodeOp and does not delegate to any child node.
  • Creates a node that is implemented as a closure that matches over UiNodeOp and delegates to multiple children nodes in a list.
  • Like match_node, but does not change the child type when build with dyn_node.
  • Creates a widget that is implemented as a closure that matches over UiNodeOp and delegates to another child widget.
  • Node that presents data using wgt_fn.
  • Node that presents data using wgt_fn if data is available, otherwise presents nil.
  • Helper for declaring state getter properties that are controlled by values in the widget state map.
  • Helper for declaring state properties that are controlled by values in the widget state map.
  • Helper for declaring widgets that are recontextualized to take in some of the context of an original parent.
  • Helper for declaring nodes that sets a context local value.
  • Helper for declaring nodes that sets a context local value generated on init.
  • Helper for declaring properties that sets a context var.
  • Helper for declaring properties that sets a context var to a value generated on init.
  • Helper for a property that gets the index of the widget in the parent panel and the number of children.
  • Helper for a property that gets the index of the widget in the parent panel.
  • Helper for a property that gets the reverse index of the widget in the parent panel.
  • Helper for declaring properties that set the widget state.
  • Helper for declaring properties that set the widget state with a custom closure.

Type Aliases§