Constructor

GtkAspectFramenew

Declaration [src]

GtkWidget*
gtk_aspect_frame_new (
  const gchar* label,
  gfloat xalign,
  gfloat yalign,
  gfloat ratio,
  gboolean obey_child
)

Description [src]

Create a new GtkAspectFrame.

Parameters

label

Type: const gchar*

Label text.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
xalign

Type: gfloat

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

yalign

Type: gfloat

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

ratio

Type: gfloat

The desired aspect ratio.

obey_child

Type: gboolean

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

Return value

Type: GtkWidget

The new GtkAspectFrame.

The data is owned by the called function.