コード例 #1
0
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();
}