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.


[View source]

Instance Method Detail

def absolute_line_height? #

[View source]
def absolute_size? #

[View source]
def allow_breaks? #

[View source]
def background? #

[View source]
def background_alpha? #

[View source]
def baseline_shift? #

[View source]
def fallback? #

[View source]
def family? #

[View source]
def font_desc? #

[View source]
def font_features? #

[View source]
def font_scale? #

[View source]
def foreground? #

[View source]
def foreground_alpha? #

[View source]
def gravity? #

[View source]
def gravity_hint? #

[View source]
def insert_hyphens? #

[View source]
def invalid? #

[View source]
def language? #

[View source]
def letter_spacing? #

[View source]
def line_height? #

[View source]
def overline? #

[View source]
def overline_color? #

[View source]
def rise? #

[View source]
def scale? #

[View source]
def sentence? #

[View source]
def shape? #

[View source]
def show? #

[View source]
def size? #

[View source]
def stretch? #

[View source]
def strikethrough? #

[View source]
def strikethrough_color? #

[View source]
def style? #

[View source]
def text_transform? #

[View source]
def underline? #

[View source]
def underline_color? #

[View source]
def variant? #

[View source]
def weight? #

[View source]
def word? #

[View source]