Skip to main content

tweak_with

Function tweak_with 

Source
pub fn tweak_with<W: Tweakable, T: Clone + 'static>(
    value: impl IntoValue<T>,
    apply: impl Fn(&W::Native, &T) + 'static,
) -> Tweak<W>
Expand description

Raw settings made from a value, applied again whenever it changes: appkit::tweak_with(tint, |b: &NSButton, tint| ..).