Code cleanup: moving poly::ui to xe::ui

This commit is contained in:
Ben Vanik
2015-05-02 01:50:19 -07:00
parent 4d15b2296e
commit f7ca026db0
25 changed files with 134 additions and 142 deletions

32
src/xenia/ui/loop.h Normal file
View File

@@ -0,0 +1,32 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef XENIA_UI_LOOP_H_
#define XENIA_UI_LOOP_H_
#include <functional>
namespace xe {
namespace ui {
class Loop {
public:
Loop() = default;
virtual ~Loop() = default;
virtual void Post(std::function<void()> fn) = 0;
virtual void Quit() = 0;
virtual void AwaitQuit() = 0;
};
} // namespace ui
} // namespace xe
#endif // XENIA_UI_LOOP_H_