Struct gtk::Image
[−]
pub struct Image(_, _);
Methods
impl Image
[src]
fn new() -> Image
fn new_from_animation<T: IsA<PixbufAnimation>>(animation: &T) -> Image
fn new_from_file<T: AsRef<Path>>(filename: T) -> Image
fn new_from_icon_name(icon_name: &str, size: i32) -> Image
fn new_from_pixbuf(pixbuf: Option<&Pixbuf>) -> Image
fn new_from_resource(resource_path: &str) -> Image
fn new_from_stock(stock_id: &str, size: i32) -> Image
fn clear(&self)
fn get_animation(&self) -> Option<PixbufAnimation>
fn get_pixbuf(&self) -> Option<Pixbuf>
fn get_pixel_size(&self) -> i32
fn get_storage_type(&self) -> ImageType
fn set_from_animation<T: IsA<PixbufAnimation>>(&self, animation: &T)
fn set_from_file<T: AsRef<Path>>(&self, filename: T)
fn set_from_icon_name(&self, icon_name: &str, size: i32)
fn set_from_pixbuf(&self, pixbuf: Option<&Pixbuf>)
fn set_from_resource<'a, T: Into<Option<&'a str>>>(&self, resource_path: T)
fn set_from_stock(&self, stock_id: &str, size: i32)
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_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>)
pixbuf_animation: Option<&PixbufAnimation>)
fn set_property_stock(&self, stock: Option<&str>)
fn get_property_use_fallback(&self) -> bool
fn set_property_use_fallback(&self, use_fallback: bool)
Trait Implementations
impl Clone for Image
fn clone(&self) -> Image
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Image
impl Hash for Image
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for Image
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Image
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.