void ofxUICanvas::disable()
{
    enabled = false; 
    disableAppEventCallbacks();        
#ifdef TARGET_OPENGLES
    disableTouchEventCallbacks();
#else
    disableMouseEventCallbacks();
    disableKeyEventCallbacks();
    disableWindowEventCallbacks(); 
#endif                		
}
Exemple #2
0
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();

}