rt300@0: // rt300@0: // UIGrid.cpp rt300@0: // emptyExample rt300@0: // rt300@0: // Created by Robert Tubb on 22/05/2013. rt300@0: // rt300@0: // rt300@0: rt300@0: #include "UIGrid.h" rt300@0: rt300@0: rt300@0: rt300@0: template void UIGrid::print(){ rt300@0: cout << "uh \n"; rt300@0: } rt300@0: rt300@0: template UIGrid::UIGrid(int ax,int ay, int awidth, int aheight, int numColumns,int numRows, int spacing,ofColor hi, ofColor lo, ofColor bg) rt300@0: { rt300@0: rt300@0: // grid of what ? rt300@0: double cw = width/(double)numColumns; rt300@0: double ch = height/(double)numRows; rt300@0: rt300@0: double eWidth = cw - spacing; rt300@0: double eHeight = ch - spacing; rt300@0: double ex,ey; rt300@0: double radius = (eWidth < eHeight ? eWidth : eHeight)/6.0; rt300@0: double thickness = radius; rt300@0: for(int i=0; i< numColumns; i++){ rt300@0: ex = x + i*cw + spacing/2.0; rt300@0: for(int j=0; j