Skip to main content

Variable: AspectFrame

const AspectFrame: "AspectFrame"

Defined in: react/src/generated/jsx.ts:11041

Preserves the aspect ratio of its child.

The frame can respect the aspect ratio of the child widget, or use its own aspect ratio.

CSS nodes

GtkAspectFrame uses a CSS node with name aspectframe.

Accessibility

Until GTK 4.10, GtkAspectFrame used the [enum@Gtk.AccessibleRole.group] role.

Starting from GTK 4.12, GtkAspectFrame uses the [enum@Gtk.AccessibleRole.generic] role.