Skip to main content

BackgroundExt

Trait BackgroundExt 

Source
pub trait BackgroundExt: StyleExt {
    // Provided method
    fn background(self, background: impl Into<Fill>) -> Self { ... }
}
Expand description

Methods for painting an element’s background.

Provided Methods§

Source

fn background(self, background: impl Into<Fill>) -> Self

Paint the background with a color, gradient or shader. See Fill.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§