Skip to main content

ControlModifiers

Trait ControlModifiers 

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

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

Required Methods§

Source

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

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§