]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
*add* tooltips
[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 hue, saturation, brightness;
30 int hue_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 // ARGB icon
50 unsigned int *icon_data;
51 unsigned int *icon_data_active;
52 unsigned int icon_width;
53 unsigned int icon_height;
54 char *title;
55 } Task;
56
57
58
59 Task *add_task (Window win);
60 void remove_task (Task *tsk);
61
62 void draw_task (void *obj, cairo_t *c, int active);
63
64 void get_icon (Task *tsk);
65 void get_title(Task *tsk);
66
67
68 #endif
69
This page took 0.03919 seconds and 5 git commands to generate.