Mercurial > pidgin
annotate finch/libgnt/gntwm.h @ 18076:da183b86a3ef
Update for the new api.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 10 Jun 2007 15:41:14 +0000 |
parents | 08776fc5c06f |
children | ab6d2763b8d8 |
rev | line source |
---|---|
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
1 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
2 * GNT - The GLib Ncurses Toolkit |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
3 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
4 * GNT is the legal property of its developers, whose names are too numerous |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
5 * to list here. Please refer to the COPYRIGHT file distributed with this |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
6 * source distribution. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
7 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
8 * This library is free software; you can redistribute it and/or modify |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
11 * (at your option) any later version. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
12 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
13 * This program is distributed in the hope that it will be useful, |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
16 * GNU General Public License for more details. |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
17 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
18 * You should have received a copy of the GNU General Public License |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
19 * along with this program; if not, write to the Free Software |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
21 */ |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
22 |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
23 #ifndef GNTWM_H |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
24 #define GNTWM_H |
15817 | 25 |
26 #include "gntwidget.h" | |
27 #include "gntmenu.h" | |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
28 #include "gntws.h" |
15817 | 29 |
30 #include <panel.h> | |
15981
a741ec4dafa0
sf patch #1691784, from William Ehlhardt
Mark Doliner <mark@kingant.net>
parents:
15928
diff
changeset
|
31 #include <time.h> |
15817 | 32 |
33 #define GNT_TYPE_WM (gnt_wm_get_gtype()) | |
34 #define GNT_WM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WM, GntWM)) | |
35 #define GNT_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_WM, GntWMClass)) | |
36 #define GNT_IS_WM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WM)) | |
37 #define GNT_IS_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WM)) | |
38 #define GNT_WM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WM, GntWMClass)) | |
39 | |
40 typedef enum | |
41 { | |
42 GNT_KP_MODE_NORMAL, | |
43 GNT_KP_MODE_RESIZE, | |
44 GNT_KP_MODE_MOVE, | |
45 } GntKeyPressMode; | |
46 | |
47 typedef struct | |
48 { | |
49 GntWidget *me; | |
50 | |
51 WINDOW *window; | |
52 int scroll; | |
53 PANEL *panel; | |
17702
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17698
diff
changeset
|
54 GntWS *ws; |
15817 | 55 } GntNode; |
56 | |
17702
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17698
diff
changeset
|
57 typedef struct _GntWM GntWM; |
15817 | 58 |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
59 typedef struct _GntPosition |
15817 | 60 { |
61 int x; | |
62 int y; | |
63 } GntPosition; | |
64 | |
65 /** | |
66 * An application can register actions which will show up in a 'start-menu' like popup | |
67 */ | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
68 typedef struct _GntAction |
15817 | 69 { |
70 const char *label; | |
71 void (*callback)(); | |
72 } GntAction; | |
73 | |
17702
596c970076df
Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
17698
diff
changeset
|
74 struct _GntWM |
15817 | 75 { |
76 GntBindable inherit; | |
77 | |
78 GMainLoop *loop; | |
79 | |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
80 GList *workspaces; |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
81 GList *tagged; /* tagged windows */ |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
82 GntWS *cws; |
15817 | 83 |
84 struct { | |
85 GntWidget *window; | |
86 GntWidget *tree; | |
87 } _list, | |
88 *windows, /* Window-list window */ | |
89 *actions; /* Action-list window */ | |
90 | |
91 GHashTable *nodes; /* GntWidget -> GntNode */ | |
17704
5acee0788697
New windows can be placed on specific workspaces. They can be specified by the window name (e.g. conversation-window), or a substring in the window title. Title takes precedence.
Richard Nelson <wabz@pidgin.im>
parents:
17702
diff
changeset
|
92 GHashTable *name_places; /* window name -> ws*/ |
5acee0788697
New windows can be placed on specific workspaces. They can be specified by the window name (e.g. conversation-window), or a substring in the window title. Title takes precedence.
Richard Nelson <wabz@pidgin.im>
parents:
17702
diff
changeset
|
93 GHashTable *title_places; /* window title -> ws */ |
15817 | 94 |
95 GList *acts; /* List of actions */ | |
96 | |
97 /** | |
98 * There can be at most one menu at a time on the screen. | |
99 * If there is a menu being displayed, then all the keystrokes will be sent to | |
100 * the menu until it is closed, either when the user activates a menuitem, or | |
101 * presses Escape to cancel the menu. | |
102 */ | |
103 GntMenu *menu; /* Currently active menu */ | |
104 | |
105 /** | |
106 * 'event_stack' will be set to TRUE when a user-event, ie. a mouse-click | |
107 * or a key-press is being processed. This variable will be used to determine | |
108 * whether to give focus to a new window. | |
109 */ | |
110 gboolean event_stack; | |
111 | |
112 GntKeyPressMode mode; | |
113 | |
114 GHashTable *positions; | |
115 | |
116 void *res1; | |
117 void *res2; | |
118 void *res3; | |
119 void *res4; | |
120 }; | |
121 | |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
122 typedef struct _GntWMClass GntWMClass; |
15817 | 123 |
15928
f00f2e283ffb
Some define changes. This helps in generating the python bindings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15817
diff
changeset
|
124 struct _GntWMClass |
15817 | 125 { |
126 GntBindableClass parent; | |
127 | |
128 /* This is called when a new window is shown */ | |
129 void (*new_window)(GntWM *wm, GntWidget *win); | |
130 | |
131 void (*decorate_window)(GntWM *wm, GntWidget *win); | |
132 /* This is called when a window is being closed */ | |
133 gboolean (*close_window)(GntWM *wm, GntWidget *win); | |
134 | |
135 /* The WM may want to confirm a size for a window first */ | |
136 gboolean (*window_resize_confirm)(GntWM *wm, GntWidget *win, int *w, int *h); | |
137 | |
138 void (*window_resized)(GntWM *wm, GntNode *node); | |
139 | |
140 /* The WM may want to confirm the position of a window */ | |
141 gboolean (*window_move_confirm)(GntWM *wm, GntWidget *win, int *x, int *y); | |
142 | |
143 void (*window_moved)(GntWM *wm, GntNode *node); | |
144 | |
145 /* This gets called when: | |
146 * - the title of the window changes | |
147 * - the 'urgency' of the window changes | |
148 */ | |
149 void (*window_update)(GntWM *wm, GntNode *node); | |
150 | |
151 /* This should usually return NULL if the keys were processed by the WM. | |
152 * If not, the WM can simply return the original string, which will be | |
153 * processed by the default WM. The custom WM can also return a different | |
154 * static string for the default WM to process. | |
155 */ | |
156 gboolean (*key_pressed)(GntWM *wm, const char *key); | |
157 | |
158 gboolean (*mouse_clicked)(GntWM *wm, GntMouseEvent event, int x, int y, GntWidget *widget); | |
159 | |
160 /* Whatever the WM wants to do when a window is given focus */ | |
161 void (*give_focus)(GntWM *wm, GntWidget *widget); | |
162 | |
163 /* List of windows. Although the WM can keep a list of its own for the windows, | |
164 * it'd be better if there was a way to share between the 'core' and the WM. | |
165 */ | |
166 /*const GList *(*window_list)();*/ | |
167 | |
168 void (*res1)(void); | |
169 void (*res2)(void); | |
170 void (*res3)(void); | |
171 void (*res4)(void); | |
172 }; | |
173 | |
174 G_BEGIN_DECLS | |
175 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
176 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
177 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
178 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
179 * @return |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
180 */ |
15817 | 181 GType gnt_wm_get_gtype(void); |
182 | |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
183 void gnt_wm_add_workspace(GntWM *wm, GntWS *ws); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
184 |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
185 gboolean gnt_wm_switch_workspace(GntWM *wm, gint n); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
186 gboolean gnt_wm_switch_workspace_prev(GntWM *wm); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
187 gboolean gnt_wm_switch_workspace_next(GntWM *wm); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
188 void gnt_wm_widget_move_workspace(GntWM *wm, GntWS *neww, GntWidget *widget); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
189 void gnt_wm_set_workspaces(GntWM *wm, GList *workspaces); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
190 GntWS *gnt_wm_widget_find_workspace(GntWM *wm, GntWidget *widget); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
191 |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
192 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
193 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
194 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
195 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
196 */ |
15817 | 197 void gnt_wm_new_window(GntWM *wm, GntWidget *widget); |
198 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
199 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
200 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
201 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
202 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
203 */ |
15817 | 204 void gnt_wm_window_decorate(GntWM *wm, GntWidget *widget); |
205 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
206 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
207 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
208 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
209 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
210 */ |
15817 | 211 void gnt_wm_window_close(GntWM *wm, GntWidget *widget); |
212 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
213 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
214 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
215 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
216 * @param string |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
217 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
218 * @return |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
219 */ |
15817 | 220 gboolean gnt_wm_process_input(GntWM *wm, const char *string); |
221 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
222 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
223 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
224 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
225 * @param event |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
226 * @param x |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
227 * @param y |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
228 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
229 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
230 * @return |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
231 */ |
15817 | 232 gboolean gnt_wm_process_click(GntWM *wm, GntMouseEvent event, int x, int y, GntWidget *widget); |
233 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
234 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
235 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
236 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
237 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
238 * @param width |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
239 * @param height |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
240 */ |
15817 | 241 void gnt_wm_resize_window(GntWM *wm, GntWidget *widget, int width, int height); |
242 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
243 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
244 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
245 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
246 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
247 * @param x |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
248 * @param y |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
249 */ |
15817 | 250 void gnt_wm_move_window(GntWM *wm, GntWidget *widget, int x, int y); |
251 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
252 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
253 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
254 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
255 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
256 */ |
15817 | 257 void gnt_wm_update_window(GntWM *wm, GntWidget *widget); |
258 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
259 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
260 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
261 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
262 * @param widget |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
263 */ |
15817 | 264 void gnt_wm_raise_window(GntWM *wm, GntWidget *widget); |
265 | |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
266 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
267 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
268 * @param wm |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
269 * @param set |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
270 */ |
16281
82b6fdd899a9
Dialogs opened resulting from a mouse-click should fain focus.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15981
diff
changeset
|
271 void gnt_wm_set_event_stack(GntWM *wm, gboolean set); |
82b6fdd899a9
Dialogs opened resulting from a mouse-click should fain focus.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15981
diff
changeset
|
272 |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
273 void gnt_wm_copy_win(GntWidget *widget, GntNode *node); |
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
274 |
18049
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
275 /** |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
276 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
277 * |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
278 * @return |
1cedd520cd18
Doxygen skeleton and license info for gnt files.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16281
diff
changeset
|
279 */ |
15817 | 280 time_t gnt_wm_get_idle_time(void); |
281 | |
282 G_END_DECLS | |
17698
56d2ae9cbb5c
Initial workspace support. refs #51
Richard Nelson <wabz@pidgin.im>
parents:
16281
diff
changeset
|
283 #endif |