StyleExt

Trait StyleExt 

Source
pub trait StyleExt
where Self: Sized,
{ // Required method fn get_style(&mut self) -> &mut StyleState; // Provided methods fn background<S: Into<Color>>(self, background: S) -> Self { ... } fn background_conic_gradient<S: Into<ConicGradient>>( self, background: S, ) -> Self { ... } fn background_linear_gradient<S: Into<LinearGradient>>( self, background: S, ) -> Self { ... } fn background_radial_gradient<S: Into<RadialGradient>>( self, background: S, ) -> Self { ... } 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: Into<Color>>(self, background: S) -> Self

Source

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

Source

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

Source

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

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§