CWidgetWindow *TuiManager::createPanel(float tag, float x, float y, int w, int h,float rotation){ CWidgetWindow *pPanel = CWidgetWindow::create(); pPanel->setContentSize(Size(w, h)); pPanel->setPosition(Point(x,y)); pPanel->setRotation(rotation); pPanel->setTag(tag); return pPanel; }
void TuiManager::doAdapterResolution(Node* pScene){ for (auto node : pScene->getChildren()) { CWidgetWindow *pWindow = dynamic_cast<CWidgetWindow*>(node); if (pWindow != nullptr){ pWindow->setPosition(Arp(pWindow->getPosition())); for (auto child : pWindow->getChildren()) { child->setPosition(Arp(child->getPosition())); } } } }