summaryrefslogtreecommitdiff
path: root/src/interface/DropDown.h
blob: 619ec5a3b7e46dbe57ba9ffb1ec22b4f25a696b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * DropDown.h
 *
 *  Created on: Apr 16, 2012
 *      Author: Simon
 */

#ifndef DROPDOWN_H_
#define DROPDOWN_H_

#include "Component.h"
#include "Colour.h"

namespace ui {

class DropDown: public ui::Component {
	Colour background, activeBackground;
	Colour border, activeBorder;
	Colour text, activeText;
	bool isMouseInside;
public:
	DropDown(Point position, Point size);
	virtual void Draw(const Point& screenPos);
	virtual void OnMouseClick(int x, int y, unsigned int button);
	virtual ~DropDown();
};

} /* namespace ui */
#endif /* DROPDOWN_H_ */