getForMatrix

fun getForMatrix(matrix: Matrix? = null): Gravity

Finds the gravity that best matches the rotation component in a PangoMatrix.

Return

the gravity of @matrix, which will never be %PANGO_GRAVITY_AUTO, or %PANGO_GRAVITY_SOUTH if @matrix is null

Since

1.16

Parameters

matrix

a PangoMatrix