2009-01-20 21:16:54 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
|
|
|
|
*
|
|
|
|
* systraybar
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SYSTRAYBAR_H
|
|
|
|
#define SYSTRAYBAR_H
|
|
|
|
|
|
|
|
#include "area.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
// always start with area
|
|
|
|
Area area;
|
|
|
|
|
|
|
|
} Systraybar;
|
|
|
|
|
|
|
|
|
2009-02-10 23:16:10 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2009-02-15 17:22:48 +00:00
|
|
|
Window id;
|
|
|
|
int x, y;
|
|
|
|
|
|
|
|
Window win;
|
|
|
|
long *icon_data;
|
|
|
|
int icon_width;
|
|
|
|
int icon_height;
|
2009-02-10 23:16:10 +00:00
|
|
|
} TrayWindow;
|
2009-01-20 21:16:54 +00:00
|
|
|
|
|
|
|
|
2009-02-15 17:22:48 +00:00
|
|
|
void init_systray();
|
|
|
|
void cleanup_systray();
|
|
|
|
int net_init();
|
2009-02-10 23:16:10 +00:00
|
|
|
|
2009-01-20 21:16:54 +00:00
|
|
|
// return 1 if task_width changed
|
|
|
|
int resize_systray (Systraybar *sysbar);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|