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