Mercurial > hg > tweakathon2ios
comparison UI code/buttonPanel.h @ 0:a223551fdc1f
First commit - copy from tweakathlon.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Fri, 10 Oct 2014 11:46:42 +0100 |
parents | |
children | 2bd658b44c2d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a223551fdc1f |
---|---|
1 // | |
2 // buttonPanel.h | |
3 // tweakathlon | |
4 // | |
5 // Created by Robert Tubb on 11/02/2014. | |
6 // | |
7 // | |
8 | |
9 #ifndef __tweakathlon__buttonPanel__ | |
10 #define __tweakathlon__buttonPanel__ | |
11 | |
12 #include <iostream> | |
13 #include <iostream> | |
14 #include "UIElementContainer.h" | |
15 #include <iostream> | |
16 #include "globalVariables.h" | |
17 #include "ofMain.h" | |
18 #include "UIElement.h" | |
19 #include "boost/bind.hpp" | |
20 #include "boost/function.hpp" | |
21 #include "timeController.h" | |
22 #include "ButtronSlider.h" | |
23 #include "ButtronXY.h" | |
24 #include "Buttron.h" | |
25 // a row of buttons, spaced out nicely | |
26 | |
27 class ButtonPanel : public UIElementContainer{ | |
28 | |
29 public: | |
30 ButtonPanel(float ax, | |
31 float ay, | |
32 float awidth, | |
33 float aheight, | |
34 const UIProps& aprops, | |
35 vector<controllerType> elemList); | |
36 ButtonPanel(float ax, | |
37 float ay, | |
38 float awidth, | |
39 float aheight, | |
40 const UIProps& aprops); | |
41 vector<UIElement*> generateControls(vector<controllerType> elemList); | |
42 | |
43 void addButton(Buttron* aButton){ | |
44 subElements.push_back(aButton); | |
45 autoArrangeRow(); | |
46 } | |
47 | |
48 }; | |
49 | |
50 #endif /* defined(__tweakathlon__buttonPanel__) */ |