Mercurial > hg > wabletios
view button.h @ 0:c667dfe12d47
OK. Ther real deal.
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Mon, 19 Nov 2012 13:00:42 +0000 |
parents | |
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