view UI code/UIGrid.h @ 28:953db6518738

leap version more or less there, needs btter results feedback but thats detail. "no movement" bit is stupid cos peopel can move their hand. light flash not work.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 30 Oct 2014 18:35:00 +0000
parents a223551fdc1f
children
line wrap: on
line source
//
//  UIGrid.h
//  emptyExample
//
//  Created by Robert Tubb on 22/05/2013.
//
//

#ifndef __emptyExample__UIGrid__
#define __emptyExample__UIGrid__
#include "ofMain.h"
#include "Buttron.h" // no
#include "UIElement.h"
#include "UIElementContainer.h"
#include <iostream>

template<class T>
class UIGrid: public UIElementContainer{
public:
    int rows;
    int columns;
    int spacing;
    // too fuckin long
    UIGrid(int ax,int ay, int awidth, int aheight, int numRows, int numColumns, int spacing,ofColor hi, ofColor lo, ofColor bg);
    vector<vector<UIElement *> > subElementsByCoordinate;
    
    // draw and touch all handled by UIElementContainer...
    
    void print();
    
};
#endif /* defined(__emptyExample__UIGrid__) */