]> Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
big change : panel_monitor = all will draw one panel per monitor, panel_size accept...
[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 // starting position for text ~ task_padding + task_border + icon_size
28 double text_posx, text_posy;
29
30 int font_shadow;
31 PangoFontDescription *font_desc;
32 config_color font;
33 config_color font_active;
34 } Global_task;
35
36
37
38 typedef struct {
39 // always start with area
40 Area area;
41
42 // TODO: group task with list of windows here
43 Window win;
44 int desktop;
45 long *icon_data;
46 int icon_width;
47 int icon_height;
48 char *title;
49 } Task;
50
51
52
53 void add_task (Window win);
54 void remove_task (Task *tsk);
55
56 void draw_foreground_task (void *obj, cairo_t *c, int active);
57
58 void get_icon (Task *tsk);
59 void get_title(Task *tsk);
60
61
62 #endif
63
This page took 0.037924 seconds and 5 git commands to generate.