void ofxUICanvas::disable() { enabled = false; disableAppEventCallbacks(); #ifdef TARGET_OPENGLES disableTouchEventCallbacks(); #else disableMouseEventCallbacks(); disableKeyEventCallbacks(); disableWindowEventCallbacks(); #endif }
void Calibration::onExit(ofEventArgs &data) { for(int i = 0; i < guis.size(); i++) { ofxUiCustomCanvas *gui = guis[i]; delete gui; } guis.clear(); disableBlobEventCallbacks(); disableAppEventCallbacks(); disableKeyEventCallbacks(); disableGuiEventCallbacks(); }