summaryrefslogtreecommitdiff
path: root/src/testApp.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-01-03 14:13:15 +0000
committerComment <tim@gray.(none)>2013-01-03 14:13:15 +0000
commit25fc9816fa59f0ddf14b298988ff35bd1749fe61 (patch)
tree6d2d755b927e9034610918cc0f913bd8c2e15f6e /src/testApp.h
parent8bc88cb5db84219a5ad4d1c49239607113ec85fa (diff)
cut+paste fixed
Diffstat (limited to 'src/testApp.h')
-rwxr-xr-xsrc/testApp.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testApp.h b/src/testApp.h
index 52cd191..30dc033 100755
--- a/src/testApp.h
+++ b/src/testApp.h
@@ -4,9 +4,8 @@
#include "ofxFensterManager.h"
struct texPt {
- texPt(int r=0,int c=0) {row=r;column=c;};
- int row;
- int column;
+ texPt(int r=0,int c=0) {row=r;column=c;};
+ int row,column;
};
class editorWindow;
@@ -41,19 +40,24 @@ 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;
+ ofFbo screen;
texPt clickPos(int x,int y);
+ int clickX,clickY;
void setClipboard(string text);
string getSelection();
void insertText(string text);
void deleteSelection();
vector<string> text;
+ int insX,insY;
texPt insertionPoint;
texPt selectionStart;
texPt selectionEnd;
bool selected,changed;
string output;
- int clickX,clickY;
};