Package: gtk
Class gtk:aspect-frame
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slotsobey-child The obey-child property of type :boolean (Read / Write) Whether to force the aspect ratio to match that of the child widget of the aspect frame. Default value: true ratio The ratio property of type :float (Read / Write) The aspect ratio if the obey-child property is false. Allowed values: [0.0001, 10000.0] Default value: 1.0 xalign The xalign property of type :float (Read / Write) The x alignment of the child. Allowed values: [0.0, 1.0] Default value: 0.5 yalign The yalign property of type :float (Read / Write) The y alignment of the child. Allowed values: [0.0, 1.0] Default value: 0.5 Details The gtk:aspect-frame widget 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 nodesAccessibility | Returned bySlot Access Functions
Inherited Slot Access FunctionsSee also |
2025-05-30