#include "Menu.h" #include Menu::Menu(Bildschirm* zScreen) : ReferenceCounter(), zScreen(zScreen) {} void Menu::show() { for (auto member : elements) zScreen->addMember(dynamic_cast(member->getThis())); } void Menu::hide() { new AsynchronCall([this]() { for (auto member : elements) zScreen->removeMember(dynamic_cast(member->getThis())); }); }