Expand description
Helper nodes.
This module defines some foundational nodes that can be used for declaring properties and widgets.
Macros§
- command_
property - Declare one or more command event properties.
- event_
property - Declare one or more event properties.
Traits§
- VarPresent
- Extension method to convert a variable to a node.
- VarPresent
Data - Extension method to convert a variable to a node.
- VarPresent
List - Extension method fo convert a variable to a node list.
- VarPresent
List From Iter - Extension method fo convert a variable to a node list.
- VarPresent
Opt - Extension method to convert a variable to a node.
Functions§
- bind_
state - Helper for declaring state properties that are controlled by a variable.
- bind_
state_ init - Helper for declaring state properties that are controlled by a variable.
- border_
node - Creates a border node that delegates rendering to a
border_visualand manages theborder_offsetscoordinating with the other borders of the widget. - event_
state - Helper for declaring state properties that depend on a single event.
- event_
state2 - Helper for declaring state properties that depend on two other event states.
- event_
state3 - Helper for declaring state properties that depend on three other event states.
- event_
state4 - Helper for declaring state properties that depend on four other event states.
- fill_
node - Transforms and clips the
contentnode according with the default widget border align behavior. - interactive_
node - Create a node that controls interaction for all widgets inside
node. - list_
presenter - Node list that presents
listusingitem_fnfor each new list item. - list_
presenter_ from_ iter - Node list that presents
listusingitem_fnfor each list item. - on_
command - Helper for declaring command event properties.
- on_
event - Helper for declaring event properties.
- on_
pre_ command - Helper for declaring command preview handlers.
- on_
pre_ event - Helper for declaring preview event properties.
- presenter
- Node that presents
datausingwgt_fn. - presenter_
opt - Node that presents
datausingwgt_fnif data is available, otherwise presents nil. - validate_
getter_ var - Logs an error if the
_varis always read-only. - widget_
state_ get_ state - Helper for declaring state getter properties that are controlled by values in the widget state map.
- widget_
state_ is_ state - Helper for declaring state properties that are controlled by values in the widget state map.
- with_
context_ blend - Helper for declaring widgets that are recontextualized to take in some of the context of an original parent.
- with_
context_ local - Helper for declaring nodes that sets a context local value.
- with_
context_ local_ init - Helper for declaring nodes that sets a context local value generated on init.
- with_
context_ var - Helper for declaring properties that sets a context var.
- with_
context_ var_ init - Helper for declaring properties that sets a context var to a value generated on init.
- with_
index_ len_ node - Helper for a property that gets the index of the widget in the parent panel and the number of children.
- with_
index_ node - Helper for a property that gets the index of the widget in the parent panel.
- with_
rev_ index_ node - Helper for a property that gets the reverse index of the widget in the parent panel.
- with_
widget_ state - Helper for declaring properties that set the widget state.
- with_
widget_ state_ modify - Helper for declaring properties that set the widget state with a custom closure.