Gtk.Entry.prototype.set_alignment

function set_alignment(xalign:Number):void {
    // Gjs wrapper for gtk_entry_set_alignment()
}

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.

Since 2.4

xalign

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