Skip to main content

Type Alias: GtkPictureProps

GtkPictureProps = WidgetProps & object

Defined in: generated/jsx.ts:5934

Props for the GtkPicture widget.

Type Declaration

NameTypeDescriptionDefined in
alternativeText?string | nullThe alternative textual description for the picture.generated/jsx.ts:5936
canShrink?booleanIf the GtkPicture can be made smaller than the natural size of its contents.generated/jsx.ts:5938
contentFit?Gtk.ContentFitHow the content should be resized to fit inside the GtkPicture.generated/jsx.ts:5940
file?Gio.File | nullThe GFile that is displayed or %NULL if none.generated/jsx.ts:5942
keepAspectRatio?booleanWhether the GtkPicture will render its contents trying to preserve the aspect ratio.generated/jsx.ts:5947
paintable?Gdk.Paintable | nullThe GdkPaintable to be displayed by this GtkPicture.generated/jsx.ts:5949
ref?Ref<Gtk.Picture>-generated/jsx.ts:5950