GtkAspectFrame

A frame that constrains its child to a particular aspect ratio.

Object Hierarchy

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkBin
                            `-- GtkFrame
                                   `-- GtkAspectFrame

Description

GtkAspectFrame is useful whenever you want t allow the user to change the size of a widget but still maintain its aspect ratio. As an example, you might be displaying a small preview of a larger image.

Constructors

GtkAspectFrame ([string label = null [, double xalign = 0.5 [, double yalign = 0.5 [, double ratio = 1.0 [, bool obey_child = true]]]]]);

-- Creates a new GtkAspectFrame

Methods

set()
  Sets parameters for an existing GtkAspectFrame