Debian Codegraph @

doc/defuns-cairo-version.xml.texi

raw
1
2 @c %start of fragment
3
4 @deffn Function cairo-version @result{}@tie{} (@var{ret}@tie{}@code{<int>})
5 Returns the version of the cairo library encoded in a single integer as
6 per @samp{CAIRO_VERSION_ENCODE}. The encoding ensures that later
7 versions compare greater than earlier versions.
8
9 A run-time comparison to check that cairo's version is greater than or
10 equal to version X.Y.Z could be performed as follows:
11
12 @example
13
14 if (cairo_version() >= CAIRO_VERSION_ENCODE(X,Y,Z)) @{...@}
15 @end example
16
17 See also @code{cairo-version-string} as well as the compile-time
18 equivalents @samp{CAIRO_VERSION} and @samp{CAIRO_VERSION_STRING}.
19
20 @table @var
21 @item ret
22 the encoded version.
23
24 @end table
25
26 @end deffn
27
28 @deffn Function cairo-version-string @result{}@tie{} (@var{ret}@tie{}@code{<char >})
29 Returns the version of the cairo library as a human-readable string of
30 the form "X.Y.Z".
31
32 See also @code{cairo-version} as well as the compile-time equivalents
33 @samp{CAIRO_VERSION_STRING} and @samp{CAIRO_VERSION}.
34
35 @table @var
36 @item ret
37 a string containing the version.
38
39 @end table
40
41 @end deffn
42
43
44 @c %end of fragment