Nui
|
#include <rpc_hub.hpp>
Classes | |
struct | AutoUnregister |
Public Member Functions | |
RpcHub (Window &window) | |
~RpcHub ()=default | |
RpcHub (const RpcHub &)=delete | |
RpcHub & | operator= (const RpcHub &)=delete |
RpcHub (RpcHub &&)=delete | |
RpcHub & | operator= (RpcHub &&)=delete |
template<typename T > | |
AutoUnregister | autoRegisterFunction (std::string const &name, T &&func) const |
template<typename T > | |
void | registerFunction (std::string const &name, T &&func) const |
void | unregisterFunction (std::string const &name) const |
Window & | window () const |
Returns the attached window. More... | |
template<typename... Args> | |
void | callRemote (std::string const &name, Args &&... args) const |
For technical reasons these cannot return a value currently. More... | |
template<typename Arg > | |
void | callRemote (std::string const &name, Arg &&arg) const |
void | callRemote (std::string const &name, nlohmann::json const &json) const |
void | callRemote (std::string const &name, nlohmann::json &&json) const |
void | callRemote (std::string const &name) const |
template<typename... Args> | |
void | call (std::string const &name, Args &&... args) const |
void | enableFileDialogs () const |
Enables file dialog functionality. More... | |
void | enableFile () |
Enables file class in the frontend. More... | |
void | enableWindowFunctions () const |
Enables opening of the devTools, terminating the window from the view... More... | |
void | enableFetch () const |
Enables fetch functionality. More... | |
void | enableThrottle () |
Enables the throttle functionality. More... | |
void | enableTimer () |
Enables the setInterval and setTimeout functionality. More... | |
void | enableScreen () |
Enables the screen functionality. More... | |
void | enableEnvironmentVariables () |
Enables the environment variable functionality. More... | |
void | enableAll () |
Enables all functionality. More... | |
template<typename ManagerT > | |
void * | accessStateStore (std::string const &id) |
Static Public Attributes | |
constexpr static char const * | remoteCallScript |
Nui::RpcHub::RpcHub | ( | Window & | window | ) |
|
default |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
For technical reasons these cannot return a value currently.
Args |
name | |
args |
|
inline |
|
inline |
void Nui::RpcHub::enableAll | ( | ) |
Enables all functionality.
void Nui::RpcHub::enableEnvironmentVariables | ( | ) |
Enables the environment variable functionality.
void Nui::RpcHub::enableFetch | ( | ) | const |
Enables fetch functionality.
void Nui::RpcHub::enableFile | ( | ) |
Enables file class in the frontend.
void Nui::RpcHub::enableFileDialogs | ( | ) | const |
Enables file dialog functionality.
void Nui::RpcHub::enableScreen | ( | ) |
Enables the screen functionality.
void Nui::RpcHub::enableThrottle | ( | ) |
Enables the throttle functionality.
void Nui::RpcHub::enableTimer | ( | ) |
Enables the setInterval and setTimeout functionality.
void Nui::RpcHub::enableWindowFunctions | ( | ) | const |
Enables opening of the devTools, terminating the window from the view...
|
inline |
|
inline |
|
staticconstexpr |