AspectFrame


Object Hierarchy:

Gtk.AspectFrame Gtk.AspectFrame Gtk.AspectFrame Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.AspectFrame GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.AspectFrame Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.AspectFrame Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.AspectFrame Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_aspect_frame_get_type ()" ) ]
public sealed class AspectFrame : Widget, Accessible, Buildable, ConstraintTarget

`GtkAspectFrame` 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 `frame`.

Accessibility

Until GTK 4.10, `GtkAspectFrame` used the `GTK_ACCESSIBLE_ROLE_GROUP` role.

Starting from GTK 4.12, `GtkAspectFrame` uses the `GTK_ACCESSIBLE_ROLE_GENERIC` role.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget