From d98b38306a9273dbdd6621ca0eac8b8bdba9b749 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 21 Jan 2013 18:14:40 +0000 Subject: nearly working --- src/testApp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/testApp.h') diff --git a/src/testApp.h b/src/testApp.h index 30dc033..b51e215 100755 --- a/src/testApp.h +++ b/src/testApp.h @@ -40,12 +40,15 @@ class editorWindow: public ofxFensterListener{ void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void mouseDragged(int x, int y, int button); - void windowResized(int w, int h); //doesn't seem to work normally string getText(); private: - void drawScreen(); int w,h; + bool scrollY,scrollX; + int scrollPosY,scrollPosX; + bool scrollSelY,scrollSelX; ofFbo screen; + void drawScreen(); + void screenResize(); texPt clickPos(int x,int y); int clickX,clickY; void setClipboard(string text); @@ -53,6 +56,7 @@ class editorWindow: public ofxFensterListener{ void insertText(string text); void deleteSelection(); vector text; + int maxLineLength; int insX,insY; texPt insertionPoint; texPt selectionStart; -- cgit v1.2.3