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 matrix
double xy2nd component of the transformation matrix
double yx3rd component of the transformation matrix
double yy4th component of the transformation matrix
double x0x translation
double y0y translation
Methods
GType _gType() @property
void * boxCopy()
void concat(pango.matrix.Matrix newMatrix)Changes 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()Copies a [pango.matrix.Matrix]. Returns: the newly allocated [pango.matrix.Matrix]
double getFontScaleFactor()Returns the scale factor of a matrix on the height of the font.
void getFontScaleFactors(out double xscale, out double yscale)Calculates the scale factor of a matrix on the width and height of the font.
double getSlantRatio()Gets the slant ratio of a matrix.
void rotate(double degrees)Changes 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)Changes 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)Transforms the distance vector (dx,dy) by matrix.
void transformPixelRectangle(ref pango.types.Rectangle rect)First transforms the rect using matrix, then calculates the bounding box of the transformed rectangle.
void transformPoint(ref double x, ref double y)Transforms the point (`x`, `y`) by matrix.
void transformRectangle(ref pango.types.Rectangle rect)First transforms rect using matrix, then calculates the bounding box of the transformed rectangle.
void translate(double tx, double ty)Changes the transformation represented by matrix to be the transformation given by first translating by (tx, ty) then applying the original transformation.