]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/task.h
Scrolling through tasks by schattenprinz
[chaz/tint2] / src / taskbar / task.h
index f0cefe2a705054a968ad28d3561661c607bf6863..6bb9ef3c22e25501b8f86fc15bcbb33d415da3ea 100644 (file)
@@ -26,8 +26,8 @@ typedef struct {
        int icon_size1;
        int maximum_width;
        int maximum_height;
-   int hue, saturation, brightness;
-   int hue_active, saturation_active, brightness_active;
+       int alpha, saturation, brightness;
+       int alpha_active, saturation_active, brightness_active;
        // starting position for text ~ task_padding + task_border + icon_size
        double text_posx, text_posy;
 
@@ -46,15 +46,20 @@ typedef struct {
        // TODO: group task with list of windows here
        Window win;
        int  desktop;
-       // ARGB icon
-       unsigned int *icon_data;
-       unsigned int *icon_data_active;
+       Imlib_Image icon;
+       Imlib_Image icon_active;
        unsigned int icon_width;
        unsigned int icon_height;
        char *title;
 } Task;
 
 
+typedef struct {
+       Task* tsk;
+       int tick;
+} Task_urgent;
+
+
 
 Task *add_task (Window win);
 void remove_task (Task *tsk);
@@ -63,7 +68,14 @@ void draw_task (void *obj, cairo_t *c, int active);
 
 void get_icon (Task *tsk);
 void get_title(Task *tsk);
+void active_task();
+
+Task *next_task (Task *tsk);
+Task *prev_task (Task *tsk);
 
+void add_urgent(Task *tsk);
+void del_urgent(Task *tsk);
+int is_urgent(Task *tsk);
 
 #endif
 
This page took 0.022011 seconds and 4 git commands to generate.