Type Alias: GtkImageProps
GtkImageProps =
WidgetProps&object
Defined in: generated/jsx.ts:5430
Props for the GtkImage widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
file? | string | A path to the file to display. | generated/jsx.ts:5432 |
gicon? | Gio.Icon | null | The 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 | null | The 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.IconSize | The symbolic size to display icons at. | generated/jsx.ts:5447 |
onNotify? | (self, propName) => void | null | Called 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 | null | The GdkPaintable to display. | generated/jsx.ts:5449 |
pixelSize? | number | The 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? | string | A path to a resource file to display. | generated/jsx.ts:5459 |
useFallback? | boolean | Whether 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 |