Matrix

class Matrix(pointer: <Error class: unknown class><<Error class: unknown class>>)

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;

Skipped during bindings generation

  • parameter xscale: xscale: Out parameter is not supported

  • method transform_distance: In/Out parameter is not supported

  • method transform_pixel_rectangle: In/Out parameter is not supported

  • method transform_point: In/Out parameter is not supported

  • method transform_rectangle: In/Out parameter is not supported

Since

1.6

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoMatrixPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var x0: Double

x translation

Link copied to clipboard
var xx: Double

1st component of the transformation matrix

Link copied to clipboard
var xy: Double

2nd component of the transformation matrix

Link copied to clipboard
var y0: Double

y translation

Link copied to clipboard
var yx: Double

3rd component of the transformation matrix

Link copied to clipboard
var yy: Double

4th component of the transformation matrix

Functions

Link copied to clipboard
fun concat(newMatrix: 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.

Link copied to clipboard
fun copy(): Matrix?

Copies a PangoMatrix.

Link copied to clipboard
fun free()

Free a PangoMatrix.

Link copied to clipboard

Returns the scale factor of a matrix on the height of the font.

Link copied to clipboard

Gets the slant ratio of a matrix.

Link copied to clipboard
fun rotate(degrees: Double)

Changes the transformation represented by @matrix to be the transformation given by first rotating by @degrees degrees counter-clockwise then applying the original transformation.

Link copied to clipboard
fun scale(scaleX: Double, scaleY: Double)

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.

Link copied to clipboard
fun translate(tx: Double, ty: Double)

Changes the transformation represented by @matrix to be the transformation given by first translating by (@tx, @ty) then applying the original transformation.