Forum und email

GtkAspectFrame

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

オブジェクトの階層

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

説明

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.

コンストラクタ

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

-- Creates a new GtkAspectFrame

メソッド

set()
  Sets parameters for an existing GtkAspectFrame