Skip to main content

ferroui_base/data/
update_source_trigger.rs

1/// Describes the timing of binding source updates.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3#[repr(i32)]
4pub enum UpdateSourceTrigger {
5    /// The default update source trigger, currently `PropertyChanged`.
6    #[default]
7    Default = 0,
8    /// Updates the binding source immediately whenever the binding target
9    /// property changes.
10    PropertyChanged = 1,
11    /// Updates the binding source whenever the binding target element loses
12    /// focus.
13    LostFocus = 2,
14    /// Updates the binding source only when `update_source` is called on the
15    /// binding expression.
16    Explicit = 3,
17}