AspectFrame.this

Create a new GtkAspectFrame.

  1. this(GtkAspectFrame* gtkAspectFrame)
  2. this(string label, float xalign, float yalign, float ratio, int obeyChild)
    class AspectFrame
    this
    (
    string label
    ,
    float xalign
    ,
    float yalign
    ,
    float ratio
    ,)

Parameters

label string

Label text.

xalign float

Horizontal alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)

yalign float

Vertical alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned)

ratio float

The desired aspect ratio.

obeyChild int

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

Throws

ConstructionException GTK+ fails to create the object.

Meta