i_slint_core::properties

Function set_state_binding

Source
pub fn set_state_binding(
    property: Pin<&Property<StateInfo>>,
    binding: impl Fn() -> i32 + 'static,
)
Expand description

Sets a binding that returns a state to a StateInfo property