class Pango::GlyphString
- Pango::GlyphString
- Reference
- Object
Overview
A Pango::GlyphString
is used to store strings of glyphs with geometry
and visual attribute information.
The storage for the glyph information is owned by the structure which simplifies memory management.
Defined in:
lib/gi-crystal/src/auto/pango-1.0/glyph_string.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibPango::GlyphString, transfer : GICrystal::Transfer)
- .new(num_glyphs : Int32 | Nil = nil, space : 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. - #copy : Pango::GlyphString | Nil
- #extents(font : Pango::Font) : Pango::Rectangle
- #extents_range(start : Int32, end _end : Int32, font : Pango::Font) : Pango::Rectangle
- #free : Nil
- #glyphs : Enumerable(Pango::GlyphInfo) | Nil
- #glyphs!
- #index_to_x(text : String, length : Int32, analysis : Pango::Analysis, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil
- #index_to_x_full(text : String, length : Int32, analysis : Pango::Analysis, attrs : Pango::LogAttr | Nil, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil
- #log_clusters : Pointer(Int32) | Nil
- #log_clusters!
- #logical_widths(text : String, length : Int32, embedding_level : Int32, logical_widths : Enumerable(Int32)) : Nil
- #num_glyphs : Int32
- #num_glyphs=(value : Int32)
- #size=(new_len : Int32) : Nil
- #space : Int32
- #space=(value : Int32)
- #to_unsafe
- #width : Int32
- #x_to_index(text : String, length : Int32, analysis : Pango::Analysis, x_pos : Int32, index_ : Int32, trailing : Int32) : Nil
Constructor Detail
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 index_to_x(text : String, length : Int32, analysis : Pango::Analysis, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil
#
def index_to_x_full(text : String, length : Int32, analysis : Pango::Analysis, attrs : Pango::LogAttr | Nil, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil
#
def logical_widths(text : String, length : Int32, embedding_level : Int32, logical_widths : Enumerable(Int32)) : Nil
#