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