Module node

Module node 

Source
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.
VarPresentData
Extension method to convert a variable to a node.
VarPresentList
Extension method fo convert a variable to a node list.
VarPresentListFromIter
Extension method fo convert a variable to a node list.
VarPresentOpt
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_visual and manages the border_offsets coordinating 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 content node 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 list using item_fn for each new list item.
list_presenter_from_iter
Node list that presents list using item_fn for 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 data using wgt_fn.
presenter_opt
Node that presents data using wgt_fn if data is available, otherwise presents nil.
validate_getter_var
Logs an error if the _var is 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.