The
gtk:aspect-frame widget is useful when you want pack a widget
so that it can resize but always retains the same aspect ratio.
For instance, one might be drawing a small preview of a larger image. The
gtk:aspect-frame class derives from the
gtk:frame class,
so it can draw a label and a frame around the child. The frame will be
"shrink-wrapped" to the size of the child.
CSS nodes
The
gtk:aspect-frame implementation uses a CSS node with name
frame.