GtkAspectFrame

gtk.aspect_frame.AspectFrame 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

gtk.aspect_frame.AspectFrame uses a CSS node with name frame.

Accessibility

Until GTK 4.10, gtk.aspect_frame.AspectFrame used the gtk.types.AccessibleRole.Group role.

Starting from GTK 4.12, gtk.aspect_frame.AspectFrame uses the gtk.types.AccessibleRole.Generic role.

struct GtkAspectFrame