MCPcopy Create free account
hub / github.com/9miao/CrossApp / hideLeftViewController

Method hideLeftViewController

CrossApp/controller/CADrawerController.cpp:236–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void CADrawerController::hideLeftViewController(bool animated)
237{
238 CC_RETURN_IF(m_bAnimation);
239 m_bShow = false;
240
241 this->begin();
242
243 if (animated)
244 {
245 m_fCurrDivision = m_pContainer[1]->getFrameOrigin().x;
246 m_pContainer[0]->setTouchEnabled(false);
247 m_pContainer[1]->setTouchEnabled(false);
248 CAScheduler::schedule(schedule_selector(CADrawerController::scheduleHideAction), this, 1/60.0f);
249 m_bAnimation = true;
250 }
251 else
252 {
253 m_fCurrDivision = 0;
254 this->updateViewFrame();
255 this->hideEnded();
256 }
257}
258
259bool CADrawerController::isShowLeftViewController()
260{

Calls 5

beginMethod · 0.95
updateViewFrameMethod · 0.95
hideEndedMethod · 0.95
scheduleFunction · 0.85
setTouchEnabledMethod · 0.80

Tested by

no test coverage detected