Skip to main content

Type Alias: GtkImageProps

GtkImageProps = WidgetProps & object

Defined in: generated/jsx.ts:4388

Props for the GtkImage widget.

Type Declaration

NameTypeDescriptionDefined in
file?stringA path to the file to display.generated/jsx.ts:4390
gicon?Gio.Icon | nullThe GIcon displayed in the GtkImage. For themed icons, If the icon theme is changed, the image will be updated automatically.generated/jsx.ts:4397
iconName?string | nullThe name of the icon in the icon theme. If the icon theme is changed, the image will be updated automatically.generated/jsx.ts:4403
iconSize?Gtk.IconSizeThe symbolic size to display icons at.generated/jsx.ts:4405
paintable?Gdk.Paintable | nullThe GdkPaintable to display.generated/jsx.ts:4407
pixelSize?numberThe size in pixels to display icons at. If set to a value != -1, this property overrides the Image.icon-size property for images of type GTK_IMAGE_ICON_NAME.generated/jsx.ts:4415
ref?Ref<Gtk.Image>-generated/jsx.ts:4426
resource?stringA path to a resource file to display.generated/jsx.ts:4417
useFallback?booleanWhether the icon displayed in the GtkImage will use standard icon names fallback. The value of this property is only relevant for images of type %GTK_IMAGE_ICON_NAME and %GTK_IMAGE_GICON.generated/jsx.ts:4425