2010-05-03 23:21:36 +03:00
|
|
|
#ifndef __BUTTONBOX_H__
|
|
|
|
#define __BUTTONBOX_H__
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class GMenu2X;
|
2013-08-12 23:17:26 +03:00
|
|
|
class IconButton;
|
2014-01-16 02:03:15 +02:00
|
|
|
class Surface;
|
2010-05-03 23:21:36 +03:00
|
|
|
|
|
|
|
class ButtonBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ButtonBox(GMenu2X *gmenu2x);
|
|
|
|
~ButtonBox();
|
|
|
|
|
2013-08-12 23:17:26 +03:00
|
|
|
void add(IconButton *button);
|
2011-09-15 21:12:02 +03:00
|
|
|
void clear();
|
2010-05-03 23:21:36 +03:00
|
|
|
|
2014-08-10 05:26:59 +03:00
|
|
|
void paint(Surface& s, unsigned int posX);
|
2010-05-03 23:21:36 +03:00
|
|
|
void handleTS();
|
|
|
|
|
2013-08-12 23:17:26 +03:00
|
|
|
private:
|
|
|
|
std::vector<IconButton*> buttons;
|
2010-05-03 23:21:36 +03:00
|
|
|
GMenu2X *gmenu2x;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|