ofxSimpleGuiToggle::ofxSimpleGuiToggle(string name, bool &value) : ofxSimpleGuiControl(name) { this->value = &value; defaultValue = value; setMomentary(false); controlType = "Toggle"; setup(); }
//--------------------------------------------------------------------- ofxSimpleGuiButton::ofxSimpleGuiButton(string name, bool &value) : ofxSimpleGuiControl(name) { setMomentary(true); this->value = &value; controlType = "Button"; setup(); }