comparison finch/libgnt/gntws.h @ 17699:97802d3f3f1f

Forgot these...
author Richard Nelson <wabz@pidgin.im>
date Fri, 27 Apr 2007 12:56:59 +0000
parents
children 596c970076df
comparison
equal deleted inserted replaced
17698:56d2ae9cbb5c 17699:97802d3f3f1f
1 #ifndef GNTWS_H
2 #define GNTWS_H
3
4 #include "gntwidget.h"
5
6 #include <panel.h>
7
8 #define GNT_TYPE_WS (gnt_ws_get_gtype())
9 #define GNT_WS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WS, GntWS))
10 #define GNT_IS_WS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WS))
11 #define GNT_IS_WS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WS))
12 #define GNT_WS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WS, GntWSClass))
13
14 typedef struct _GntWS GntWS;
15
16 struct _GntWS
17 {
18 GntBindable inherit;
19 gchar *name;
20 GList *list;
21 GList *ordered;
22 gpointer ui_data;
23
24 void *res1;
25 void *res2;
26 void *res3;
27 void *res4;
28 };
29
30 typedef struct _GntWSClass GntWSClass;
31
32 struct _GntWSClass
33 {
34 GntBindableClass parent;
35
36 void (*draw_taskbar)(GntWS *ws, gboolean );
37
38 void (*res1)(void);
39 void (*res2)(void);
40 void (*res3)(void);
41 void (*res4)(void);
42 };
43
44 G_BEGIN_DECLS
45
46 GType gnt_ws_get_gtype(void);
47
48 void gnt_ws_set_name(GntWS *, const gchar *);
49 void gnt_ws_add_widget(GntWS *, GntWidget *);
50 void gnt_ws_remove_widget(GntWS *, GntWidget *);
51 void gnt_ws_widget_hide(GntWidget *, GHashTable *nodes);
52 void gnt_ws_widget_show(GntWidget *, GHashTable *nodes);
53 void gnt_ws_draw_taskbar(GntWS *, gboolean reposition);
54 void gnt_ws_hide(GntWS *, GHashTable *);
55 void gnt_ws_show(GntWS *, GHashTable *);
56
57 #endif