| 7 | */ |
| 8 | |
| 9 | void ofApp::setup() |
| 10 | { |
| 11 | ofSetWindowShape(1920, 1080); |
| 12 | ofSetWindowPosition(ofGetScreenWidth()/2 - ofGetWidth()/2, 0); |
| 13 | |
| 14 | input = new ofxDatGuiTextInput("TEXT INPUT", "Type Something Here"); |
| 15 | input->onTextInputEvent(this, &ofApp::onTextInputEvent); |
| 16 | input->setFocused(true); |
| 17 | input->setWidth(800, .2); |
| 18 | input->setPosition(ofGetWidth()/2 - input->getWidth()/2, 240); |
| 19 | font.load("ofxbraitsch/fonts/Verdana.ttf", 24); |
| 20 | } |
| 21 | |
| 22 | void ofApp::onTextInputEvent(ofxDatGuiTextInputEvent e) |
| 23 | { |
nothing calls this directly
no test coverage detected