diff options
| author | Comment <tim@gray.(none)> | 2012-12-27 16:22:17 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2012-12-27 16:22:17 +0000 |
| commit | f855d3ba224c878dae5ef02688b7c0b8630b1348 (patch) | |
| tree | 217af2fe1fd38b1822fa7133a7d57152991da5c0 /src/testApp.h | |
| parent | 1a4a66963e5899a973bbcd20f2101d75765987a9 (diff) | |
mouse selection nearly
Diffstat (limited to 'src/testApp.h')
| -rwxr-xr-x | src/testApp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testApp.h b/src/testApp.h index 6c7ccf2..dde4502 100755 --- a/src/testApp.h +++ b/src/testApp.h @@ -29,7 +29,6 @@ class testApp : public ofxFensterListener { void gotMessage(ofMessage msg); editorWindow *editorWin; - }; class editorWindow: public ofxFensterListener{ @@ -39,11 +38,16 @@ class editorWindow: public ofxFensterListener{ void draw(); void keyPressed(int key); void keyReleased(int key); + void mousePressed(int x, int y, int button); + void mouseReleased(int x, int y, int button); + void mouseDragged(int x, int y, int button); + texPt clickPos(int x,int y); private: vector<string> text; texPt insertionPoint; texPt selectionStart; texPt selectionEnd; bool selected; + int clickX,clickY; }; |
