]>
Dogcows Code - chaz/tint2/blob - src/taskbar/task.h
1 /**************************************************************************
5 **************************************************************************/
11 #include <pango/pangocairo.h>
17 enum { TASK_NORMAL
, TASK_ACTIVE
, TASK_ICONIFIED
, TASK_URGENT
, TASK_STATE_COUNT
};
18 extern timeout
* urgent_timeout
;
19 extern GSList
* urgent_list
;
21 // --------------------------------------------------
22 // global task parameter
34 int alpha
[TASK_STATE_COUNT
];
35 int saturation
[TASK_STATE_COUNT
];
36 int brightness
[TASK_STATE_COUNT
];
38 Background
* background
[TASK_STATE_COUNT
];
39 int config_background_mask
;
40 // starting position for text ~ task_padding + task_border + icon_size
41 double text_posx
, text_height
;
44 PangoFontDescription
*font_desc
;
45 Color font
[TASK_STATE_COUNT
];
52 // always start with area
55 // TODO: group task with list of windows here
59 Imlib_Image icon
[TASK_STATE_COUNT
];
60 Pixmap state_pix
[TASK_STATE_COUNT
];
61 unsigned int icon_width
;
62 unsigned int icon_height
;
68 Task
*add_task (Window win
);
69 void remove_task (Task
*tsk
);
71 void draw_task (void *obj
, cairo_t
*c
);
73 void get_icon (Task
*tsk
);
74 void get_title(Task
*tsk
);
76 void set_task_state(Task
* tsk
, int state
);
77 void set_task_redraw(Task
* tsk
);
79 Task
*next_task (Task
*tsk
);
80 Task
*prev_task (Task
*tsk
);
82 void add_urgent(Task
*tsk
);
83 void del_urgent(Task
*tsk
);
This page took 0.038422 seconds and 4 git commands to generate.