]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
fixed bugs with new design (first step)
[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 "common.h"
13
14
15 // --------------------------------------------------
16 // global task parameter
17 typedef struct {
18 Area area;
19 Area area_active;
20 Area area_inactive;
21
22 int text;
23 int icon;
24 int icon_size1;
25 int centered;
26 int maximum_width;
27 int font_shadow;
28 // icon position
29 int icon_posy;
30 // starting position for text ~ task_padding + task_border + icon_size
31 double text_posx, text_posy;
32 PangoFontDescription *font_desc;
33 config_color font;
34 config_color font_active;
35 } Global_task;
36
37
38
39 // --------------------------------------------------
40 // task parameter
41 typedef struct {
42 // always start with area
43 Area area;
44 Area area_active;
45 Area area_inactive;
46
47 // TODO: group task with list of windows here
48 Window win;
49 long *icon_data;
50 int icon_width;
51 int icon_height;
52 char *title;
53 } Task;
54
55
56 Global_task g_task;
57
58
59 void add_task (Window win);
60 void remove_task (Task *tsk);
61
62 int draw_foreground_task (void *obj, cairo_t *c);
63
64 void get_icon (Task *tsk);
65 void get_title(Task *tsk);
66
67 #endif
68
This page took 0.03759 seconds and 5 git commands to generate.