CScrollView *TuiManager::createScrollView(float tag, int direction,int innerWidth,int innerHeight, float x, float y, float w, float h, float rotation){ CScrollView *pView = CScrollView::create(Size(Point(w,h))); pView->setPosition(Point(x,-y)); pView->setContainerSize(Size(innerWidth,innerHeight)); pView->setDirection((CScrollViewDirection)direction); pView->setRotation(rotation); pView->setTag(tag); return pView; }
CScrollView *TuiManager::createScrollView(float tag, Color4B color, int direction, int innerWidth, int innerHeight, float x, float y, float w, float h, float rotation){ CScrollView *pView = CScrollView::create(Size(w,h)); if (color.a != 0) pView->setBackgroundColor(color); pView->setPosition(Vec2(x,-y)); pView->setContainerSize(Size(innerWidth, innerHeight)); pView->setDirection((CScrollViewDirection)direction); pView->setRotation(rotation); pView->setTag(tag); return pView; }