Clean project structure.

This commit is contained in:
jmsgrogan 2023-01-17 10:13:25 +00:00
parent 78a4fa99ff
commit 947bf937fd
496 changed files with 206 additions and 137 deletions

View file

@ -0,0 +1,28 @@
#include "StackWidget.h"
#include <iostream>
StackWidget::StackWidget()
{
}
std::unique_ptr<StackWidget> StackWidget::Create()
{
return std::make_unique<StackWidget>();
}
void StackWidget::showChild(Widget* target)
{
for(auto& child : mChildren)
{
if(child.get() == target)
{
child->setVisible(true);
}
else
{
child->setVisible(false);
}
}
}