MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / disableInterface

Method disableInterface

Duration/src/DurationController.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void DurationController::disableInterface(){
73 if(enabled){
74 enabled = false;
75 ofRemoveListener(ofEvents().update, this, &DurationController::update);
76 ofRemoveListener(ofEvents().draw, this, &DurationController::draw);
77 ofRemoveListener(ofEvents().keyPressed, this, &DurationController::keyPressed);
78 gui->disable();
79 timeline.disable();
80 map<string,ofPtr<ofxTLUIHeader> >::iterator it = headers.begin();
81 while(it != headers.end()){
82 it->second->getGui()->disable();
83 it++;
84 }
85 }
86}
87
88bool DurationController::isInterfaceEnabled(){
89 return enabled;

Callers

nothing calls this directly

Calls 1

getGuiMethod · 0.80

Tested by

no test coverage detected