Beispiel #1
0
// Event calls
void CheckBox::penDown(u8 px, u8 py)
{
	if(!enabled)
		return;
	
	checked = !checked;
	
	if(onToggle != 0)
		onToggle(checked);
	
	draw();
}
Beispiel #2
0
	void MenuBarToggle::whenToggled(boolean toggle)
	{
		this->toggle = toggle;
		onToggle(toggle);
	}