class Pango::GlyphString

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.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::GlyphString, transfer : GICrystal::Transfer) #

[View source]
def self.new(num_glyphs : Int32 | Nil = nil, space : 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 copy : Pango::GlyphString | Nil #

[View source]
def extents(font : Pango::Font) : Pango::Rectangle #

[View source]
def extents_range(start : Int32, end _end : Int32, font : Pango::Font) : Pango::Rectangle #

[View source]
def free : Nil #

[View source]
def glyphs : Enumerable(Pango::GlyphInfo) | Nil #

[View source]
def glyphs! #

[View source]
def index_to_x(text : String, length : Int32, analysis : Pango::Analysis, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil #

[View source]
def index_to_x_full(text : String, length : Int32, analysis : Pango::Analysis, attrs : Pango::LogAttr | Nil, index_ : Int32, trailing : Bool, x_pos : Int32) : Nil #

[View source]
def log_clusters : Pointer(Int32) | Nil #

[View source]
def log_clusters! #

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

[View source]
def num_glyphs : Int32 #

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

[View source]
def size=(new_len : Int32) : Nil #

[View source]
def space : Int32 #

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

[View source]
def to_unsafe #

[View source]
def width : Int32 #

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

[View source]