Struct gtk::Image
[−]
pub struct Image(_, _);
Methods
impl Image
[src]
fn new() -> Image
fn new_from_animation<P: IsA<PixbufAnimation>>(animation: &P) -> Image
fn new_from_file<P: AsRef<Path>>(filename: P) -> Image
fn new_from_gicon<P: IsA<Icon>>(icon: &P, size: i32) -> Image
fn new_from_icon_name(icon_name: &str, size: i32) -> Image
fn new_from_icon_set(icon_set: &IconSet, size: i32) -> Image
fn new_from_pixbuf<'a, P: Into<Option<&'a Pixbuf>>>(pixbuf: P) -> Image
fn new_from_resource(resource_path: &str) -> Image
fn new_from_stock(stock_id: &str, size: i32) -> Image
fn new_from_surface<'a, P: Into<Option<&'a Surface>>>(surface: P) -> Image
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 given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
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 !=
.