Package: gtk

GEnum gtk:image-type

Declaration

(gobject:define-genum "GtkImageType" image-type
  (:export t
   :type-initializer "gtk_image_type_get_type")
  (:empty 0)
  (:pixbuf 1)
  (:stock 2)
  (:icon-set 3)
  (:animation 4)
  (:icon-name 5)
  (:gicon 6)
  (:surface 7))  

Values

:empty
There is no image displayed by the widget.
:pixbuf
The widget contains a gdk-pixbuf:pixbuf object.
:stock
The widget contains a stock icon name.
:icon-set
The widget contains a gtk:icon-set structure.
:animation
The widget contains a gdk-pixbuf:pixbuf-animation object.
:icon-name
The widget contains a named icon.
:gicon
The widget contains a g:icon object.
:surface
The widget contains a cairo:surface-t instance.

Details

Describes the image data representation used by a gtk:image widget. If you want to get the image from the widget, you can only get the currently stored representation. e.g. if the gtk:image-storage-type function returns the :pixbuf value, then you can call the gtk:image-pixbuf function but not the gtk:image-stock function. For empty images, you can request any storage type, but they will all return nil values.
 

See also

#2024-3-22