Пример #1
0
void ofxDatGui::setWidth(int width, float labelWidth)
{
    mWidth = width;
    mLabelWidth = labelWidth;
    mWidthChanged = true;
    if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui();
}
Пример #2
0
void ofxDatGui::onWindowResized(ofResizeEventArgs &e)
{
    if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui();
}
Пример #3
0
ofxDatGui::ofxDatGui(ofxDatGuiAnchor anchor)
{
    init();
    mAnchor = anchor;
    anchorGui();
}
Пример #4
0
void ofxDatGui::setPosition(ofxDatGuiAnchor anchor)
{
    mAnchor = anchor;
    if (mAnchor != ofxDatGuiAnchor::NO_ANCHOR) anchorGui();
}