enum
Gtk::ImageType
Overview
Describes the image data representation used by a Gtk::Image.
If you want to get the image from the widget, you can only get the currently-stored representation; for instance, if the gtk_image_get_storage_type() returns %GTK_IMAGE_PAINTABLE, then you can call gtk_image_get_paintable().
For empty images, you can request any storage type (call any of the "get"
functions), but they will all return nil values.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/gtk.crEnum Members
-
Empty =
0_u32 -
there is no image displayed by the widget
-
IconName =
1_u32 -
the widget contains a named icon
-
Gicon =
2_u32 -
the widget contains a
GIcon -
Paintable =
3_u32 -
the widget contains a
Gdk::Paintable
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#empty?
Returns
trueif this enum value equalsEmpty -
#gicon?
Returns
trueif this enum value equalsGicon -
#icon_name?
Returns
trueif this enum value equalsIconName -
#paintable?
Returns
trueif this enum value equalsPaintable
Class methods inherited from struct Enum
g_type : UInt64
g_type
Class Method Detail
Returns the type id (GType) registered in GLib type system.