|
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. | |
| template<typename... Args> | |
| void | callRemote (std::string const &name, Args &&... args) const |
| For technical reasons these cannot return a value currently. | |
| 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. | |
| void | enableFile () |
| Enables file class in the frontend. | |
| void | enableWindowFunctions () const |
| Enables opening of the devTools, terminating the window from the view... | |
| void | enableFetch () const |
| Enables fetch functionality. | |
| void | enableThrottle () |
| Enables the throttle functionality. | |
| void | enableTimer () |
| Enables the setInterval and setTimeout functionality. | |
| void | enableScreen () |
| Enables the screen functionality. | |
| void | enableEnvironmentVariables () |
| Enables the environment variable functionality. | |
| void | enableAll () |
| Enables all functionality. | |
| template<typename ManagerT > | |
| void * | accessStateStore (std::string const &id) |
Static Public Attributes | |
| static constexpr char const * | remoteCallScript |
|
explicit |
|
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 |