Root/src/buttonbox.h

1#ifndef __BUTTONBOX_H__
2#define __BUTTONBOX_H__
3
4#include "iconbutton.h"
5
6#include <memory>
7#include <vector>
8
9class GMenu2X;
10class Surface;
11
12class ButtonBox
13{
14public:
15    void add(std::unique_ptr<IconButton> button);
16    void clear();
17
18    void paint(Surface& s, int x, int y);
19
20private:
21    std::vector<std::unique_ptr<IconButton>> buttons;
22};
23
24#endif
25

Archive Download this file



interactive