finch/libgnt/gntws.h

Mon, 01 Oct 2007 16:07:14 +0000

author
Will Thompson <resiak@pidgin.im>
date
Mon, 01 Oct 2007 16:07:14 +0000
branch
cpw.resiak.disconnectreason
changeset 20452
a9fc6198b5c6
parent 19859
71d37b57eff2
child 20939
13dd02add7c1
permissions
-rw-r--r--

Add disconnection reasons to oscar.

18358
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
1 /**
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
2 * @file gntws.h Workspace API
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
3 * @ingroup gnt
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
4 */
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
5 /*
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
6 * GNT - The GLib Ncurses Toolkit
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
7 *
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
8 * GNT is the legal property of its developers, whose names are too numerous
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
10 * source distribution.
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
11 *
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
12 * This library is free software; you can redistribute it and/or modify
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
13 * it under the terms of the GNU General Public License as published by
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
15 * (at your option) any later version.
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
16 *
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
17 * This program is distributed in the hope that it will be useful,
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
20 * GNU General Public License for more details.
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
21 *
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
22 * You should have received a copy of the GNU General Public License
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
23 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 18826
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
18358
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
25 */
2122fd567315 Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18137
diff changeset
26
16520
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
27 #ifndef GNTWS_H
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
28 #define GNTWS_H
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
29
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
30 #include "gntwidget.h"
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
31
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
32 #include <panel.h>
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
33
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
34 #define GNT_TYPE_WS (gnt_ws_get_gtype())
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
35 #define GNT_WS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WS, GntWS))
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
36 #define GNT_IS_WS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WS))
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
37 #define GNT_IS_WS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WS))
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
38 #define GNT_WS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WS, GntWSClass))
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
39
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
40 typedef struct _GntWS GntWS;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
41
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
42 struct _GntWS
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
43 {
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
44 GntBindable inherit;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
45 gchar *name;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
46 GList *list;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
47 GList *ordered;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
48 gpointer ui_data;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
49
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
50 void *res1;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
51 void *res2;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
52 void *res3;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
53 void *res4;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
54 };
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
55
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
56 typedef struct _GntWSClass GntWSClass;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
57
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
58 struct _GntWSClass
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
59 {
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
60 GntBindableClass parent;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
61
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
62 void (*draw_taskbar)(GntWS *ws, gboolean );
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
63
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
64 void (*res1)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
65 void (*res2)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
66 void (*res3)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
67 void (*res4)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
68 };
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
69
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
70 G_BEGIN_DECLS
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
71
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
72 GType gnt_ws_get_gtype(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
73
18137
a8c54ed05eee F9 to create a new workspace.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16523
diff changeset
74 GntWS *gnt_ws_new(const char *name);
18826
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
75 void gnt_ws_set_name(GntWS *ws, const gchar *name);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
76 void gnt_ws_add_widget(GntWS *ws, GntWidget *widget);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
77 void gnt_ws_remove_widget(GntWS *ws, GntWidget *widget);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
78 void gnt_ws_widget_hide(GntWidget *widget, GHashTable *nodes);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
79 void gnt_ws_widget_show(GntWidget *widget, GHashTable *nodes);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
80 void gnt_ws_draw_taskbar(GntWS *ws, gboolean reposition);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
81 void gnt_ws_hide(GntWS *ws, GHashTable *table);
a276583c694c Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 18358
diff changeset
82 void gnt_ws_show(GntWS *ws, GHashTable *table);
16520
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
83
16523
d774ca89d340 Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16520
diff changeset
84 const char * gnt_ws_get_name(GntWS *ws);
d774ca89d340 Alt+s to see the list of workspaces and windows.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16520
diff changeset
85
16520
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
86 #endif

mercurial