diff options
| author | Comment <tim@gray.(none)> | 2012-12-30 10:45:58 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2012-12-30 10:45:58 +0000 |
| commit | 8bc88cb5db84219a5ad4d1c49239607113ec85fa (patch) | |
| tree | 1e65d541b717dab4a6f2ff7ecb34b298fefbdf1e /src/testApp.h | |
| parent | f855d3ba224c878dae5ef02688b7c0b8630b1348 (diff) | |
nearly working
Diffstat (limited to 'src/testApp.h')
| -rwxr-xr-x | src/testApp.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/testApp.h b/src/testApp.h index dde4502..52cd191 100755 --- a/src/testApp.h +++ b/src/testApp.h @@ -39,15 +39,21 @@ class editorWindow: public ofxFensterListener{ 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); + void mouseReleased(int x, int y, int button); + void mouseDragged(int x, int y, int button); + string getText(); private: - vector<string> text; + texPt clickPos(int x,int y); + void setClipboard(string text); + string getSelection(); + void insertText(string text); + void deleteSelection(); + vector<string> text; texPt insertionPoint; texPt selectionStart; - texPt selectionEnd; - bool selected; + texPt selectionEnd; + bool selected,changed; + string output; int clickX,clickY; }; |
