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 atk.Version;
26 
27 private import glib.Str;
28 private import gtkc.atk;
29 public  import gtkc.atktypes;
30 
31 
32 /** */
33 public struct Version
34 {
35 
36 	/**
37 	 * Returns the binary age as passed to libtool when building the ATK
38 	 * library the process is running against.
39 	 *
40 	 * Returns: the binary age of the ATK library
41 	 *
42 	 * Since: 2.8
43 	 */
44 	public static uint getBinaryAge()
45 	{
46 		return atk_get_binary_age();
47 	}
48 
49 	/**
50 	 * Returns the interface age as passed to libtool when building the
51 	 * ATK library the process is running against.
52 	 *
53 	 * Returns: the interface age of the ATK library
54 	 *
55 	 * Since: 2.8
56 	 */
57 	public static uint getInterfaceAge()
58 	{
59 		return atk_get_interface_age();
60 	}
61 
62 	/**
63 	 * Returns the major version number of the ATK library.  (e.g. in ATK
64 	 * version 2.7.4 this is 2.)
65 	 *
66 	 * This function is in the library, so it represents the ATK library
67 	 * your code is running against. In contrast, the #ATK_MAJOR_VERSION
68 	 * macro represents the major version of the ATK headers you have
69 	 * included when compiling your code.
70 	 *
71 	 * Returns: the major version number of the ATK library
72 	 *
73 	 * Since: 2.8
74 	 */
75 	public static uint getMajorVersion()
76 	{
77 		return atk_get_major_version();
78 	}
79 
80 	/**
81 	 * Returns the micro version number of the ATK library.  (e.g. in ATK
82 	 * version 2.7.4 this is 4.)
83 	 *
84 	 * This function is in the library, so it represents the ATK library
85 	 * your code is are running against. In contrast, the
86 	 * #ATK_MICRO_VERSION macro represents the micro version of the ATK
87 	 * headers you have included when compiling your code.
88 	 *
89 	 * Returns: the micro version number of the ATK library
90 	 *
91 	 * Since: 2.8
92 	 */
93 	public static uint getMicroVersion()
94 	{
95 		return atk_get_micro_version();
96 	}
97 
98 	/**
99 	 * Returns the minor version number of the ATK library.  (e.g. in ATK
100 	 * version 2.7.4 this is 7.)
101 	 *
102 	 * This function is in the library, so it represents the ATK library
103 	 * your code is are running against. In contrast, the
104 	 * #ATK_MINOR_VERSION macro represents the minor version of the ATK
105 	 * headers you have included when compiling your code.
106 	 *
107 	 * Returns: the minor version number of the ATK library
108 	 *
109 	 * Since: 2.8
110 	 */
111 	public static uint getMinorVersion()
112 	{
113 		return atk_get_minor_version();
114 	}
115 
116 	/**
117 	 * Gets version string for the GUI toolkit implementing ATK for this application.
118 	 *
119 	 * Returns: version string for the GUI toolkit implementing ATK for this application
120 	 */
121 	public static string getToolkitVersion()
122 	{
123 		return Str.toString(atk_get_toolkit_version());
124 	}
125 
126 	/**
127 	 * Gets the current version for ATK.
128 	 *
129 	 * Returns: version string for ATK
130 	 *
131 	 * Since: 1.20
132 	 */
133 	public static string getVersion()
134 	{
135 		return Str.toString(atk_get_version());
136 	}
137 }