Frame: Remove callback function prototypes from header

Gets rid of more direct usages of the main_frame global, keeping the
callbacks internal to the frame itself.
This commit is contained in:
Lioncash committed 2017-04-03 06:34:36 -04:00
1 parent ee0e6fa09c
commit c457ee4995
6 files changed
+27 -38

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ void UpdateTitle();
bool PauseAndLock(bool doLock, bool unpauseOnUnlock = true);
// for calling back into UI code without introducing a dependency on it in core
typedef void (*StoppedCallbackFunc)(void);
using StoppedCallbackFunc = std::function<void()>;
void SetOnStoppedCallback(StoppedCallbackFunc callback);
// Run on the Host thread when the factors change. [NOT THREADSAFE]