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

Method positionButtons

example-Buttons/src/ofApp.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ofApp::positionButtons()
64{
65 button->setPosition(ofGetWidth()/2 - button->getWidth()/2, ofGetHeight()/2 - button->getHeight());
66 toggle->setPosition(button->getX(), button->getY() + button->getHeight() + 20);
67}
68
69
70

Callers

nothing calls this directly

Calls 5

setPositionMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
getXMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected