Gravity

PangoGravity represents the orientation of glyphs in a segment of text.

This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity struct@Pango.Matrix, and then glyph orientation is controlled using PangoGravity.

Not every value in this enumeration makes sense for every usage of PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to method@Pango.Context.set_base_gravity and can only be returned by method@Pango.Context.get_base_gravity.

See also: enum@Pango.GravityHint

Since

1.16

Entries

Link copied to clipboard

Glyphs stand upright (default)

Link copied to clipboard

Glyphs are rotated 90 degrees counter-clockwise.

Link copied to clipboard

Glyphs are upside-down.

Link copied to clipboard

Glyphs are rotated 90 degrees clockwise.

Link copied to clipboard

Gravity is resolved from the context matrix

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Gravity

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.