class Pango::Matrix

Overview

A PangoMatrix 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(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 #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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

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 : Float64 #

def x0=(value : Float64) #

def xx : Float64 #

def xx=(value : Float64) #

def xy : Float64 #

def xy=(value : Float64) #

def y0 : Float64 #

def y0=(value : Float64) #

def yx : Float64 #

def yx=(value : Float64) #

def yy : Float64 #

def yy=(value : Float64) #