It derives from <GtkWidget>.
Preserves the aspect ratio of its child.
The frame can respect the aspect ratio of the child widget, or use its own aspect ratio.
<GtkAspectFrame> uses a CSS node with name
aspectframe.
Until GTK 4.10, <GtkAspectFrame> used the
Gtk.AccessibleRole.group role.
Starting from GTK 4.12, <GtkAspectFrame> uses
the Gtk.AccessibleRole.generic role.
The child widget.
Its value is a <GtkWidget>, or #f.
Set it with (set! (aspect-frame:child self) value).
Whether the <GtkAspectFrame> should use the
aspect ratio of its child.
Its value is a boolean.
Set it with (set! (aspect-frame:obey-child self) value).
The aspect ratio to be used by the
<GtkAspectFrame>.
This property is only used if aspect-frame:obey-child is set to #f.
Its value is a real number.
Set it with (set! (aspect-frame:ratio self) value).
The horizontal alignment of the child.
Its value is a real number.
Set it with (set! (aspect-frame:xalign self) value).
The vertical alignment of the child.
Its value is a real number.
Set it with (set! (aspect-frame:yalign self) value).
Gets the child widget of self.
Passed: a <GtkAspectFrame>.
Returned: a <GtkWidget>, or #f.
the child widget of self
Returns whether the child’s size request should override the set aspect
ratio of the <GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Returned: a boolean.
whether to obey the child’s size request
Returns the desired aspect ratio of the child.
Passed: a <GtkAspectFrame>.
Returned: a real number.
the desired aspect ratio
Returns the horizontal alignment of the child within the allocation of
the <GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Returned: a real number.
the horizontal alignment
Returns the vertical alignment of the child within the allocation of the
<GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Returned: a real number.
the vertical alignment
Create a new <GtkAspectFrame>.
Passed: a real number.
Horizontal alignment of the child within the parent. Ranges from 0.0 (left aligned) to 1.0 (right aligned)
Passed: a real number.
Vertical alignment of the child within the parent. Ranges from 0.0 (top aligned) to 1.0 (bottom aligned)
Passed: a real number.
The desired aspect ratio.
Passed: a boolean.
If #t, ratio is ignored, and the aspect ratio is taken from
the requistion of the child.
Returned: a <GtkWidget>.
the new <GtkAspectFrame>.
Sets the child widget of self.
Passed: a <GtkAspectFrame>.
Passed, or left out: a <GtkWidget>, or #f.
the child widget
Sets whether the aspect ratio of the child’s size request should
override the set aspect ratio of the
<GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Passed: a boolean.
If #t, ratio is ignored, and the aspect ratio is taken from
the requisition of the child.
Sets the desired aspect ratio of the child.
Passed: a <GtkAspectFrame>.
Passed: a real number.
aspect ratio of the child
Sets the horizontal alignment of the child within the allocation of the
<GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Passed: a real number.
horizontal alignment, from 0.0 (left aligned) to 1.0 (right aligned)
Sets the vertical alignment of the child within the allocation of the
<GtkAspectFrame>.
Passed: a <GtkAspectFrame>.
Passed: a real number.
horizontal alignment, from 0.0 (top aligned) to 1.0 (bottom aligned)