pub fn locale_direction() -> TextDirection
Get the direction of the current locale. This is the expected reading direction for text and UI.
This function is only needed rare cases when the locale is changed after GTK+ has already been initialized. In this case, you can use it to update the default text direction as follows:
⚠️ The following code is in C ⚠️
setlocale (LC_ALL, new_locale); direction = gtk_get_locale_direction (); gtk_widget_set_default_direction (direction);
TextDirection of the current locale