pub trait ImageExt: 'static {
Show 38 methods
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(&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 get_property_file(&self) -> Option<GString>;
fn set_property_file(&self, file: Option<&str>);
fn set_property_gicon(&self, gicon: Option<&Icon>);
fn get_property_icon_name(&self) -> Option<GString>;
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(
&self,
pixbuf_animation: Option<&PixbufAnimation>
);
fn get_property_resource(&self) -> Option<GString>;
fn set_property_resource(&self, resource: Option<&str>);
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
source
fn get_animation(&self) -> Option<PixbufAnimation>
source
fn get_pixbuf(&self) -> Option<Pixbuf>
source
fn get_pixel_size(&self) -> i32
source
fn get_storage_type(&self) -> ImageType
source
fn set_from_animation<P: IsA<PixbufAnimation>>(&self, animation: &P)
source
fn set_from_file<P: AsRef<Path>>(&self, filename: P)
source
fn set_from_icon_name(&self, icon_name: Option<&str>, size: IconSize)
source
fn set_from_pixbuf(&self, pixbuf: Option<&Pixbuf>)
source
fn set_from_resource(&self, resource_path: Option<&str>)
source
fn set_from_surface(&self, surface: Option<&Surface>)
source
fn set_pixel_size(&self, pixel_size: i32)
source
fn get_property_file(&self) -> Option<GString>
source
fn set_property_file(&self, file: Option<&str>)
source
fn set_property_gicon(&self, gicon: Option<&Icon>)
source
fn get_property_icon_name(&self) -> Option<GString>
source
fn set_property_icon_name(&self, icon_name: Option<&str>)
source
fn get_property_icon_size(&self) -> i32
source
fn set_property_icon_size(&self, icon_size: i32)
source
fn set_property_pixbuf(&self, pixbuf: Option<&Pixbuf>)
source
fn get_property_pixbuf_animation(&self) -> Option<PixbufAnimation>
sourcefn set_property_pixbuf_animation(
fn set_property_pixbuf_animation(
&self,
pixbuf_animation: Option<&PixbufAnimation>
)
source
fn get_property_resource(&self) -> Option<GString>
source
fn set_property_resource(&self, resource: Option<&str>)
source
fn get_property_use_fallback(&self) -> bool
source
fn set_property_use_fallback(&self, use_fallback: bool)
sourcefn connect_property_file_notify<F: Fn(&Self) + 'static>(
fn connect_property_file_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_icon_size_notify<F: Fn(&Self) + 'static>(
fn connect_property_icon_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_pixbuf_animation_notify<F: Fn(&Self) + 'static>(
fn connect_property_pixbuf_animation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_pixel_size_notify<F: Fn(&Self) + 'static>(
fn connect_property_pixel_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_resource_notify<F: Fn(&Self) + 'static>(
fn connect_property_resource_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(
fn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_use_fallback_notify<F: Fn(&Self) + 'static>(