#ifndef _SUPERBAR_H_
#define _SUPERBAR_H_

#include "ImgWrap.h"
#include "Bar.h"

class SuperBar : public Bar{
    protected:
	Imlib_Filter colorFilter;
	Imlib_Filter fAlfaUnfocus;
	_font font;

	int drawfont;

	_image font_restore;
	int rest_x, rest_y, rest_w, rest_h;

	/* Icon selection */
	/* 0: none 1: hovered, 2: others, 3: all */
	int filtSel;

	int filtRed;
	int filtGreen;
	int filtBlue;
	int filtAlfa;

	/* Alfa */
	int unfocusAlfa;
	int barAlfa;

	void unfocus();

	void initFilters();

	void render();
	void cleanBack();

    public:
	SuperBar(XWin *win, std::string barImg, std::string barFont, int iSize, int iDist, 
		float zFactor, float jFactor, int bOrient, int bPosition, int nAnim,
		int barAlfa, int unfocusAlfa, int filtSel, unsigned int filtCol, bool dfont, int offset, bool grow);

	~SuperBar();

	void addIcon(std::string path, std::string comm, std::string text, 
		unsigned long winid, unsigned char *icondata, int iw, int ih,
		int refl_size);
	void removeIcon();
};


#endif /* _SUPERBAR_H_ */
