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