Gtk.Widget.prototype.get_direction

function get_direction():Gtk.TextDirection {
    // Gjs wrapper for gtk_widget_get_direction()
}

Gets the reading direction for a particular widget. See Gtk.set_direction.

Returns

the reading direction for the widget.