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.State;
26 
27 private import glib.Str;
28 private import gtkc.atk;
29 public  import gtkc.atktypes;
30 
31 
32 /** */
33 public struct State
34 {
35 
36 	/**
37 	 * Gets the #AtkStateType corresponding to the description string @name.
38 	 *
39 	 * Params:
40 	 *     name = a character string state name
41 	 *
42 	 * Returns: an #AtkStateType corresponding to @name
43 	 */
44 	public static AtkStateType typeForName(string name)
45 	{
46 		return atk_state_type_for_name(Str.toStringz(name));
47 	}
48 
49 	/**
50 	 * Gets the description string describing the #AtkStateType @type.
51 	 *
52 	 * Params:
53 	 *     type = The #AtkStateType whose name is required
54 	 *
55 	 * Returns: the string describing the AtkStateType
56 	 */
57 	public static string typeGetName(AtkStateType type)
58 	{
59 		return Str.toString(atk_state_type_get_name(type));
60 	}
61 
62 	/**
63 	 * Register a new object state.
64 	 *
65 	 * Params:
66 	 *     name = a character string describing the new state.
67 	 *
68 	 * Returns: an #AtkState value for the new state.
69 	 */
70 	public static AtkStateType typeRegister(string name)
71 	{
72 		return atk_state_type_register(Str.toStringz(name));
73 	}
74 }