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