class Pango::LayoutLine

Overview

A Pango::LayoutLine represents one of the lines resulting from laying out a paragraph via Pango::Layout.

Pango::LayoutLine structures are obtained by calling Pango::Layout#line and are only valid until the text, attributes, or settings of the parent Pango::Layout are modified.

Defined in:

lib/gi-crystal/src/auto/pango-1.0/layout_line.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(data : LibPango::LayoutLine, transfer : GICrystal::Transfer) #

def self.new(start_index : Int32? = nil, length : Int32? = nil, is_paragraph_start : UInt32? = nil, resolved_dir : UInt32? = 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 extents : Pango::Rectangle #

def height : Nil #

def index_to_x(index_ : Int32, trailing : Bool, x_pos : Int32) : Nil #

def is_paragraph_start : Bool #

def is_paragraph_start=(value : UInt32) #

def layout : Pango::Layout? #

def layout! #

def length : Int32 #

def length=(value : Int32) #

def pixel_extents : Pango::Rectangle #

def ref : Pango::LayoutLine #

def resolved_dir : UInt32 #

def resolved_dir=(value : UInt32) #

def resolved_direction : Pango::Direction #

def runs : GLib::SList? #

def runs! #

def start_index : Int32 #

def start_index=(value : Int32) #

def to_unsafe #

def unref : Nil #

def x_ranges(start_index : Int32, end_index : Int32, ranges : Enumerable(Int32)) : Nil #

def x_to_index(x_pos : Int32, index_ : Int32, trailing : Int32) : Bool #