Mercurial > hg > tweakathon2ios
view UI code/buttonPanel.h @ 38:fea11c3d1d94
tweaking endlessly
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Thu, 04 Dec 2014 17:03:01 +0000 |
parents | a223551fdc1f |
children | 2bd658b44c2d |
line wrap: on
line source
// // buttonPanel.h // tweakathlon // // Created by Robert Tubb on 11/02/2014. // // #ifndef __tweakathlon__buttonPanel__ #define __tweakathlon__buttonPanel__ #include <iostream> #include <iostream> #include "UIElementContainer.h" #include <iostream> #include "globalVariables.h" #include "ofMain.h" #include "UIElement.h" #include "boost/bind.hpp" #include "boost/function.hpp" #include "timeController.h" #include "ButtronSlider.h" #include "ButtronXY.h" #include "Buttron.h" // a row of buttons, spaced out nicely class ButtonPanel : public UIElementContainer{ public: ButtonPanel(float ax, float ay, float awidth, float aheight, const UIProps& aprops, vector<controllerType> elemList); ButtonPanel(float ax, float ay, float awidth, float aheight, const UIProps& aprops); vector<UIElement*> generateControls(vector<controllerType> elemList); void addButton(Buttron* aButton){ subElements.push_back(aButton); autoArrangeRow(); } }; #endif /* defined(__tweakathlon__buttonPanel__) */