Package: cairo

Function cairo:version

Lambda List

cairo:version ()

Return Value

The integer with the encoded version.

Details

Returns the version of the Cairo library encoded in a single integer. The encoding ensures that later versions compare greater than earlier versions.

A run-time comparison to check that Cairo's version is greater than or equal to version x.y.z could be performed as follows:
(>= (cairo:version) (cairo:version-encode x y z))  
See also the cairo:version-string function.
 

See also

2025-1-18