Mercurial > hg > wabletios
view button.h @ 13:426d645d8e69
Changed max min audio, saving now saves rest lump positions.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 26 Jun 2013 17:23:30 +0100 |
parents | c667dfe12d47 |
children |
line wrap: on
line source
// // button.h // Wablet // // Created by Robert Tubb on 19/03/2012. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #ifndef Wablet_button_h #define Wablet_button_h #include <iostream> #include "ofMain.h" #include "mesh.h" #include "uifunctor.h" class testApp; class ControlButton{ public: ofColor bcolor, hicolor; bool pressed; int width, height, xpos, ypos; std::string name; Mesh *theMesh; int buttonId; ControlButton(int abuttonId,int awidth,int aheight,int axpos,int aypos, std::string aname, Mesh *atheMeshPtr, ofColor acolor); ~ControlButton(); void passCallBack(UIFunctor callBack); void draw(); bool checkTouchArea(int axpos,int aypos); void press(); void release(); }; #endif