Skip to main content

ControlModifiers

Trait ControlModifiers 

Source
pub trait ControlModifiers: Sized {
    // Required method
    fn control_size<U>(self, size: impl Res<U> + 'static) -> Self
       where U: Into<ControlSize> + Clone + 'static;
}
Expand description

Modifiers for common control-level behavior that can be shared across views.

Required Methods§

Source

fn control_size<U>(self, size: impl Res<U> + 'static) -> Self
where U: Into<ControlSize> + Clone + 'static,

Applies semantic sizing classes to a control.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§