finch/libgnt/gntws.h

Fri, 27 Apr 2007 12:56:59 +0000

author
Richard Nelson <wabz@pidgin.im>
date
Fri, 27 Apr 2007 12:56:59 +0000
branch
finch.workspaces
changeset 16520
18efc8fca905
child 16523
d774ca89d340
permissions
-rw-r--r--

Forgot these...

16520
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
1 #ifndef GNTWS_H
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
2 #define GNTWS_H
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
3
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
4 #include "gntwidget.h"
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
5
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
6 #include <panel.h>
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
7
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
8 #define GNT_TYPE_WS (gnt_ws_get_gtype())
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
9 #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
10 #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
11 #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
12 #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
13
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
14 typedef struct _GntWS GntWS;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
15
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
16 struct _GntWS
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
17 {
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
18 GntBindable inherit;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
19 gchar *name;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
20 GList *list;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
21 GList *ordered;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
22 gpointer ui_data;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
23
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
24 void *res1;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
25 void *res2;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
26 void *res3;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
27 void *res4;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
28 };
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
29
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
30 typedef struct _GntWSClass GntWSClass;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
31
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
32 struct _GntWSClass
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
33 {
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
34 GntBindableClass parent;
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
35
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
36 void (*draw_taskbar)(GntWS *ws, gboolean );
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
37
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
38 void (*res1)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
39 void (*res2)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
40 void (*res3)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
41 void (*res4)(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
42 };
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
43
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
44 G_BEGIN_DECLS
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
45
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
46 GType gnt_ws_get_gtype(void);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
47
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
48 void gnt_ws_set_name(GntWS *, const gchar *);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
49 void gnt_ws_add_widget(GntWS *, GntWidget *);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
50 void gnt_ws_remove_widget(GntWS *, GntWidget *);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
51 void gnt_ws_widget_hide(GntWidget *, GHashTable *nodes);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
52 void gnt_ws_widget_show(GntWidget *, GHashTable *nodes);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
53 void gnt_ws_draw_taskbar(GntWS *, gboolean reposition);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
54 void gnt_ws_hide(GntWS *, GHashTable *);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
55 void gnt_ws_show(GntWS *, GHashTable *);
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
56
18efc8fca905 Forgot these...
Richard Nelson <wabz@pidgin.im>
parents:
diff changeset
57 #endif

mercurial