pub trait ImageExt: IsA<Image> + Sealed + 'static {
Show 38 methods
// Provided methods
fn clear(&self) { ... }
fn animation(&self) -> Option<PixbufAnimation> { ... }
fn gicon(&self) -> (Icon, IconSize) { ... }
fn pixbuf(&self) -> Option<Pixbuf> { ... }
fn pixel_size(&self) -> i32 { ... }
fn storage_type(&self) -> ImageType { ... }
fn set_from_animation(&self, animation: &impl IsA<PixbufAnimation>) { ... }
fn set_from_file(&self, filename: Option<impl AsRef<Path>>) { ... }
fn set_from_gicon(&self, icon: &impl IsA<Icon>, size: IconSize) { ... }
fn set_from_icon_name(&self, icon_name: Option<&str>, size: IconSize) { ... }
fn set_from_pixbuf(&self, pixbuf: Option<&Pixbuf>) { ... }
fn set_from_resource(&self, resource_path: Option<&str>) { ... }
fn set_from_surface(&self, surface: Option<&Surface>) { ... }
fn set_pixel_size(&self, pixel_size: i32) { ... }
fn file(&self) -> Option<GString> { ... }
fn set_file(&self, file: Option<&str>) { ... }
fn set_gicon<P: IsA<Icon>>(&self, gicon: Option<&P>) { ... }
fn icon_name(&self) -> Option<GString> { ... }
fn set_icon_name(&self, icon_name: Option<&str>) { ... }
fn set_pixbuf(&self, pixbuf: Option<&Pixbuf>) { ... }
fn pixbuf_animation(&self) -> Option<PixbufAnimation> { ... }
fn set_pixbuf_animation<P: IsA<PixbufAnimation>>(
&self,
pixbuf_animation: Option<&P>
) { ... }
fn resource(&self) -> Option<GString> { ... }
fn set_resource(&self, resource: Option<&str>) { ... }
fn surface(&self) -> Option<Surface> { ... }
fn set_surface(&self, surface: Option<&Surface>) { ... }
fn uses_fallback(&self) -> bool { ... }
fn set_use_fallback(&self, use_fallback: bool) { ... }
fn connect_file_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_gicon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_pixbuf_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_pixbuf_animation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_pixel_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_resource_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_storage_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_surface_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_use_fallback_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}