to_rotation


Description:

public double to_rotation ()

Converts a `PangoGravity` value to its natural rotation in radians.

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

Parameters:

gravity

gravity to query, should not be pango_gravity_auto

Returns:

the rotation value corresponding to gravity.




2022 vala-language.org