Enum gtk::ImageType [−][src]
#[non_exhaustive]
pub enum ImageType {
Empty,
Pixbuf,
Stock,
IconSet,
Animation,
IconName,
Gicon,
Surface,
// some variants omitted
}Expand description
Describes the image data representation used by a Image. If you
want to get the image from the widget, you can only get the
currently-stored representation. e.g. if the
ImageExt::storage_type() returns Pixbuf, then you can
call ImageExt::pixbuf() but not gtk_image_get_stock(). For empty
images, you can request any storage type (call any of the “get”
functions), but they will all return None values.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
there is no image displayed by the widget
the widget contains a gdk_pixbuf::Pixbuf
the widget contains a [stock item name][gtkstock]
the widget contains a GtkIconSet
the widget contains a gdk_pixbuf::PixbufAnimation
the widget contains a named icon. This image type was added in GTK+ 2.6
the widget contains a gio::Icon.
This image type was added in GTK+ 2.14
the widget contains a cairo::Surface.
This image type was added in GTK+ 3.10
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>Value type checker.
Get the contained value from a Value. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for ImageTypeimpl UnwindSafe for ImageTypeBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.