1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module pango.PgVersion;
26 
27 private import glib.Str;
28 private import gtkc.pango;
29 public  import gtkc.pangotypes;
30 
31 
32 /** */
33 public struct PgVersion
34 {
35 
36 	/**
37 	 * This is similar to the macro %PANGO_VERSION except that
38 	 * it returns the encoded version of Pango available at run-time,
39 	 * as opposed to the version available at compile-time.
40 	 *
41 	 * A version number can be encoded into an integer using
42 	 * PANGO_VERSION_ENCODE().
43 	 *
44 	 * Return: The encoded version of Pango library
45 	 *     available at run time.
46 	 *
47 	 * Since: 1.16
48 	 */
49 	public static int versio()
50 	{
51 		return pango_version();
52 	}
53 
54 	/**
55 	 * Checks that the Pango library in use is compatible with the
56 	 * given version. Generally you would pass in the constants
57 	 * %PANGO_VERSION_MAJOR, %PANGO_VERSION_MINOR, %PANGO_VERSION_MICRO
58 	 * as the three arguments to this function; that produces
59 	 * a check that the library in use at run-time is compatible with
60 	 * the version of Pango the application or module was compiled against.
61 	 *
62 	 * Compatibility is defined by two things: first the version
63 	 * of the running library is newer than the version
64 	 * @required_major.required_minor.@required_micro. Second
65 	 * the running library must be binary compatible with the
66 	 * version @required_major.required_minor.@required_micro
67 	 * (same major version.)
68 	 *
69 	 * For compile-time version checking use PANGO_VERSION_CHECK().
70 	 *
71 	 * Params:
72 	 *     requiredMajor = the required major version.
73 	 *     requiredMinor = the required minor version.
74 	 *     requiredMicro = the required major version.
75 	 *
76 	 * Return: %NULL if the Pango library is compatible
77 	 *     with the given version, or a string describing the version
78 	 *     mismatch.  The returned string is owned by Pango and should not
79 	 *     be modified or freed.
80 	 *
81 	 * Since: 1.16
82 	 */
83 	public static string versionCheck(int requiredMajor, int requiredMinor, int requiredMicro)
84 	{
85 		return Str.toString(pango_version_check(requiredMajor, requiredMinor, requiredMicro));
86 	}
87 
88 	/**
89 	 * This is similar to the macro %PANGO_VERSION_STRING except that
90 	 * it returns the version of Pango available at run-time, as opposed to
91 	 * the version available at compile-time.
92 	 *
93 	 * Return: A string containing the version of Pango library
94 	 *     available at run time.
95 	 *     The returned string is owned by Pango and should not be modified
96 	 *     or freed.
97 	 *
98 	 * Since: 1.16
99 	 */
100 	public static string versionString()
101 	{
102 		return Str.toString(pango_version_string());
103 	}
104 }