00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef GNTWS_H
00028 #define GNTWS_H
00029
00030 #include "gntwidget.h"
00031
00032 #include <panel.h>
00033
00034 #define GNT_TYPE_WS (gnt_ws_get_gtype())
00035 #define GNT_WS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_WS, GntWS))
00036 #define GNT_IS_WS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_WS))
00037 #define GNT_IS_WS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_WS))
00038 #define GNT_WS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_WS, GntWSClass))
00039
00040 typedef struct _GntWS GntWS;
00041
00042 struct _GntWS
00043 {
00044 GntBindable inherit;
00045 gchar *name;
00046 GList *list;
00047 GList *ordered;
00048 gpointer ui_data;
00049
00050 void *res1;
00051 void *res2;
00052 void *res3;
00053 void *res4;
00054 };
00055
00056 typedef struct _GntWSClass GntWSClass;
00057
00058 struct _GntWSClass
00059 {
00060 GntBindableClass parent;
00061
00062 void (*draw_taskbar)(GntWS *ws, gboolean );
00063
00064 void (*res1)(void);
00065 void (*res2)(void);
00066 void (*res3)(void);
00067 void (*res4)(void);
00068 };
00069
00070 G_BEGIN_DECLS
00071
00072 GType gnt_ws_get_gtype(void);
00073
00074 GntWS *gnt_ws_new(const char *name);
00075 void gnt_ws_set_name(GntWS *ws, const gchar *name);
00076 void gnt_ws_add_widget(GntWS *ws, GntWidget *widget);
00077 void gnt_ws_remove_widget(GntWS *ws, GntWidget *widget);
00078 void gnt_ws_widget_hide(GntWidget *widget, GHashTable *nodes);
00079 void gnt_ws_widget_show(GntWidget *widget, GHashTable *nodes);
00080 void gnt_ws_draw_taskbar(GntWS *ws, gboolean reposition);
00081 void gnt_ws_hide(GntWS *ws, GHashTable *table);
00082 void gnt_ws_show(GntWS *ws, GHashTable *table);
00083
00084 const char * gnt_ws_get_name(GntWS *ws);
00085
00086 #endif