class Pango::Attribute

Overview

The PangoAttribute 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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(klass : Pango::AttrClass? = nil, start_index : UInt32? = nil, end_index : UInt32? = nil) #

Class Method Detail

def self.g_type : UInt64 #

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


Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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 destroy : Nil #

def end_index : UInt32 #

def end_index=(value : UInt32) #

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

def init(klass : Pango::AttrClass) : Nil #

def klass : Pango::AttrClass? #

def klass! #

def klass=(value : Pango::AttrClass?) #

def start_index : UInt32 #

def start_index=(value : UInt32) #

def to_unsafe #