Trait i_slint_core::item_rendering::RenderImage

source ·
pub trait RenderImage {
    // Required methods
    fn target_size(self: Pin<&Self>) -> LogicalSize;
    fn source(self: Pin<&Self>) -> Image;
    fn source_clip(self: Pin<&Self>) -> Option<IntRect>;
    fn image_fit(self: Pin<&Self>) -> ImageFit;
    fn rendering(self: Pin<&Self>) -> ImageRendering;
    fn colorize(self: Pin<&Self>) -> Brush;
    fn alignment(
        self: Pin<&Self>,
    ) -> (ImageHorizontalAlignment, ImageVerticalAlignment);
    fn tiling(self: Pin<&Self>) -> (ImageTiling, ImageTiling);
}
Expand description

Trait for an item that represents an Image towards the renderer

Required Methods§

source

fn target_size(self: Pin<&Self>) -> LogicalSize

source

fn source(self: Pin<&Self>) -> Image

source

fn source_clip(self: Pin<&Self>) -> Option<IntRect>

source

fn image_fit(self: Pin<&Self>) -> ImageFit

source

fn rendering(self: Pin<&Self>) -> ImageRendering

source

fn colorize(self: Pin<&Self>) -> Brush

source

fn alignment( self: Pin<&Self>, ) -> (ImageHorizontalAlignment, ImageVerticalAlignment)

source

fn tiling(self: Pin<&Self>) -> (ImageTiling, ImageTiling)

Implementors§