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) #

[View source]
def self.new(data : LibPango::LayoutLine, transfer : GICrystal::Transfer) #

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

[View source]
def height : Nil #

[View source]
def index_to_x(index_ : Int32, trailing : Bool, x_pos : Int32) : Nil #

[View source]
def is_paragraph_start : Bool #

[View source]
def is_paragraph_start=(value : UInt32) #

[View source]
def layout : Pango::Layout | Nil #

[View source]
def layout! #

[View source]
def length : Int32 #

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

[View source]
def pixel_extents : Pango::Rectangle #

[View source]
def ref : Pango::LayoutLine #

[View source]
def resolved_dir : UInt32 #

[View source]
def resolved_dir=(value : UInt32) #

[View source]
def resolved_direction : Pango::Direction #

[View source]
def runs : GLib::SList | Nil #

[View source]
def runs! #

[View source]
def start_index : Int32 #

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

[View source]
def to_unsafe #

[View source]
def unref : Nil #

[View source]
def x_ranges(start_index : Int32, end_index : Int32, ranges : Enumerable(Int32)) : Nil #

[View source]
def x_to_index(x_pos : Int32, index_ : Int32, trailing : Int32) : Bool #

[View source]