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