Module i_slint_core::properties

source ·
Expand description

Property binding engine.

The current implementation uses lots of heap allocation but that can be optimized later using thin dst container, and intrusive linked list

Re-exports§

Structs§

  • A change tracker is used to run a callback when a property value changes.
  • A Property that allow binding that track changes
  • This structure allow to run a closure that queries properties, and can report if any property we accessed have become dirty

Traits§

  • Types that can be set as bindings for a Property<T>
  • InterpolatedPropertyValue is a trait used to enable properties to be used with animations that interpolate values. The basic requirement is the ability to apply a progress that’s typically between 0 and 1 to a range.

Functions§

  • Evaluate a function, but do not register any property dependencies if that function get the value of properties
  • Return true if there is currently a binding being evaluated so that access to properties register dependencies to that binding.
  • Sets a binding that returns a state to a StateInfo property