]>
Dogcows Code - chaz/tint2/blob - taskbar/task.h
1 /**************************************************************************
5 **************************************************************************/
11 #include <pango/pangocairo.h>
17 enum { TASK_NORMAL
, TASK_ACTIVE
, TASK_ICONIFIED
, TASK_URGENT
, TASK_STATE_COUNT
};
18 extern timeout
* urgent_timeout
;
19 extern GSList
* urgent_list
;
21 // --------------------------------------------------
22 // global task parameter
34 int alpha
[TASK_STATE_COUNT
];
35 int saturation
[TASK_STATE_COUNT
];
36 int brightness
[TASK_STATE_COUNT
];
38 Background
* background
[TASK_STATE_COUNT
];
39 int config_background_mask
;
40 // starting position for text ~ task_padding + task_border + icon_size
41 double text_posx
, text_height
;
44 PangoFontDescription
*font_desc
;
45 Color font
[TASK_STATE_COUNT
];
53 // always start with area
56 // TODO: group task with list of windows here
60 Imlib_Image icon
[TASK_STATE_COUNT
];
61 Pixmap state_pix
[TASK_STATE_COUNT
];
62 unsigned int icon_width
;
63 unsigned int icon_height
;
69 Task
*add_task (Window win
);
70 void remove_task (Task
*tsk
);
72 void draw_task (void *obj
, cairo_t
*c
);
73 void on_change_task (void *obj
);
75 void get_icon (Task
*tsk
);
76 int get_title(Task
*tsk
);
78 void set_task_state(Task
* tsk
, int state
);
79 void set_task_redraw(Task
* tsk
);
81 Task
*find_active_task(Task
*current_task
, Task
*active_task
);
82 Task
*next_task (Task
*tsk
);
83 Task
*prev_task (Task
*tsk
);
85 void add_urgent(Task
*tsk
);
86 void del_urgent(Task
*tsk
);
This page took 0.036271 seconds and 4 git commands to generate.