class Pango::GlyphString

Overview

A PangoGlyphString 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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(num_glyphs : Int32? = nil, glyphs : Enumerable(Pango::GlyphInfo)? = nil, log_clusters : Pointer(Int32)? = nil, space : 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 copy : Pango::GlyphString? #

def extents(font : Pango::Font) : Pango::Rectangle #

def extents_range(start : Int32, end _end : Int32, font : Pango::Font) : Pango::Rectangle #

def free : Nil #

def glyphs : Enumerable(Pango::GlyphInfo)? #

def glyphs! #

def glyphs=(value : Enumerable(Pango::GlyphInfo)?) #

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?, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil #

def log_clusters : Pointer(Int32)? #

def log_clusters! #

def log_clusters=(value : Pointer(Int32)?) #

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

def num_glyphs : Int32 #

def num_glyphs=(value : Int32) #

def size=(new_len : Int32) : Nil #

def space : Int32 #

def space=(value : Int32) #

def to_unsafe #

def width : Int32 #

def x_to_index(text : String, length : Int32, analysis : Pango::Analysis, x_pos : Int32, index_ : Int32, trailing : Int32) : Nil #