class Pango::Attribute

Overview

The Pango::Attribute structure represents the common portions of all attributes.

Particular types of attributes include this structure as their initial portion. The common portion of the attribute holds the range to which the value in the type-specific part of the attribute applies and should be initialized using Pango::Attribute#init. By default, an attribute will have an all-inclusive range of [0,%G_MAXUINT].

Defined in:

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

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def as_color : Pango::AttrColor | Nil #

[View source]
def as_float : Pango::AttrFloat | Nil #

[View source]
def as_font_desc : Pango::AttrFontDesc | Nil #

[View source]
def as_font_features : Pango::AttrFontFeatures | Nil #

[View source]
def as_int : Pango::AttrInt | Nil #

[View source]
def as_language : Pango::AttrLanguage | Nil #

[View source]
def as_shape : Pango::AttrShape | Nil #

[View source]
def as_size : Pango::AttrSize | Nil #

[View source]
def as_string : Pango::AttrString | Nil #

[View source]
def copy : Pango::Attribute #

[View source]
def end_index : UInt32 #

[View source]
def end_index=(value : UInt32) #

[View source]
def equal(attr2 : Pango::Attribute) : Bool #

[View source]
def start_index : UInt32 #

[View source]
def start_index=(value : UInt32) #

[View source]
def to_unsafe : Pointer(Void) #

[View source]