[][src]Trait ommui_relm_widgets::LoadFromFile

pub trait LoadFromFile: Sized {
    fn load_from_file_at_scale<P: AsRef<Path>>(
        filename: P,
        max_width: u16,
        max_height: u16
    ) -> Result<Self>; fn load_from_file_with_size<P: AsRef<Path>>(
        filename: P,
        pixelsize: u16
    ) -> Result<Self> { ... } }

A trait for items loadable from file.

Required methods

fn load_from_file_at_scale<P: AsRef<Path>>(
    filename: P,
    max_width: u16,
    max_height: u16
) -> Result<Self>

Load the item with a maximum width and height.

Loading content...

Provided methods

fn load_from_file_with_size<P: AsRef<Path>>(
    filename: P,
    pixelsize: u16
) -> Result<Self>

Load the item with a defined pixel size.

Loading content...

Implementations on Foreign Types

impl LoadFromFile for Pixbuf[src]

Loading content...

Implementors

Loading content...