ReXGlue SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
ui_thread.h
Go to the documentation of this file.
1
10
11
#pragma once
12
13
#include <
rex/module.h
>
14
#include <
rex/utility.h
>
15
16
namespace
rex
{
17
19
REX_DECLARE_INTERFACE
(
IUIThread
, 1)
21
virtual
bool
IsUIThread() const = 0;
22
24
virtual
void
PostTask(
MoveOnlyFunction
<
void
()> fn) = 0;
25
32
[[nodiscard]] virtual
bool
RunSynchronous(
MoveOnlyFunction
<
void
()> fn) = 0;
33
};
34
35
}
// namespace rex
rex::IUIThread
Definition
ui_thread.h:19
module.h
Interfaces, factory and module declaration.
REX_DECLARE_INTERFACE
#define REX_DECLARE_INTERFACE(Name, version)
Definition
module.h:114
rex
Definition
app.h:36
rex::MoveOnlyFunction
typename detail::MoveOnlyFunctionFor< Signature >::type MoveOnlyFunction
Definition
utility.h:254
utility.h
Move only function, const propagating pointer and scope guard.
rex
ui_thread.h
Generated by
1.18.0