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

Method windowResized

example-2dPads/src/ofApp.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void ofApp::windowResized(int w, int h)
65{
66// reset the bounds to the new window dimensions //
67 if (mUseCustomBounds) setBounds();
68// and recenter the 2dpad component onscreen //
69 pad->setPosition(ofGetWidth()/2 - pad->getWidth()/2, ofGetHeight()/2 - pad->getHeight()/2);
70}
71

Callers

nothing calls this directly

Calls 3

setPositionMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected