enum Pango::Gravity

Overview

Pango::Gravity 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 Pango::Gravity.

Not every value in this enumeration makes sense for every usage of Pango::Gravity; 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:

lib/gi-crystal/src/auto/pango-1.0/pango.cr

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.


[View source]

Instance Method Detail

def auto? #

[View source]
def east? #

[View source]
def north? #

[View source]
def south? #

[View source]
def west? #

[View source]