rt300@6: // rt300@6: // PresetView.h rt300@6: // riftathon rt300@6: // rt300@6: // Created by Robert Tubb on 17/10/2014. rt300@6: // rt300@6: // rt300@6: rt300@6: #ifndef __riftathon__PresetView__ rt300@6: #define __riftathon__PresetView__ rt300@12: #include "ofMain.h" rt300@12: #include rt300@12: #include "UIProperties.h" rt300@12: #include "UIElement.h" rt300@12: #include "ofxiPhoneExtras.h" rt300@12: class PresetIconView{ rt300@12: rt300@12: public: rt300@12: PresetIconView(string aName, string aImageFileName){ rt300@12: imageFileName = aImageFileName; rt300@12: if (imageFileName != ""){ rt300@12: // these are NOT put in images/ directory for some reason... rt300@12: string fname = ofFilePath::getAbsolutePath(ofToDataPath(imageFileName)); rt300@12: ofFile f = ofFile(fname); rt300@12: image.loadImage(fname); rt300@12: } rt300@12: name = aName; rt300@12: rt300@12: }; rt300@12: rt300@12: bool handleMyTouch(int x, int y, touchType ttype, int touchID){ rt300@12: return false; rt300@12: } rt300@12: ofImage* getImage(){ rt300@12: return ℑ rt300@12: } rt300@12: private: rt300@6: string imageFileName; rt300@6: rt300@6: ofImage image; rt300@6: string name; rt300@6: }; rt300@6: rt300@6: #endif /* defined(__riftathon__PresetView__) */