Method

GtkButtonset_alignment

Declaration [src]

void
gtk_button_set_alignment (
  GtkButton* button,
  gfloat xalign,
  gfloat yalign
)

Description [src]

Sets the alignment of the child. This property has no effect unless the child is a GtkMisc or a GtkAlignment.

Available since:2.4
Deprecated since:3.14

Access the child widget directly if you need to control its alignment.

Parameters

xalign

Type: gfloat

The horizontal position of the child, 0.0 is left aligned, 1.0 is right aligned.

yalign

Type: gfloat

The vertical position of the child, 0.0 is top aligned, 1.0 is bottom aligned.