Trait gtk::ImageExt [] [src]

pub trait ImageExt {
    fn clear(&self);
    fn get_animation(&self) -> Option<PixbufAnimation>;
    fn get_gicon(&self) -> (Icon, i32);
    fn get_icon_name(&self) -> (String, i32);
    fn get_icon_set(&self) -> (IconSet, i32);
    fn get_pixbuf(&self) -> Option<Pixbuf>;
    fn get_pixel_size(&self) -> i32;
    fn get_storage_type(&self) -> ImageType;
    fn set_from_animation<P: IsA<PixbufAnimation>>(&self, animation: &P);
    fn set_from_file<P: AsRef<Path>>(&self, filename: P);
    fn set_from_gicon<P: IsA<Icon>>(&self, icon: &P, size: i32);
    fn set_from_icon_name(&self, icon_name: &str, size: i32);
    fn set_from_icon_set(&self, icon_set: &IconSet, size: i32);
    fn set_from_pixbuf<'a, P: Into<Option<&'a Pixbuf>>>(&self, pixbuf: P);
    fn set_from_resource<'a, P: Into<Option<&'a str>>>(&self, resource_path: P);
    fn set_from_stock(&self, stock_id: &str, size: i32);
    fn set_from_surface(&self, surface: &Surface);
    fn set_pixel_size(&self, pixel_size: i32);
    fn get_property_file(&self) -> Option<String>;
    fn set_property_file(&self, file: Option<&str>);
    fn set_property_gicon<P: IsA<Icon> + IsA<Object> + SetValueOptional>(
        &self,
        gicon: Option<&P>
    ); fn set_property_icon_name(&self, icon_name: Option<&str>); fn get_property_icon_size(&self) -> i32; fn set_property_icon_size(&self, icon_size: i32); fn set_property_pixbuf(&self, pixbuf: Option<&Pixbuf>); fn get_property_pixbuf_animation(&self) -> Option<PixbufAnimation>; fn set_property_pixbuf_animation<P: IsA<PixbufAnimation> + IsA<Object> + SetValueOptional>(
        &self,
        pixbuf_animation: Option<&P>
    ); fn get_property_resource(&self) -> Option<String>; fn set_property_resource(&self, resource: Option<&str>); fn get_property_stock(&self) -> Option<String>; fn set_property_stock(&self, stock: Option<&str>); fn get_property_use_fallback(&self) -> bool; fn set_property_use_fallback(&self, use_fallback: bool); }

Required Methods

Implementors