Enum Class Direction

java.lang.Object
java.lang.Enum<Direction>
org.gnome.pango.Direction
All Implemented Interfaces:
Enumeration, Serializable, Comparable<Direction>, Constable

@Generated("io.github.jwharm.JavaGI") public enum Direction extends Enum<Direction> implements Enumeration
PangoDirection represents a direction in the Unicode bidirectional algorithm.

Not every value in this enumeration makes sense for every usage of PangoDirection; for example, the return value of Pango.unicharDirection(int) and Pango.findBaseDir(java.lang.String, int) cannot be PANGO_DIRECTION_WEAK_LTR or PANGO_DIRECTION_WEAK_RTL, since every character is either neutral or has a strong direction; on the other hand PANGO_DIRECTION_NEUTRAL doesn't make sense to pass to Pango.itemizeWithBaseDir(org.gnome.pango.Context, org.gnome.pango.Direction, java.lang.String, int, int, org.gnome.pango.AttrList, org.gnome.pango.AttrIterator).

The PANGO_DIRECTION_TTB_LTR, PANGO_DIRECTION_TTB_RTL values come from an earlier interpretation of this enumeration as the writing direction of a block of text and are no longer used. See PangoGravity for how vertical text is handled in Pango.

If you are interested in text direction, you should really use fribidi directly. PangoDirection is only retained because it is used in some public apis.