Method

GtkEntryset_alignment

since: 2.4

Declaration [src]

void
gtk_entry_set_alignment (
  GtkEntry* entry,
  gfloat xalign
)

Description [src]

Sets the alignment for the contents of the entry. This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry.

Available since: 2.4

Parameters

xalign

Type: gfloat

The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.