StyleExt

Trait StyleExt 

Source
pub trait StyleExt: Sized {
    // Required method
    fn get_style(&mut self) -> &mut StyleState;

    // Provided methods
    fn background<S>(self, background: S) -> Self
       where S: Into<Color> { ... }
    fn background_conic_gradient<S>(self, background: S) -> Self
       where S: Into<ConicGradient> { ... }
    fn background_linear_gradient<S>(self, background: S) -> Self
       where S: Into<LinearGradient> { ... }
    fn background_radial_gradient<S>(self, background: S) -> Self
       where S: Into<RadialGradient> { ... }
    fn border(self, border: impl Into<Option<Border>>) -> Self { ... }
    fn shadow(self, shadow: impl Into<Shadow>) -> Self { ... }
    fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self { ... }
}

Required Methods§

Source

fn get_style(&mut self) -> &mut StyleState

Provided Methods§

Source

fn background<S>(self, background: S) -> Self
where S: Into<Color>,

Source

fn background_conic_gradient<S>(self, background: S) -> Self
where S: Into<ConicGradient>,

Source

fn background_linear_gradient<S>(self, background: S) -> Self
where S: Into<LinearGradient>,

Source

fn background_radial_gradient<S>(self, background: S) -> Self
where S: Into<RadialGradient>,

Source

fn border(self, border: impl Into<Option<Border>>) -> Self

Source

fn shadow(self, shadow: impl Into<Shadow>) -> Self

Source

fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self

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§