struct Pango::Matrix
- Pango::Matrix
- Struct
- Value
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibPango::Matrix, _transfer : GICrystal::Transfer)
- .new(xx : Float64? = nil, xy : Float64? = nil, yx : Float64? = nil, yy : Float64? = nil, x0 : Float64? = nil, y0 : Float64? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #concat(new_matrix : Pango::Matrix) : Nil
- #copy : Pango::Matrix?
- #font_scale_factor : Float64
- #font_scale_factors : Nil
- #free : Nil
- #rotate(degrees : Float64) : Nil
- #scale(scale_x : Float64, scale_y : Float64) : Nil
- #slant_ratio : Float64
- #transform_distance(dx : Float64, dy : Float64) : Nil
- #transform_pixel_rectangle : Nil
- #transform_point(x : Float64, y : Float64) : Nil
- #transform_rectangle : Nil
- #translate(tx : Float64, ty : Float64) : Nil
- #x0(*args, **options)
- #x0(*args, **options, &)
- #x0=(arg)
- #xx(*args, **options)
- #xx(*args, **options, &)
- #xx=(arg)
- #xy(*args, **options)
- #xy(*args, **options, &)
- #xy=(arg)
- #y0(*args, **options)
- #y0(*args, **options, &)
- #y0=(arg)
- #yx(*args, **options)
- #yx(*args, **options, &)
- #yx=(arg)
- #yy(*args, **options)
- #yy(*args, **options, &)
- #yy=(arg)
Constructor Detail
def self.new(xx : Float64? = nil, xy : Float64? = nil, yx : Float64? = nil, yy : Float64? = nil, x0 : Float64? = nil, y0 : Float64? = nil)
#