Enum gtk4::ImageType [−][src]
#[non_exhaustive]
pub enum ImageType {
Empty,
IconName,
Gicon,
Paintable,
// 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; for instance, if the Image::storage_type()
returns Paintable
, then you can call Image::paintable()
.
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 named icon
the widget contains a GIcon
the widget contains a gdk::Paintable
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 ImageType
impl UnwindSafe for ImageType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.