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

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

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

[View source]
def concat(new_matrix : Pango::Matrix) : Nil #

[View source]
def copy : Pango::Matrix | Nil #

[View source]
def font_scale_factor : Float64 #

[View source]
def font_scale_factors : Nil #

[View source]
def free : Nil #

[View source]
def rotate(degrees : Float64) : Nil #

[View source]
def scale(scale_x : Float64, scale_y : Float64) : Nil #

[View source]
def slant_ratio : Float64 #

[View source]
def transform_distance(dx : Float64, dy : Float64) : Nil #

[View source]
def transform_pixel_rectangle : Nil #

[View source]
def transform_point(x : Float64, y : Float64) : Nil #

[View source]
def transform_rectangle : Nil #

[View source]
def translate(tx : Float64, ty : Float64) : Nil #

[View source]
def x0(*args, **options) #

[View source]
def x0(*args, **options, &) #

[View source]
def x0=(arg) #

[View source]
def xx(*args, **options) #

[View source]
def xx(*args, **options, &) #

[View source]
def xx=(arg) #

[View source]
def xy(*args, **options) #

[View source]
def xy(*args, **options, &) #

[View source]
def xy=(arg) #

[View source]
def y0(*args, **options) #

[View source]
def y0(*args, **options, &) #

[View source]
def y0=(arg) #

[View source]
def yx(*args, **options) #

[View source]
def yx(*args, **options, &) #

[View source]
def yx=(arg) #

[View source]
def yy(*args, **options) #

[View source]
def yy(*args, **options, &) #

[View source]
def yy=(arg) #

[View source]