Package: gtk

Function gtk-widget-direction

Lambda List

gtk-widget-direction (widget)

Syntax

(gtk-widget-direction widget) => direction
(setf (gtk-widget-direction widget) direction)

Arguments

widget -- a gtk-widget object
direction -- a value of the gtk-text-direction enumeration

Details

Accessor of the text direction of the widget.

The gtk-widget-direction function gets the reading direction for a widget. The (setf gtk-widget-direction) function sets the reading direction.

This direction controls the primary direction for widgets containing text, and also the direction in which the children of a container are packed. The ability to set the direction is present in order so that correct localization into languages with right-to-left reading directions can be done. Generally, applications will let the default reading direction present, except for containers where the containers are arranged in an order that is explicitely visual rather than logical, such as buttons for text justification.

If the direction is set to the :none value, then the value set by the gtk-widget-default-direction function will be used.
 

See also

2021-9-19