enum Pango::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 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 Pango::Context#base_gravity= and can only be returned by Pango::Context#base_gravity.

See also: Pango#GravityHint

Defined in:


Enum Members

South = 0_u32

Glyphs stand upright (default)

East = 1_u32

Glyphs are rotated 90 degrees counter-clockwise.

North = 2_u32

Glyphs are upside-down.

West = 3_u32

Glyphs are rotated 90 degrees clockwise.

Auto = 4_u32

Gravity is resolved from the context matrix

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.

Instance Method Detail

def auto? #

def east? #

def north? #

def south? #

def west? #