void ofxDatGui::setWidth(int width, float labelWidth) { mWidth = width; mLabelWidth = labelWidth; mWidthChanged = true; if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui(); }
void ofxDatGui::onWindowResized(ofResizeEventArgs &e) { if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui(); }
ofxDatGui::ofxDatGui(ofxDatGuiAnchor anchor) { init(); mAnchor = anchor; anchorGui(); }
void ofxDatGui::setPosition(ofxDatGuiAnchor anchor) { mAnchor = anchor; if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui(); }