Mercurial > pidgin
comparison finch/libgnt/gntwm.h @ 19174:974f9298814c
propagate from branch 'im.pidgin.pidgin.2.1.0' (head 1b855097a1f8ddde513bda1e81761c8d8455f931)
to branch 'im.pidgin.soc.2007.finchfeat' (head 547aba29502f4db0b429e29c831c88b06270862e)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 02:38:56 +0000 |
parents | 5e1412f4e67a |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
19097:7ee44399f2ea | 19174:974f9298814c |
---|---|
1 /** | 1 /** |
2 * @file gntwm.h Window-manager API | |
3 * @ingroup gnt | |
4 */ | |
5 /* | |
2 * GNT - The GLib Ncurses Toolkit | 6 * GNT - The GLib Ncurses Toolkit |
3 * | 7 * |
4 * GNT is the legal property of its developers, whose names are too numerous | 8 * GNT is the legal property of its developers, whose names are too numerous |
5 * to list here. Please refer to the COPYRIGHT file distributed with this | 9 * to list here. Please refer to the COPYRIGHT file distributed with this |
6 * source distribution. | 10 * source distribution. |
35 #define GNT_WM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_WM, GntWMClass)) | 39 #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)) | 40 #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)) | 41 #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)) | 42 #define GNT_WM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WM, GntWMClass)) |
39 | 43 |
40 typedef enum | 44 typedef enum _GntKeyPressMode |
41 { | 45 { |
42 GNT_KP_MODE_NORMAL, | 46 GNT_KP_MODE_NORMAL, |
43 GNT_KP_MODE_RESIZE, | 47 GNT_KP_MODE_RESIZE, |
44 GNT_KP_MODE_MOVE, | 48 GNT_KP_MODE_MOVE, |
49 GNT_KP_MODE_WAIT_ON_CHILD | |
45 } GntKeyPressMode; | 50 } GntKeyPressMode; |
46 | 51 |
47 typedef struct | 52 typedef struct _GntNode |
48 { | 53 { |
49 GntWidget *me; | 54 GntWidget *me; |
50 | 55 |
51 WINDOW *window; | 56 WINDOW *window; |
52 int scroll; | 57 int scroll; |
163 /* List of windows. Although the WM can keep a list of its own for the windows, | 168 /* 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. | 169 * it'd be better if there was a way to share between the 'core' and the WM. |
165 */ | 170 */ |
166 /*GList *(*window_list)();*/ | 171 /*GList *(*window_list)();*/ |
167 | 172 |
173 /* This is invoked whenever the terminal window is resized, or the | |
174 * screen session is attached to a new terminal. (ie, from the | |
175 * SIGWINCH callback) | |
176 */ | |
177 void (*terminal_refresh)(GntWM *wm); | |
178 | |
168 void (*res1)(void); | 179 void (*res1)(void); |
169 void (*res2)(void); | 180 void (*res2)(void); |
170 void (*res3)(void); | 181 void (*res3)(void); |
171 void (*res4)(void); | |
172 }; | 182 }; |
173 | 183 |
174 G_BEGIN_DECLS | 184 G_BEGIN_DECLS |
175 | 185 |
176 /** | 186 /** |