pub fn state( child: impl UiNode, state: impl IntoVar<WindowState>, ) -> impl UiNode
P Binds the state window var with the property value.
P
state
The binding is bidirectional and the window variable is assigned on init.