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) #

[View source]
def self.new(data : LibPango::GlyphItem, transfer : GICrystal::Transfer) #

[View source]
def self.new(y_offset : Int32 | Nil = nil, start_x_offset : Int32 | Nil = nil, end_x_offset : Int32 | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

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

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


[View source]
def apply_attrs(text : String, list : Pango::AttrList) : GLib::SList #

[View source]
def copy : Pango::GlyphItem | Nil #

[View source]
def end_x_offset : Int32 #

[View source]
def end_x_offset=(value : Int32) #

[View source]
def free : Nil #

[View source]
def glyphs : Pango::GlyphString | Nil #

[View source]
def glyphs! #

[View source]
def item : Pango::Item | Nil #

[View source]
def item! #

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

[View source]
def logical_widths(text : String, logical_widths : Enumerable(Int32)) : Nil #

[View source]
def split(text : String, split_index : Int32) : Pango::GlyphItem #

[View source]
def start_x_offset : Int32 #

[View source]
def start_x_offset=(value : Int32) #

[View source]
def to_unsafe #

[View source]
def y_offset : Int32 #

[View source]
def y_offset=(value : Int32) #

[View source]