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, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include "atkwindow.h"
21 #include "atkmarshal.h"
25 * @Short_description: The ATK Interface provided by UI components that represent a top-level window.
27 * @See_also: #AtkObject
29 * #AtkWindow should be implemented by the UI elements that represent
30 * a top-level window, such as the main window of an application or
48 static guint atk_window_signals[LAST_SIGNAL] = { 0 };
51 atk_window_add_signal (const gchar *name)
53 return g_signal_new (name,
57 (GSignalAccumulator) NULL, NULL,
58 g_cclosure_marshal_VOID__VOID,
63 typedef AtkWindowIface AtkWindowInterface;
64 G_DEFINE_INTERFACE (AtkWindow, atk_window, ATK_TYPE_OBJECT)
67 atk_window_default_init (AtkWindowIface *iface)
69 static gboolean initialized = FALSE;
74 * AtkWindow::activate:
75 * @object: the object which received the signal
77 * The signal #AtkWindow::activate is emitted when a window
78 * becomes the active window of the application or session.
82 atk_window_signals[ACTIVATE] = atk_window_add_signal ("activate");
85 * @object: the object which received the signal
87 * The signal #AtkWindow::create is emitted when a new window
92 atk_window_signals[CREATE] = atk_window_add_signal ("create");
94 * AtkWindow::deactivate:
95 * @object: the object which received the signal
97 * The signal #AtkWindow::deactivate is emitted when a window is
98 * no longer the active window of the application or session.
102 atk_window_signals[DEACTIVATE] = atk_window_add_signal ("deactivate");
104 * AtkWindow::destroy:
105 * @object: the object which received the signal
107 * The signal #AtkWindow::destroy is emitted when a window is
112 atk_window_signals[DESTROY] = atk_window_add_signal ("destroy");
114 * AtkWindow::maximize:
115 * @object: the object which received the signal
117 * The signal #AtkWindow::maximize is emitted when a window
122 atk_window_signals[MAXIMIZE] = atk_window_add_signal ("maximize");
124 * AtkWindow::minimize:
125 * @object: the object which received the signal
127 * The signal #AtkWindow::minimize is emitted when a window
132 atk_window_signals[MINIMIZE] = atk_window_add_signal ("minimize");
135 * @object: the object which received the signal
137 * The signal #AtkWindow::move is emitted when a window
142 atk_window_signals[MOVE] = atk_window_add_signal ("move");
145 * @object: the object which received the signal
147 * The signal #AtkWindow::resize is emitted when a window
152 atk_window_signals[RESIZE] = atk_window_add_signal ("resize");
154 * AtkWindow::restore:
155 * @object: the object which received the signal
157 * The signal #AtkWindow::restore is emitted when a window
162 atk_window_signals[RESTORE] = atk_window_add_signal ("restore");