summaryrefslogtreecommitdiff
path: root/src/testApp.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2012-12-26 00:53:14 +0000
committerComment <tim@gray.(none)>2012-12-26 00:53:14 +0000
commit57b3561cced6aaec85d7f638b0f881a9fe6274c9 (patch)
treee85fb94cd39c4e3f720b15b1604dc1956341b5db /src/testApp.h
initial commit
Diffstat (limited to 'src/testApp.h')
-rwxr-xr-xsrc/testApp.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/testApp.h b/src/testApp.h
new file mode 100755
index 0000000..de24006
--- /dev/null
+++ b/src/testApp.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "ofMain.h"
+#include "ofxFensterManager.h"
+
+struct vecTexPt {
+ vecTexPt(int r=0,int c=0) {row=r;column=c;};
+ int row;
+ int column;
+};
+
+class editorWindow;
+
+class testApp : public ofxFensterListener {
+
+ public:
+ void setup();
+ void update();
+ void draw();
+
+ void keyPressed (int key);
+ void keyReleased(int key);
+ void mouseMoved(int x, int y );
+ void mouseDragged(int x, int y, int button);
+ void mousePressed(int x, int y, int button);
+ void mouseReleased(int x, int y, int button);
+ void windowResized(int w, int h);
+ void dragEvent(ofDragInfo dragInfo);
+ void gotMessage(ofMessage msg);
+
+ editorWindow *editorWin;
+
+};
+
+class editorWindow: public ofxFensterListener{
+ public:
+ ~editorWindow();
+ void setup();
+ void draw();
+ void keyPressed(int key);
+ void keyReleased(int key);
+ private:
+ vector<string> text;
+ vecTexPt insertionPoint;
+ vecTexPt selectionStart;
+ vecTexPt selectionEnd;
+ bool selected;
+};
+