class Pango::Matrix
- Pango::Matrix
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), 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
Returns
true
if this reference is the same as other. - #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
- #to_unsafe
- #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 : Float64
- #x0=(value : Float64)
- #xx : Float64
- #xx=(value : Float64)
- #xy : Float64
- #xy=(value : Float64)
- #y0 : Float64
- #y0=(value : Float64)
- #yx : Float64
- #yx=(value : Float64)
- #yy : Float64
- #yy=(value : Float64)
Constructor Detail
def self.new(xx : Float64? = nil, xy : Float64? = nil, yx : Float64? = nil, yy : Float64? = nil, x0 : Float64? = nil, y0 : Float64? = nil)
#
Class Method Detail
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.