1 #ifndef _SUPERBAR_H_
2 #define _SUPERBAR_H_
3 
4 #include "ImgWrap.h"
5 #include "Bar.h"
6 
7 class SuperBar : public Bar{
8     protected:
9 	Imlib_Filter colorFilter;
10 	Imlib_Filter fAlfaUnfocus;
11 	_font font;
12 
13 	int drawfont;
14 
15 	_image font_restore;
16 	int rest_x, rest_y, rest_w, rest_h;
17 
18 	/* Icon selection */
19 	/* 0: none 1: hovered, 2: others, 3: all */
20 	int filtSel;
21 
22 	int filtRed;
23 	int filtGreen;
24 	int filtBlue;
25 	int filtAlfa;
26 
27 	/* Alfa */
28 	int unfocusAlfa;
29 	int barAlfa;
30 
31 	void unfocus();
32 
33 	void initFilters();
34 
35 	void render();
36 	void cleanBack();
37 
38     public:
39 	SuperBar(XWin *win, std::string barImg, std::string barFont, int iSize, int iDist,
40 		float zFactor, float jFactor, int bOrient, int bPosition, int nAnim,
41 		int barAlfa, int unfocusAlfa, int filtSel, unsigned int filtCol, bool dfont, int offset, bool grow);
42 
43 	~SuperBar();
44 
45 	void addIcon(std::string path, std::string comm, std::string text,
46 		unsigned long winid, unsigned char *icondata, int iw, int ih,
47 		int refl_size);
48 	void removeIcon();
49 };
50 
51 
52 #endif /* _SUPERBAR_H_ */
53