struct Pango::Matrix

Overview

A Pango::Matrix specifies a transformation between user-space and device coordinates.

The transformation is given by

x_device = x_user * matrix->xx + y_user * matrix->xy + matrix->x0;
y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0;

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(data : LibPango::Matrix, _transfer : GICrystal::Transfer) #

def self.new(xx : Float64? = nil, xy : Float64? = nil, yx : Float64? = nil, yy : Float64? = nil, x0 : Float64? = nil, y0 : Float64? = 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 #

def concat(new_matrix : Pango::Matrix) : Nil #

def copy : Pango::Matrix? #

def font_scale_factor : Float64 #

def font_scale_factors : Nil #

def free : Nil #

def rotate(degrees : Float64) : Nil #

def scale(scale_x : Float64, scale_y : Float64) : Nil #

def slant_ratio : Float64 #

def transform_distance(dx : Float64, dy : Float64) : Nil #

def transform_pixel_rectangle : Nil #

def transform_point(x : Float64, y : Float64) : Nil #

def transform_rectangle : Nil #

def translate(tx : Float64, ty : Float64) : Nil #

def x0(*args, **options) #

def x0(*args, **options, &) #

def x0=(arg) #

def xx(*args, **options) #

def xx(*args, **options, &) #

def xx=(arg) #

def xy(*args, **options) #

def xy(*args, **options, &) #

def xy=(arg) #

def y0(*args, **options) #

def y0(*args, **options, &) #

def y0=(arg) #

def yx(*args, **options) #

def yx(*args, **options, &) #

def yx=(arg) #

def yy(*args, **options) #

def yy(*args, **options, &) #

def yy=(arg) #