[][src]Trait appstream_glib::ScreenshotExt

pub trait ScreenshotExt: 'static {
    fn add_image<P: IsA<Image>>(&self, image: &P);
fn equal<P: IsA<Screenshot>>(&self, screenshot2: &P) -> bool;
fn get_caption(&self, locale: Option<&str>) -> Option<GString>;
fn get_image(&self, width: u32, height: u32) -> Option<Image>;
fn get_image_for_locale(
        &self,
        locale: Option<&str>,
        width: u32,
        height: u32
    ) -> Option<Image>;
fn get_kind(&self) -> ScreenshotKind;
fn get_priority(&self) -> i32;
fn get_source(&self) -> Option<Image>;
fn set_caption(&self, locale: Option<&str>, caption: &str);
fn set_kind(&self, kind: ScreenshotKind);
fn set_priority(&self, priority: i32); }

Required methods

fn add_image<P: IsA<Image>>(&self, image: &P)

fn equal<P: IsA<Screenshot>>(&self, screenshot2: &P) -> bool

fn get_caption(&self, locale: Option<&str>) -> Option<GString>

fn get_image(&self, width: u32, height: u32) -> Option<Image>

fn get_image_for_locale(
    &self,
    locale: Option<&str>,
    width: u32,
    height: u32
) -> Option<Image>

fn get_kind(&self) -> ScreenshotKind

fn get_priority(&self) -> i32

fn get_source(&self) -> Option<Image>

fn set_caption(&self, locale: Option<&str>, caption: &str)

fn set_kind(&self, kind: ScreenshotKind)

fn set_priority(&self, priority: i32)

Loading content...

Implementors

impl<O: IsA<Screenshot>> ScreenshotExt for O[src]

Loading content...