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