]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
add another padding parameter in config file, update documentation and sample config...
[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 typedef struct {
38 // always start with area
39 Area area;
40
41 // TODO: group task with list of windows here
42 Window win;
43 long *icon_data;
44 int icon_width;
45 int icon_height;
46 char *title;
47 int all_desktop;
48 } Task;
49
50
51 Global_task g_task;
52
53
54 void add_task (Window win);
55 void remove_task (Task *tsk);
56
57 void draw_foreground_task (void *obj, cairo_t *c, int active);
58
59 void get_icon (Task *tsk);
60 void get_title(Task *tsk);
61
62 #endif
63
This page took 0.041943 seconds and 5 git commands to generate.