class Pango::GlyphItem
- Pango::GlyphItem
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibPango::GlyphItem, transfer : GICrystal::Transfer)
- .new(y_offset : Int32 | Nil = nil, start_x_offset : Int32 | Nil = nil, end_x_offset : Int32 | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #apply_attrs(text : String, list : Pango::AttrList) : GLib::SList
- #copy : Pango::GlyphItem | Nil
- #end_x_offset : Int32
- #end_x_offset=(value : Int32)
- #free : Nil
- #glyphs : Pango::GlyphString | Nil
- #glyphs!
- #item : Pango::Item | Nil
- #item!
- #letter_space(text : String, log_attrs : Enumerable(Pango::LogAttr), letter_spacing : Int32) : Nil
- #logical_widths(text : String, logical_widths : Enumerable(Int32)) : Nil
- #split(text : String, split_index : Int32) : Pango::GlyphItem
- #start_x_offset : Int32
- #start_x_offset=(value : Int32)
- #to_unsafe
- #y_offset : Int32
- #y_offset=(value : Int32)
Constructor Detail
def self.new(y_offset : Int32 | Nil = nil, start_x_offset : Int32 | Nil = nil, end_x_offset : Int32 | Nil = nil)
#
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def letter_space(text : String, log_attrs : Enumerable(Pango::LogAttr), letter_spacing : Int32) : Nil
#