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