variables
Property adapters that expose runtime values to expression scopes.
Structs
Variable
Runtime property adapter used by expression scopes.
Implementations
get_as_pax_value
pub fn get_as_pax_value(&self) -> PaxValue
Reads the current value as a PaxValue.
new
pub fn new<T: PropertyValue + ToPaxValue>(untyped_property: UntypedProperty) -> Self
Wraps an untyped property and exposes it as a PaxValue.
new_from_typed_property
pub fn new_from_typed_property<T: PropertyValue + ToPaxValue>(property: Property<T>) -> Self
Wraps a typed property and exposes it as a PaxValue.
read_pax_value_ref
pub fn read_pax_value_ref<V>(&self, f: impl FnOnce(&PaxValue) -> V) -> V
Reads the current PaxValue by reference.
try_typed_binding
pub fn try_typed_binding<T: PropertyValue + CoercionRules>(&self, name: &str) -> Option<Property<T>>
Creates an independent one-way binding when exact typed forwarding is
safe. Unlike a double binding, writes/easing on the result never mutate
the source. Mismatched types and custom conversions return None.