]>
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
35 int alpha
[TASK_STATE_COUNT
];
36 int saturation
[TASK_STATE_COUNT
];
37 int brightness
[TASK_STATE_COUNT
];
39 Background
* background
[TASK_STATE_COUNT
];
40 int config_background_mask
;
41 // starting position for text ~ task_padding + task_border + icon_size
42 double text_posx
, text_height
;
45 PangoFontDescription
*font_desc
;
46 Color font
[TASK_STATE_COUNT
];
54 // always start with area
57 // TODO: group task with list of windows here
61 Imlib_Image icon
[TASK_STATE_COUNT
];
62 Pixmap state_pix
[TASK_STATE_COUNT
];
63 unsigned int icon_width
;
64 unsigned int icon_height
;
70 Task
*add_task (Window win
);
71 void remove_task (Task
*tsk
);
73 void draw_task (void *obj
, cairo_t
*c
);
74 void on_change_task (void *obj
);
76 void get_icon (Task
*tsk
);
77 int get_title(Task
*tsk
);
79 void set_task_state(Task
* tsk
, int state
);
80 void set_task_redraw(Task
* tsk
);
82 Task
*find_active_task(Task
*current_task
, Task
*active_task
);
83 Task
*next_task (Task
*tsk
);
84 Task
*prev_task (Task
*tsk
);
86 void add_urgent(Task
*tsk
);
87 void del_urgent(Task
*tsk
);
This page took 0.035479 seconds and 4 git commands to generate.