Mercurial > hg > tweakathon2ios
annotate PresetView.h @ 52:89944ab3e129 tip
fix oF linker errors ios8
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 03 Feb 2015 13:18:23 +0000 |
parents | ab3e0e980c82 |
children |
rev | line source |
---|---|
rt300@6 | 1 // |
rt300@6 | 2 // PresetView.h |
rt300@6 | 3 // riftathon |
rt300@6 | 4 // |
rt300@6 | 5 // Created by Robert Tubb on 17/10/2014. |
rt300@6 | 6 // |
rt300@6 | 7 // |
rt300@6 | 8 |
rt300@6 | 9 #ifndef __riftathon__PresetView__ |
rt300@6 | 10 #define __riftathon__PresetView__ |
rt300@12 | 11 #include "ofMain.h" |
rt300@12 | 12 #include <iostream> |
rt300@12 | 13 #include "UIProperties.h" |
rt300@12 | 14 #include "UIElement.h" |
rt300@12 | 15 #include "ofxiPhoneExtras.h" |
rt300@12 | 16 class PresetIconView{ |
rt300@12 | 17 |
rt300@12 | 18 public: |
rt300@12 | 19 PresetIconView(string aName, string aImageFileName){ |
rt300@12 | 20 imageFileName = aImageFileName; |
rt300@12 | 21 if (imageFileName != ""){ |
rt300@12 | 22 // these are NOT put in images/ directory for some reason... |
rt300@12 | 23 string fname = ofFilePath::getAbsolutePath(ofToDataPath(imageFileName)); |
rt300@12 | 24 ofFile f = ofFile(fname); |
rt300@12 | 25 image.loadImage(fname); |
rt300@12 | 26 } |
rt300@12 | 27 name = aName; |
rt300@12 | 28 |
rt300@12 | 29 }; |
rt300@12 | 30 |
rt300@12 | 31 bool handleMyTouch(int x, int y, touchType ttype, int touchID){ |
rt300@12 | 32 return false; |
rt300@12 | 33 } |
rt300@12 | 34 ofImage* getImage(){ |
rt300@12 | 35 return ℑ |
rt300@12 | 36 } |
rt300@12 | 37 private: |
rt300@6 | 38 string imageFileName; |
rt300@6 | 39 |
rt300@6 | 40 ofImage image; |
rt300@6 | 41 string name; |
rt300@6 | 42 }; |
rt300@6 | 43 |
rt300@6 | 44 #endif /* defined(__riftathon__PresetView__) */ |