i_slint_core::item_rendering

Trait 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§