enum Pango::Underline

Overview

The Pango::Underline enumeration is used to specify whether text should be underlined, and if so, the type of underlining.

Defined in:

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

Enum Members

None = 0_u32

no underline should be drawn

Single = 1_u32

a single underline should be drawn

Double = 2_u32

a double underline should be drawn

Low = 3_u32

a single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators. %PANGO_UNDERLINE_SINGLE should be used for extended portions of text.

Error = 4_u32

an underline indicating an error should be drawn below. The exact style of rendering is up to the Pango::Renderer in use, but typical styles include wavy or dotted lines. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.

SingleLine = 5_u32

Like @PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

DoubleLine = 6_u32

Like @PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

ErrorLine = 7_u32

Like @PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

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

def double_line? #

def error? #

def error_line? #

def low? #

def none? #

def single? #

def single_line? #