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

Method update

CrossApp/controller/CAViewController.cpp:970–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970void CANavigationController::update(float dt)
971{
972 CAViewController* viewController = m_pViewControllers.back();
973
974 int y = this->getNavigationBarNowY(viewController);
975
976 CANavigationBar* navBar = m_pNavigationBars.back();
977 DLayout navLayout = navBar->getLayout();
978 navLayout.vertical.top = y;
979 navBar->setLayout(navLayout);
980
981 CAView* secondContainer = m_pSecondContainers.back();
982 DLayout secondLayout = secondContainer->getLayout();
983 secondLayout.vertical.top = navLayout.vertical.top + navLayout.vertical.height;
984 secondContainer->setLayout(secondLayout);
985}
986
987bool CANavigationController::ccTouchBegan(CATouch *pTouch, CAEvent *pEvent)
988{

Callers 4

setTabBarHiddenMethod · 0.45
tabBarHiddenAnimationMethod · 0.45

Calls 4

getNavigationBarNowYMethod · 0.95
getTabBarNowYMethod · 0.95
setLayoutMethod · 0.80
backMethod · 0.45

Tested by

no test coverage detected