Root/
Source at commit 00d3c3b57008bddf8770c51271db9d766acaf854 created 8 years 11 months ago. By Maarten ter Huurne, Gave Layer class a protected constructor | |
---|---|
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