]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/taskbar.h
memorized taskbar pixmap. So we don t redraw taskbar/task when switching desktop.
[chaz/tint2] / src / taskbar / taskbar.h
index a04060c857cb7fa0bcd144760a697a3dda3d0e9c..72f0cca5134f76f179c216693b774fb2bfc2d45c 100644 (file)
 
 #include "task.h"
 
+enum { TASKBAR_NORMAL, TASKBAR_ACTIVE, TASKBAR_STATE_COUNT };
 extern GHashTable* win_to_task_table;
+extern Task *task_active;
+extern Task *task_drag;
+extern int taskbar_enabled;
+
 // tint2 use one taskbar per desktop.
 typedef struct {
        // always start with area
        Area area;
 
        int desktop;
+       int current_state;
+       Pixmap state_pix[TASKBAR_STATE_COUNT];
 
        // task parameters
-       int task_width;
-       int task_modulo;
        int text_width;
 } Taskbar;
 
@@ -28,24 +33,32 @@ typedef struct {
 typedef struct {
        //always start with area
        Area area;
-       Background* bg;
-       Background* bg_active;
-       int use_active;
+       Background* background[TASKBAR_STATE_COUNT];
+       //Background* bg;
+       //Background* bg_active;
 } Global_taskbar;
 
 
-// default values
+// default global data
 void default_taskbar();
+
 // freed memory
 void cleanup_taskbar();
 
 void init_taskbar();
+void init_taskbar_panel(void *p);
 
+void draw_taskbar (void *obj, cairo_t *c);
+void taskbar_remove_task(gpointer key, gpointer value, gpointer user_data);
 Task *task_get_task (Window win);
 GPtrArray* task_get_tasks(Window win);
 void task_refresh_tasklist ();
 
-void resize_taskbar(void *obj);
+int  resize_taskbar(void *obj);
+void set_taskbar_state(Taskbar *tskbar, int state);
+
+// show/hide taskbar according to current desktop
+void visible_taskbar(void *p);
 
 
 #endif
This page took 0.026793 seconds and 4 git commands to generate.