Skip to main content

Type Alias: GtkImageProps

GtkImageProps = WidgetProps & object

Defined in: generated/jsx.ts:5430

Props for the GtkImage widget.

Type Declaration

NameTypeDescriptionDefined in
file?stringA path to the file to display.generated/jsx.ts:5432
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:5439
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:5445
iconSize?Gtk.IconSizeThe symbolic size to display icons at.generated/jsx.ts:5447
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:5473
paintable?Gdk.Paintable | nullThe GdkPaintable to display.generated/jsx.ts:5449
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:5457
ref?Ref<Gtk.Image>-generated/jsx.ts:5487
resource?stringA path to a resource file to display.generated/jsx.ts:5459
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:5467