1 /* ATK - Accessibility Toolkit
2 * Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 #include "atkwindow.h"
19 #include "atkmarshal.h"
23 * @Short_description: The ATK Interface provided by UI components that represent a top-level window.
25 * @See_also: #AtkObject
27 * #AtkWindow should be implemented by the UI elements that represent
28 * a top-level window, such as the main window of an application or
46 static guint atk_window_signals[LAST_SIGNAL] = { 0 };
49 atk_window_add_signal (const gchar *name)
51 return g_signal_new (name,
55 (GSignalAccumulator) NULL, NULL,
56 g_cclosure_marshal_VOID__VOID,
61 typedef AtkWindowIface AtkWindowInterface;
62 G_DEFINE_INTERFACE (AtkWindow, atk_window, ATK_TYPE_OBJECT)
65 atk_window_default_init (AtkWindowIface *iface)
67 static gboolean initialized = FALSE;
72 * AtkWindow::activate:
73 * @object: the object which received the signal
75 * The signal #AtkWindow::activate is emitted when a window
76 * becomes the active window of the application or session.
80 atk_window_signals[ACTIVATE] = atk_window_add_signal ("activate");
83 * @object: the object which received the signal
85 * The signal #AtkWindow::create is emitted when a new window
90 atk_window_signals[CREATE] = atk_window_add_signal ("create");
92 * AtkWindow::deactivate:
93 * @object: the object which received the signal
95 * The signal #AtkWindow::deactivate is emitted when a window is
96 * no longer the active window of the application or session.
100 atk_window_signals[DEACTIVATE] = atk_window_add_signal ("deactivate");
102 * AtkWindow::destroy:
103 * @object: the object which received the signal
105 * The signal #AtkWindow::destroy is emitted when a window is
110 atk_window_signals[DESTROY] = atk_window_add_signal ("destroy");
112 * AtkWindow::maximize:
113 * @object: the object which received the signal
115 * The signal #AtkWindow::maximize is emitted when a window
120 atk_window_signals[MAXIMIZE] = atk_window_add_signal ("maximize");
122 * AtkWindow::minimize:
123 * @object: the object which received the signal
125 * The signal #AtkWindow::minimize is emitted when a window
130 atk_window_signals[MINIMIZE] = atk_window_add_signal ("minimize");
133 * @object: the object which received the signal
135 * The signal #AtkWindow::move is emitted when a window
140 atk_window_signals[MOVE] = atk_window_add_signal ("move");
143 * @object: the object which received the signal
145 * The signal #AtkWindow::resize is emitted when a window
150 atk_window_signals[RESIZE] = atk_window_add_signal ("resize");
152 * AtkWindow::restore:
153 * @object: the object which received the signal
155 * The signal #AtkWindow::restore is emitted when a window
160 atk_window_signals[RESTORE] = atk_window_add_signal ("restore");