gtk.aspect_frame
Module for [AspectFrame] class
Types 3
classAspectFrame : gtk.frame.Frame
The #GtkAspectFrame 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. #GtkAspectFrame derives from #GtkFrame, 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
GtkAspectFrame uses a CSS node with name frame.
Methods
AspectFrameGidBuilder builder() static nothrowGet builder for [gtk.aspect_frame.AspectFrame] Returns: New builder objectvoid set(float xalign, float yalign, float ratio, bool obeyChild) nothrowSet parameters for an existing #GtkAspectFrame.Fluent builder implementation template for gtk.aspect_frame.AspectFrame
Fluent builder for gtk.aspect_frame.AspectFrame
Methods