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