class Pango::GlyphItem

Overview

A Pango::GlyphItem is a pair of a Pango::Item and the glyphs resulting from shaping the items text.

As an example of the usage of Pango::GlyphItem, the results of shaping text with Pango::Layout is a list of Pango::LayoutLine, each of which contains a list of Pango::GlyphItem.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(data : LibPango::GlyphItem, transfer : GICrystal::Transfer) #

def self.new(y_offset : Int32? = nil, start_x_offset : Int32? = nil, end_x_offset : Int32? = 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 apply_attrs(text : String, list : Pango::AttrList) : GLib::SList #

def copy : Pango::GlyphItem? #

def end_x_offset : Int32 #

def end_x_offset=(value : Int32) #

def free : Nil #

def glyphs : Pango::GlyphString? #

def glyphs! #

def item : Pango::Item? #

def item! #

def letter_space(text : String, log_attrs : Enumerable(Pango::LogAttr), letter_spacing : Int32) : Nil #

def logical_widths(text : String, logical_widths : Enumerable(Int32)) : Nil #

def split(text : String, split_index : Int32) : Pango::GlyphItem #

def start_x_offset : Int32 #

def start_x_offset=(value : Int32) #

def to_unsafe #

def y_offset : Int32 #

def y_offset=(value : Int32) #