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/gtk4/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.


Instance Method Detail

def as_color : Pango::AttrColor? #

def as_float : Pango::AttrFloat? #

def as_font_desc : Pango::AttrFontDesc? #

def as_font_features : Pango::AttrFontFeatures? #

def as_int : Pango::AttrInt? #

def as_language : Pango::AttrLanguage? #

def as_shape : Pango::AttrShape? #

def as_size : Pango::AttrSize? #

def as_string : Pango::AttrString? #

def copy : Pango::Attribute #

def end_index : UInt32 #

def end_index=(value : UInt32) #

def equal(attr2 : Pango::Attribute) : Bool #

def start_index : UInt32 #

def start_index=(value : UInt32) #

def to_unsafe : Pointer(Void) #