Function

Pango.Gravity.to_rotation

Declaration [src]

double
pango_gravity_to_rotation (
  PangoGravity gravity
)

Description [src]

Converts a PangoGravity value to its natural rotation in radians.

Note that pango_matrix_rotate() takes angle in degrees, not radians. So, to call [method@Pango.Matrix,rotate] with the output of this function you should multiply it by (180. / G_PI).

Available since:1.16

Parameters

gravity PangoGravity
 

gravity to query, should not be PANGO_GRAVITY_AUTO

Return value

Returns: double

the rotation value corresponding to gravity.