UI hacking.
This commit is contained in:
31
src/poly/ui/loop.h
Normal file
31
src/poly/ui/loop.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* 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 POLY_UI_LOOP_H_
|
||||
#define POLY_UI_LOOP_H_
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace poly {
|
||||
namespace ui {
|
||||
|
||||
class Loop {
|
||||
public:
|
||||
Loop() = default;
|
||||
virtual ~Loop() = default;
|
||||
|
||||
virtual void Post(std::function<void()> fn) = 0;
|
||||
|
||||
virtual void Quit() = 0;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace poly
|
||||
|
||||
#endif // POLY_UI_LOOP_H_
|
||||
Reference in New Issue
Block a user