]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
fixed bug with "task on all desktop" (issue 39), fixed memory corruption
[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 icon_size1;
23 int centered;
24 int maximum_width;
25 int font_shadow;
26 // icon position
27 int icon_posy;
28 // starting position for text ~ task_padding + task_border + icon_size
29 double text_posx, text_posy;
30 PangoFontDescription *font_desc;
31 config_color font;
32 config_color font_active;
33 } Global_task;
34
35
36
37 // --------------------------------------------------
38 // task parameter
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 long *icon_data;
46 int icon_width;
47 int icon_height;
48 char *title;
49 int all_desktop;
50 } Task;
51
52
53 Global_task g_task;
54
55
56 void add_task (Window win);
57 void remove_task (Task *tsk);
58
59 void draw_foreground_task (void *obj, cairo_t *c, int active);
60
61 void get_icon (Task *tsk);
62 void get_title(Task *tsk);
63
64 #endif
65
This page took 0.040721 seconds and 5 git commands to generate.