Skip to main content

ImageExt

Trait ImageExt 

Source
pub trait ImageExt {
    // Required methods
    fn image_tint(self, c: Color) -> View;
    fn image_fit(self, fit: ImageFit) -> View;
    fn image_filter(self, filter: ImageFilter) -> View;
    fn image_source_rect(self, source_rect: ImageSourceRect) -> View;
    fn image_alignment(self, alignment: ImageAlignment) -> View;
}

Required Methods§

Source

fn image_tint(self, c: Color) -> View

Source

fn image_fit(self, fit: ImageFit) -> View

Source

fn image_filter(self, filter: ImageFilter) -> View

Source

fn image_source_rect(self, source_rect: ImageSourceRect) -> View

Source

fn image_alignment(self, alignment: ImageAlignment) -> View

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ImageExt for View

Implementors§