enum Pango::Alignment

Overview

PangoAlignment describes how to align the lines of a PangoLayout within the available space.

If the PangoLayout is set to justify using Pango::Layout#justify=, this only affects partial lines.

See Pango::Layout#auto_dir= for how text direction affects the interpretation of PangoAlignment values.

Defined in:

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

Enum Members

Left = 0_u32

Put all available space on the right

Center = 1_u32

Center the line within the available space

Right = 2_u32

Put all available space on the left

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 center? #

def left? #

def right? #