AspectFrame.this

Create a new GtkAspectFrame.

  1. this(GtkAspectFrame* gtkAspectFrame, bool ownedRef)
  2. this(float xalign, float yalign, float ratio, bool obeyChild)
    class AspectFrame
    this
    (
    float xalign
    ,
    float yalign
    ,
    float ratio
    ,)

Parameters

xalign float

Horizontal alignment of the child within the parent. Ranges from 0.0 (left aligned) to 1.0 (right aligned)

yalign float

Vertical alignment of the child within the parent. Ranges from 0.0 (top aligned) to 1.0 (bottom aligned)

ratio float

The desired aspect ratio.

obeyChild bool

If %TRUE, @ratio is ignored, and the aspect ratio is taken from the requistion of the child.

Return Value

the new GtkAspectFrame.

Throws

ConstructionException GTK+ fails to create the object.

Meta