Constructor

GtkAlignmentnew

deprecated: 3.14 

Declaration [src]

GtkWidget*
gtk_alignment_new (
  gfloat xalign,
  gfloat yalign,
  gfloat xscale,
  gfloat yscale
)

Description [src]

Creates a new GtkAlignment.

Deprecated since: 3.14

Use GtkWidget alignment and margin properties.

Parameters

xalign

Type: gfloat

The horizontal alignment of the child widget, from 0 (left) to 1 (right).

yalign

Type: gfloat

The vertical alignment of the child widget, from 0 (top) to 1 (bottom).

xscale

Type: gfloat

The amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GtkAlignment.

yscale

Type: gfloat

The amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.

Return value

Type: GtkWidget

The new GtkAlignment.

The data is owned by the called function.