Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}