About all my projects
Gnome::Gtk4::T-image

Gnome::Gtk4::T-image

Enumerations

GtkImageType

Describes the image data representation used by a Gnome::Gtk4::Image.

If you want to get the image from the widget, you can only get the currently-stored representation; for instance, if the .get-storage-type() returns GTK_IMAGE_PAINTABLE, then you can call .get-paintable().

For empty images, you can request any storage type (call any of the "get" functions), but they will all return undefined values.

  • GTK_IMAGE_EMPTY; there is no image displayed by the widget

  • GTK_IMAGE_ICON_NAME; the widget contains a named icon

  • GTK_IMAGE_GICON; the widget contains a Gnome::Gio::R-Icon

  • GTK_IMAGE_PAINTABLE; the widget contains a Gnome::Gdk4::R-Paintable