Method
GtkAspectFrameset
Declaration [src]
void
gtk_aspect_frame_set (
GtkAspectFrame* aspect_frame,
gfloat xalign,
gfloat yalign,
gfloat ratio,
gboolean obey_child
)
Parameters
xalign-
Type:
gfloatHorizontal alignment of the child within the allocation of the
GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned). yalign-
Type:
gfloatVertical alignment of the child within the allocation of the
GtkAspectFrame. This ranges from 0.0 (top aligned) to 1.0 (bottom aligned). ratio-
Type:
gfloatThe desired aspect ratio.
obey_child-
Type:
gbooleanIf
TRUE,ratiois ignored, and the aspect ratio is taken from the requistion of the child.