Mercurial > hg > wabletios
view button.h @ 15:d5758530a039 tip
oF0.84
Retina, and iPhone support
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 12 May 2015 15:48:52 +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