enum Pango::AttrType

Overview

The Pango::AttrType distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using AttrType::register. The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.

Defined in:

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

Enum Members

Invalid = 0_u32

does not happen

Language = 1_u32

language (Pango::AttrLanguage)

Family = 2_u32

font family name list (Pango::AttrString)

Style = 3_u32

font slant style (Pango::AttrInt)

Weight = 4_u32

font weight (Pango::AttrInt)

Variant = 5_u32

font variant (normal or small caps) (Pango::AttrInt)

Stretch = 6_u32

font stretch (Pango::AttrInt)

Size = 7_u32

font size in points scaled by %PANGO_SCALE (Pango::AttrInt)

FontDesc = 8_u32

font description (Pango::AttrFontDesc)

Foreground = 9_u32

foreground color (Pango::AttrColor)

Background = 10_u32

background color (Pango::AttrColor)

Underline = 11_u32

whether the text has an underline (Pango::AttrInt)

Strikethrough = 12_u32

whether the text is struck-through (Pango::AttrInt)

Rise = 13_u32

baseline displacement (Pango::AttrInt)

Shape = 14_u32

shape (Pango::AttrShape)

Scale = 15_u32

font size scale factor (Pango::AttrFloat)

Fallback = 16_u32

whether fallback is enabled (Pango::AttrInt)

LetterSpacing = 17_u32

letter spacing (#Pango::AttrInt)

UnderlineColor = 18_u32

underline color (Pango::AttrColor)

StrikethroughColor = 19_u32

strikethrough color (Pango::AttrColor)

AbsoluteSize = 20_u32

font size in pixels scaled by %PANGO_SCALE (Pango::AttrInt)

Gravity = 21_u32

base text gravity (Pango::AttrInt)

GravityHint = 22_u32

gravity hint (Pango::AttrInt)

FontFeatures = 23_u32

OpenType font features (Pango::AttrFontFeatures). Since 1.38

ForegroundAlpha = 24_u32

foreground alpha (Pango::AttrInt). Since 1.38

BackgroundAlpha = 25_u32

background alpha (Pango::AttrInt). Since 1.38

AllowBreaks = 26_u32

whether breaks are allowed (Pango::AttrInt). Since 1.44

Show = 27_u32

how to render invisible characters (Pango::AttrInt). Since 1.44

InsertHyphens = 28_u32

whether to insert hyphens at intra-word line breaks (Pango::AttrInt). Since 1.44

Overline = 29_u32

whether the text has an overline (Pango::AttrInt). Since 1.46

OverlineColor = 30_u32

overline color (Pango::AttrColor). Since 1.46

LineHeight = 31_u32

line height factor (Pango::AttrFloat). Since: 1.50

AbsoluteLineHeight = 32_u32

line height (Pango::AttrInt). Since: 1.50

TextTransform = 33_u32
Word = 34_u32

override segmentation to classify the range of the attribute as a single word (Pango::AttrInt). Since 1.50

Sentence = 35_u32

override segmentation to classify the range of the attribute as a single sentence (Pango::AttrInt). Since 1.50

BaselineShift = 36_u32

baseline displacement (Pango::AttrInt). Since 1.50

FontScale = 37_u32

font-relative size change (Pango::AttrInt). Since 1.50

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

def absolute_size? #

def allow_breaks? #

def background? #

def background_alpha? #

def baseline_shift? #

def fallback? #

def family? #

def font_desc? #

def font_features? #

def font_scale? #

def foreground? #

def foreground_alpha? #

def gravity? #

def gravity_hint? #

def insert_hyphens? #

def invalid? #

def language? #

def letter_spacing? #

def line_height? #

def overline? #

def overline_color? #

def rise? #

def scale? #

def sentence? #

def shape? #

def show? #

def size? #

def stretch? #

def strikethrough? #

def strikethrough_color? #

def style? #

def text_transform? #

def underline? #

def underline_color? #

def variant? #

def weight? #

def word? #