Matrix
Object Hierarchy:
Description:
A structure specifying a transformation between user-space coordinates 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;
Namespace: Pango
Package: pango
Content:
Methods:
-
public void concat (Matrix new_matrix)
Changes the transformation represented by matrix to be the transformation given by first
applying transformation given by new_matrix then applying the original transformation.
-
public Matrix copy ()
-
public void free ()
-
public double get_font_scale_factor ()
Returns the scale factor of a matrix on the height of the font. That is, the scale factor in the
direction perpendicular to the vector that the X coordinate is mapped to.
-
public 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.
-
public void scale (double scale_x, double scale_y)
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.
-
public void transform_distance (double dx, double dy)
Transforms the distance vector (@dx,@dy) by matrix. This is similar to
transform_point except that the translation components of the
transformation are ignored. The calculation of the returned vector is as follows:
-
public void transform_pixel_rectangle (ref Rectangle rect)
First transforms the rect using matrix, then calculates the bounding box of
the transformed rectangle. The rectangle should be in device units (pixels).
-
public void transform_point (double x, double y)
Transforms the point (@x, y) by matrix.
-
public void transform_rectangle (ref Rectangle rect)
First transforms rect using matrix, then calculates the bounding box of the
transformed rectangle. The rectangle should be in Pango units.
-
public 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.
Fields: