AspectFrame


Object Hierarchy:

Object hierarchy for AspectFrame

Description:


public class AspectFrame : Frame, Implementor, Buildable

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

`GtkAspectFrame` uses a CSS node with name `aspectframe`.

Accessibility

Until GTK 4.10, `GtkAspectFrame` used the [enum@Gtk.AccessibleRole.group] role.

Starting from GTK 4.12, `GtkAspectFrame` uses the [enum@Gtk.AccessibleRole.generic] role.


Namespace: Gtk
Package: gtk+-2.0

Content:

Properties:

Creation methods:

Methods:

Fields:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from class Gtk.Object
All known members inherited from interface Atk.Implementor