]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
lower cpu use with icon. replace HUE by ALPHA on icon (see task_icon_asb).
[chaz/tint2] / src / taskbar / task.h
1 /**************************************************************************
2 * task :
3 * -
4 *
5 **************************************************************************/
6
7 #ifndef TASK_H
8 #define TASK_H
9
10 #include <X11/Xlib.h>
11 #include <pango/pangocairo.h>
12 #include <Imlib2.h>
13 #include "common.h"
14
15
16 // --------------------------------------------------
17 // global task parameter
18 typedef struct {
19 Area area;
20
21 int text;
22 int icon;
23 int centered;
24
25 int icon_posy;
26 int icon_size1;
27 int maximum_width;
28 int maximum_height;
29 int alpha, saturation, brightness;
30 int alpha_active, saturation_active, brightness_active;
31 // starting position for text ~ task_padding + task_border + icon_size
32 double text_posx, text_posy;
33
34 int font_shadow;
35 PangoFontDescription *font_desc;
36 config_color font;
37 config_color font_active;
38 } Global_task;
39
40
41
42 typedef struct {
43 // always start with area
44 Area area;
45
46 // TODO: group task with list of windows here
47 Window win;
48 int desktop;
49 Imlib_Image icon;
50 Imlib_Image icon_active;
51 unsigned int icon_width;
52 unsigned int icon_height;
53 char *title;
54 } Task;
55
56
57
58 Task *add_task (Window win);
59 void remove_task (Task *tsk);
60
61 void draw_task (void *obj, cairo_t *c, int active);
62
63 void get_icon (Task *tsk);
64 void get_title(Task *tsk);
65
66
67 #endif
68
This page took 0.040967 seconds and 5 git commands to generate.