Trait gtk::prelude::ImageExt[][src]

pub trait ImageExt: 'static {
    fn clear(&self);
fn get_animation(&self) -> Option<PixbufAnimation>;
fn get_gicon(&self) -> (Icon, IconSize);
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: IconSize);
fn set_from_icon_name<'a, P: Into<Option<&'a str>>>(
        &self,
        icon_name: P,
        size: IconSize
    );
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_surface<'a, P: Into<Option<&'a Surface>>>(&self, surface: P);
fn set_pixel_size(&self, pixel_size: i32);
fn get_property_file(&self) -> Option<GString>;
fn set_property_file<'a, P: Into<Option<&'a str>>>(&self, file: P);
fn set_property_gicon<P: IsA<Icon> + SetValueOptional>(
        &self,
        gicon: Option<&P>
    );
fn get_property_icon_name(&self) -> Option<GString>;
fn set_property_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_name: P);
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> + SetValueOptional>(
        &self,
        pixbuf_animation: Option<&P>
    );
fn get_property_resource(&self) -> Option<GString>;
fn set_property_resource<'a, P: Into<Option<&'a str>>>(&self, resource: P);
fn get_property_use_fallback(&self) -> bool;
fn set_property_use_fallback(&self, use_fallback: bool);
fn connect_property_file_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_icon_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixbuf_animation_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixel_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_resource_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_use_fallback_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn clear(&self)[src]

fn get_animation(&self) -> Option<PixbufAnimation>[src]

fn get_gicon(&self) -> (Icon, IconSize)[src]

fn get_pixbuf(&self) -> Option<Pixbuf>[src]

fn get_pixel_size(&self) -> i32[src]

fn get_storage_type(&self) -> ImageType[src]

fn set_from_animation<P: IsA<PixbufAnimation>>(&self, animation: &P)[src]

fn set_from_file<P: AsRef<Path>>(&self, filename: P)[src]

fn set_from_gicon<P: IsA<Icon>>(&self, icon: &P, size: IconSize)[src]

fn set_from_icon_name<'a, P: Into<Option<&'a str>>>(
    &self,
    icon_name: P,
    size: IconSize
)
[src]

fn set_from_pixbuf<'a, P: Into<Option<&'a Pixbuf>>>(&self, pixbuf: P)[src]

fn set_from_resource<'a, P: Into<Option<&'a str>>>(&self, resource_path: P)[src]

fn set_from_surface<'a, P: Into<Option<&'a Surface>>>(&self, surface: P)[src]

fn set_pixel_size(&self, pixel_size: i32)[src]

fn get_property_file(&self) -> Option<GString>[src]

fn set_property_file<'a, P: Into<Option<&'a str>>>(&self, file: P)[src]

fn set_property_gicon<P: IsA<Icon> + SetValueOptional>(&self, gicon: Option<&P>)[src]

fn get_property_icon_name(&self) -> Option<GString>[src]

fn set_property_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_name: P)[src]

fn get_property_icon_size(&self) -> i32[src]

fn set_property_icon_size(&self, icon_size: i32)[src]

fn set_property_pixbuf(&self, pixbuf: Option<&Pixbuf>)[src]

fn get_property_pixbuf_animation(&self) -> Option<PixbufAnimation>[src]

fn set_property_pixbuf_animation<P: IsA<PixbufAnimation> + SetValueOptional>(
    &self,
    pixbuf_animation: Option<&P>
)
[src]

fn get_property_resource(&self) -> Option<GString>[src]

fn set_property_resource<'a, P: Into<Option<&'a str>>>(&self, resource: P)[src]

fn get_property_use_fallback(&self) -> bool[src]

fn set_property_use_fallback(&self, use_fallback: bool)[src]

fn connect_property_file_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_icon_size_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_pixbuf_animation_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_pixel_size_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_resource_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_use_fallback_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<Image>> ImageExt for O[src]

Loading content...