rt300@0: // rt300@0: // UIGrid.h rt300@0: // emptyExample rt300@0: // rt300@0: // Created by Robert Tubb on 22/05/2013. rt300@0: // rt300@0: // rt300@0: rt300@0: #ifndef __emptyExample__UIGrid__ rt300@0: #define __emptyExample__UIGrid__ rt300@0: #include "ofMain.h" rt300@0: #include "Buttron.h" // no rt300@0: #include "UIElement.h" rt300@0: #include "UIElementContainer.h" rt300@0: #include rt300@0: rt300@0: template rt300@0: class UIGrid: public UIElementContainer{ rt300@0: public: rt300@0: int rows; rt300@0: int columns; rt300@0: int spacing; rt300@0: // too fuckin long rt300@0: UIGrid(int ax,int ay, int awidth, int aheight, int numRows, int numColumns, int spacing,ofColor hi, ofColor lo, ofColor bg); rt300@0: vector > subElementsByCoordinate; rt300@0: rt300@0: // draw and touch all handled by UIElementContainer... rt300@0: rt300@0: void print(); rt300@0: rt300@0: }; rt300@0: #endif /* defined(__emptyExample__UIGrid__) */