]>
Dogcows Code - chaz/tint2/blob - task.h
9e637588dc94d9da5cbd5c767b1978002ae2d1ff
1 /**************************************************************************
5 **************************************************************************/
11 #include <pango/pangocairo.h>
16 enum { TASK_NORMAL
, TASK_ACTIVE
, TASK_ICONIFIED
, TASK_URGENT
, TASK_STATE_COUNT
};
18 // --------------------------------------------------
19 // global task parameter
31 int alpha
[TASK_STATE_COUNT
];
32 int saturation
[TASK_STATE_COUNT
];
33 int brightness
[TASK_STATE_COUNT
];
35 Background
* background
[TASK_STATE_COUNT
];
36 int config_background_mask
;
37 // starting position for text ~ task_padding + task_border + icon_size
38 double text_posx
, text_posy
;
41 PangoFontDescription
*font_desc
;
42 Color font
[TASK_STATE_COUNT
];
49 // always start with area
52 // TODO: group task with list of windows here
56 Imlib_Image icon
[TASK_STATE_COUNT
];
57 Pixmap state_pix
[TASK_STATE_COUNT
];
58 unsigned int icon_width
;
59 unsigned int icon_height
;
65 Task
*add_task (Window win
);
66 void remove_task (Task
*tsk
);
68 void draw_task (void *obj
, cairo_t
*c
);
70 void get_icon (Task
*tsk
);
71 void get_title(Task
*tsk
);
73 void set_task_state(Task
* tsk
, int state
);
74 void set_task_redraw(Task
* tsk
);
76 Task
*next_task (Task
*tsk
);
77 Task
*prev_task (Task
*tsk
);
79 void add_urgent(Task
*tsk
);
80 void del_urgent(Task
*tsk
);
This page took 0.040771 seconds and 3 git commands to generate.