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.WindowT;
26 
27 public  import atk.c.functions;
28 public  import atk.c.types;
29 public  import gobject.Signals;
30 public  import std.algorithm;
31 
32 
33 /**
34  * #AtkWindow should be implemented by the UI elements that represent
35  * a top-level window, such as the main window of an application or
36  * dialog.
37  */
38 public template WindowT(TStruct)
39 {
40 	/** Get the main Gtk struct */
41 	public AtkWindow* getWindowStruct(bool transferOwnership = false)
42 	{
43 		if (transferOwnership)
44 			ownedRef = false;
45 		return cast(AtkWindow*)getStruct();
46 	}
47 
48 
49 	/**
50 	 * The signal #AtkWindow::activate is emitted when a window
51 	 * becomes the active window of the application or session.
52 	 *
53 	 * Since: 2.2
54 	 */
55 	gulong addOnActivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
56 	{
57 		return Signals.connect(this, "activate", dlg, connectFlags ^ ConnectFlags.SWAPPED);
58 	}
59 
60 	/**
61 	 * The signal #AtkWindow::create is emitted when a new window
62 	 * is created.
63 	 *
64 	 * Since: 2.2
65 	 */
66 	gulong addOnCreate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
67 	{
68 		return Signals.connect(this, "create", dlg, connectFlags ^ ConnectFlags.SWAPPED);
69 	}
70 
71 	/**
72 	 * The signal #AtkWindow::deactivate is emitted when a window is
73 	 * no longer the active window of the application or session.
74 	 *
75 	 * Since: 2.2
76 	 */
77 	gulong addOnDeactivate(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
78 	{
79 		return Signals.connect(this, "deactivate", dlg, connectFlags ^ ConnectFlags.SWAPPED);
80 	}
81 
82 	/**
83 	 * The signal #AtkWindow::destroy is emitted when a window is
84 	 * destroyed.
85 	 *
86 	 * Since: 2.2
87 	 */
88 	gulong addOnDestroy(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
89 	{
90 		return Signals.connect(this, "destroy", dlg, connectFlags ^ ConnectFlags.SWAPPED);
91 	}
92 
93 	/**
94 	 * The signal #AtkWindow::maximize is emitted when a window
95 	 * is maximized.
96 	 *
97 	 * Since: 2.2
98 	 */
99 	gulong addOnMaximize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
100 	{
101 		return Signals.connect(this, "maximize", dlg, connectFlags ^ ConnectFlags.SWAPPED);
102 	}
103 
104 	/**
105 	 * The signal #AtkWindow::minimize is emitted when a window
106 	 * is minimized.
107 	 *
108 	 * Since: 2.2
109 	 */
110 	gulong addOnMinimize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
111 	{
112 		return Signals.connect(this, "minimize", dlg, connectFlags ^ ConnectFlags.SWAPPED);
113 	}
114 
115 	/**
116 	 * The signal #AtkWindow::move is emitted when a window
117 	 * is moved.
118 	 *
119 	 * Since: 2.2
120 	 */
121 	gulong addOnMove(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
122 	{
123 		return Signals.connect(this, "move", dlg, connectFlags ^ ConnectFlags.SWAPPED);
124 	}
125 
126 	/**
127 	 * The signal #AtkWindow::resize is emitted when a window
128 	 * is resized.
129 	 *
130 	 * Since: 2.2
131 	 */
132 	gulong addOnResize(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
133 	{
134 		return Signals.connect(this, "resize", dlg, connectFlags ^ ConnectFlags.SWAPPED);
135 	}
136 
137 	/**
138 	 * The signal #AtkWindow::restore is emitted when a window
139 	 * is restored.
140 	 *
141 	 * Since: 2.2
142 	 */
143 	gulong addOnRestore(void delegate(WindowIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
144 	{
145 		return Signals.connect(this, "restore", dlg, connectFlags ^ ConnectFlags.SWAPPED);
146 	}
147 }