MCPcopy Create free account
hub / github.com/braitsch/ofxDatGui / draw

Method draw

example-TextInputs/src/ofApp.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ofApp::draw()
36{
37 input->draw();
38 string str = "Text Input: "+input->getText();
39 ofRectangle bounds = font.getStringBoundingBox(str, ofGetWidth()/2, ofGetHeight()/2);
40 ofSetColor(ofColor::black);
41 font.drawString(str, bounds.x-bounds.width/2, bounds.y-bounds.height/2);
42}
43

Callers

nothing calls this directly

Calls 1

getTextMethod · 0.45

Tested by

no test coverage detected