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

Method getNavigationBarNowY

CrossApp/controller/CAViewController.cpp:938–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938int CANavigationController::getNavigationBarNowY(CAViewController* viewController)
939{
940 int y = 0;
941
942 if (viewController->getNavigationBarItem() && viewController->getNavigationBarItem()->isNagigationBarHidden())
943 {
944 y = -m_iNavigationBarHeight;
945 }
946 else
947 {
948 if (m_bNavigationBarHidden)
949 {
950 y = -m_iNavigationBarHeight * m_fProgress;
951 }
952 else
953 {
954 y = -m_iNavigationBarHeight * (1.0f - m_fProgress);
955 }
956 }
957 return y;
958}
959
960void CANavigationController::navigationBarHiddenAnimation(float delay, float now, float total)
961{

Callers 3

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected