Skip to main content

Type Alias: GtkPictureProps

GtkPictureProps = WidgetProps & object

Defined in: generated/jsx.ts:7346

Props for the GtkPicture widget.

Type Declaration

NameTypeDescriptionDefined in
alternativeText?string | nullThe alternative textual description for the picture.generated/jsx.ts:7348
canShrink?booleanIf the GtkPicture can be made smaller than the natural size of its contents.generated/jsx.ts:7350
contentFit?Gtk.ContentFitHow the content should be resized to fit inside the GtkPicture.generated/jsx.ts:7352
file?Gio.File | nullThe GFile that is displayed or %NULL if none.generated/jsx.ts:7354
keepAspectRatio?booleanWhether the GtkPicture will render its contents trying to preserve the aspect ratio.generated/jsx.ts:7359
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:7367
paintable?Gdk.Paintable | nullThe GdkPaintable to be displayed by this GtkPicture.generated/jsx.ts:7361
ref?Ref<Gtk.Picture>-generated/jsx.ts:7373