pango.matrix
Module for [Matrix] struct
struct Matrix
Types 1
structMatrix
A pango.matrix.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;Fields
double xx1st component of the transformation matrixdouble xy2nd component of the transformation matrixdouble yx3rd component of the transformation matrixdouble yy4th component of the transformation matrixdouble x0x translationdouble y0y translationMethods
void * boxCopy() nothrowvoid concat(pango.matrix.Matrix newMatrix) nothrowChanges the transformation represented by matrix to be the transformation given by first applying transformation given by new_matrix then applying the original transformation.pango.matrix.Matrix copy() nothrowCopies a [pango.matrix.Matrix]. Returns: the newly allocated [pango.matrix.Matrix]void getFontScaleFactors(out double xscale, out double yscale) nothrowCalculates the scale factor of a matrix on the width and height of the font.void rotate(double degrees) nothrowChanges the transformation represented by matrix to be the transformation given by first rotating by degrees degrees counter-clockwise then applying the original transformation.void scale(double scaleX, double scaleY) nothrowChanges the transformation represented by matrix to be the transformation given by first scaling by sx in the X direction and sy in the Y direction then applying the original transformation.void transformDistance(ref double dx, ref double dy) nothrowTransforms the distance vector (dx,dy) by matrix.void transformPixelRectangle(ref pango.types.Rectangle rect) nothrowFirst transforms the rect using matrix, then calculates the bounding box of the transformed rectangle.void transformRectangle(ref pango.types.Rectangle rect) nothrowFirst transforms rect using matrix, then calculates the bounding box of the transformed rectangle.void translate(double tx, double ty) nothrowChanges the transformation represented by matrix to be the transformation given by first translating by (tx, ty) then applying the original transformation.