Root/src/buttonbox.h

Source at commit 73ceffa51d3450d2d20ce933e7fc6da187e09fc8 created 7 years 5 months ago.
By Maarten ter Huurne, Fix bug in section directory creation method
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