Matrix

class Matrix(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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()

Allocate a new Matrix.

constructor(scope: <Error class: unknown class>)

Allocate a new Matrix using the provided AutofreeScope.

constructor(xx: <Error class: unknown class>, xy: <Error class: unknown class>, yx: <Error class: unknown class>, yy: <Error class: unknown class>, x0: <Error class: unknown class>, y0: <Error class: unknown class>)

Allocate a new Matrix.

constructor(xx: <Error class: unknown class>, xy: <Error class: unknown class>, yx: <Error class: unknown class>, yy: <Error class: unknown class>, x0: <Error class: unknown class>, y0: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Matrix using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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: <Error class: unknown class>

x translation

Link copied to clipboard
var xx: <Error class: unknown class>

1st component of the transformation matrix

Link copied to clipboard
var xy: <Error class: unknown class>

2nd component of the transformation matrix

Link copied to clipboard
var y0: <Error class: unknown class>

y translation

Link copied to clipboard
var yx: <Error class: unknown class>

3rd component of the transformation matrix

Link copied to clipboard
var yy: <Error class: unknown class>

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
fun getFontScaleFactor(): <Error class: unknown class>

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

Link copied to clipboard
fun getSlantRatio(): <Error class: unknown class>

Gets the slant ratio of a matrix.

Link copied to clipboard
fun rotate(degrees: <Error class: unknown class>)

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: <Error class: unknown class>, scaleY: <Error class: unknown class>)

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
open override fun toString(): String
Link copied to clipboard
fun translate(tx: <Error class: unknown class>, ty: <Error class: unknown class>)

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