本文整理汇总了C++中CADrawerController::setEffect3D方法的典型用法代码示例。如果您正苦于以下问题:C++ CADrawerController::setEffect3D方法的具体用法?C++ CADrawerController::setEffect3D怎么用?C++ CADrawerController::setEffect3D使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CADrawerController
的用法示例。
在下文中一共展示了CADrawerController::setEffect3D方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createWindow
CAWindow* MainMenu::createWindow()
{
FirstViewController* viewController1 = new FirstViewController();
viewController1->init();
SecondViewController* viewController2 = new SecondViewController();
viewController2->init();
viewController2->setTabBarItem(CATabBarItem::create("Second",
CAImage::create("tabbar_function/second_1.png"),
CAImage::create("tabbar_function/second_2.png")));
ThirdViewController* viewController3 = new ThirdViewController();
viewController3->init();
viewController3->setTabBarItem(CATabBarItem::create("Third",
CAImage::create("tabbar_function/third_1.png"),
CAImage::create("tabbar_function/third_2.png")));
FourthViewController* viewController4 = new FourthViewController();
viewController4->init();
viewController4->setTabBarItem(CATabBarItem::create("Fourth",
CAImage::create("tabbar_function/fourth_1.png"),
CAImage::create("tabbar_function/fourth_2.png")));
std::vector<CAViewController*> controllerItem;
controllerItem.push_back(viewController2);
controllerItem.push_back(viewController3);
controllerItem.push_back(viewController4);
MainMenu* p_Funtion = new MainMenu();
p_Funtion->initWithViewControllers(controllerItem);
p_Funtion->showTabBarSelectedIndicator();
CANavigationController* navigationController = new CANavigationController();
navigationController->initWithRootViewController(p_Funtion);
navigationController->getView()->setColor(CAColor_clear);
CAWindow* p_Window = CAWindow::create();
float winWidth = p_Window->getBounds().size.width;
CADrawerController* drawerController = new CADrawerController();
drawerController->initWithController(viewController1, navigationController, winWidth*0.7);
drawerController->setBackgroundView(CAScale9ImageView::createWithImage(CAImage::create("background/1.jpg")));
drawerController->setEffect3D(true);
drawerController->autorelease();
p_Window->setRootViewController(drawerController);
viewController1->release();
viewController2->release();
viewController3->release();
viewController4->release();
p_Funtion->release();
return p_Window;
}