11.29Class GtkAspectFrame

A frame that constrains its child to a particular aspect ratio

Class GtkAspectFrame( [label],[xalign],[yalign],[ratio],[obey_child] )
label Label text.
xalign Horizontal alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)
yalign Vertical alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)
ratio The desired aspect ratio.
obey_child If true, ratio is ignored, and the aspect ratio is taken from the requistion of the child.

The GtkAspectFrame is useful when you want pack a widget so that it can resize but always retains the same aspect ratio. For instance, one might be drawing a small preview of a larger image. GtkAspectFrame derives from GtkFrame, so it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child.

Methods
setSet parameters for an existing GtkAspectFrame.

Methods

set

Set parameters for an existing GtkAspectFrame.

GtkAspectFrame.set( xalign, yalign, ratio, obey_child )
xalign Horizontal alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)
yalign Vertical alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)
ratio The desired aspect ratio.
obey_child If true, ratio is ignored, and the aspect ratio is taken from the requistion of the child.
Made with http://www.falconpl.org