2010-05-03 23:21:36 +03:00
|
|
|
#ifndef __BUTTONBOX_H__
|
|
|
|
#define __BUTTONBOX_H__
|
|
|
|
|
2014-08-16 00:52:48 +03:00
|
|
|
#include "iconbutton.h"
|
|
|
|
|
|
|
|
#include <memory>
|
2010-05-03 23:21:36 +03:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class GMenu2X;
|
2014-01-16 02:03:15 +02:00
|
|
|
class Surface;
|
2010-05-03 23:21:36 +03:00
|
|
|
|
|
|
|
class ButtonBox
|
|
|
|
{
|
|
|
|
public:
|
2014-08-16 00:52:48 +03:00
|
|
|
void add(std::unique_ptr<IconButton> button);
|
2011-09-15 21:12:02 +03:00
|
|
|
void clear();
|
2010-05-03 23:21:36 +03:00
|
|
|
|
2014-08-16 06:47:48 +03:00
|
|
|
void paint(Surface& s, int x, int y);
|
2010-05-03 23:21:36 +03:00
|
|
|
void handleTS();
|
|
|
|
|
2013-08-12 23:17:26 +03:00
|
|
|
private:
|
2014-08-16 06:25:23 +03:00
|
|
|
std::vector<std::unique_ptr<IconButton>> buttons;
|
2010-05-03 23:21:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|