2009-01-20 21:16:54 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
|
|
|
|
*
|
|
|
|
* taskbar
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
2008-10-02 18:47:02 +00:00
|
|
|
|
|
|
|
#ifndef TASKBAR_H
|
|
|
|
#define TASKBAR_H
|
|
|
|
|
|
|
|
#include "task.h"
|
|
|
|
|
2009-09-25 21:40:06 +00:00
|
|
|
// tint2 use one taskbar per desktop.
|
2008-10-02 18:47:02 +00:00
|
|
|
typedef struct {
|
2009-09-20 20:48:00 +00:00
|
|
|
// always start with area
|
|
|
|
Area area;
|
2008-10-02 18:47:02 +00:00
|
|
|
|
2009-09-20 20:48:00 +00:00
|
|
|
int desktop;
|
2009-01-20 21:16:54 +00:00
|
|
|
|
2009-09-20 20:48:00 +00:00
|
|
|
// task parameters
|
|
|
|
int task_width;
|
|
|
|
int task_modulo;
|
|
|
|
int text_width;
|
2008-10-02 18:47:02 +00:00
|
|
|
} Taskbar;
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-07 23:28:13 +00:00
|
|
|
void init_taskbar();
|
|
|
|
void cleanup_taskbar();
|
2008-10-02 18:47:02 +00:00
|
|
|
|
|
|
|
Task *task_get_task (Window win);
|
|
|
|
void task_refresh_tasklist ();
|
|
|
|
|
2009-02-10 23:16:10 +00:00
|
|
|
void resize_taskbar(void *obj);
|
2008-11-08 20:23:42 +00:00
|
|
|
|
2008-10-02 18:47:02 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|