enum Pango::WrapMode

Overview

Pango::WrapMode describes how to wrap the lines of a Pango::Layout to the desired width.

For @PANGO_WRAP_WORD, Pango uses break opportunities that are determined by the Unicode line breaking algorithm. For @PANGO_WRAP_CHAR, Pango allows breaking at grapheme boundaries that are determined by the Unicode text segmentation algorithm.

Defined in:

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

Enum Members

Word = 0_u32

wrap lines at word boundaries.

Char = 1_u32

wrap lines at character boundaries.

WordChar = 2_u32

wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word.

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

def word? #

def word_char? #