void ofxDatGui::onButtonEventCallback(ofxDatGuiButtonEvent e) { if (buttonEventCallback != nullptr) { buttonEventCallback(e); } else{ ofxDatGuiLog::write(ofxDatGuiMsg::EVENT_HANDLER_NULL); } }
void ofxDatGui::onToggleEventCallback(ofxDatGuiToggleEvent e) { if (toggleEventCallback != nullptr) { toggleEventCallback(e); // allow toggle events to decay into button events // } else if (buttonEventCallback != nullptr) { buttonEventCallback(ofxDatGuiButtonEvent(e.target)); } else{ ofxDatGuiLog::write(ofxDatGuiMsg::EVENT_HANDLER_NULL); } }