1#ifndef NEFORCE_TUI_APPLICATION_HPP__
2#define NEFORCE_TUI_APPLICATION_HPP__
14NEFORCE_BEGIN_NAMESPACE__
43class NEFORCE_API application {
48 application(
const application&) =
delete;
49 application& operator=(
const application&) =
delete;
50 application(application&&) =
delete;
51 application& operator=(application&&) =
delete;
60 template <
typename RootComponent,
typename... Args>
97 void quit(
int exit_code = 0);
101 strand render_strand_{ctx_};
106 theme theme_{dark_theme};
110 bool running_ =
false;
116NEFORCE_END_NAMESPACE__
static sys_console & instance() noexcept
获取单例实例
application & with_title(string title)
设置程序名
application & with_component(Args &&... args)
设置根组件
application & with_fps(int fps)
设置最大刷新帧率
application & with_theme(const theme &theme)
设置主题
void quit(int exit_code=0)
请求退出应用
constexpr T && forward(remove_reference_t< T > &x) noexcept
完美转发左值
constexpr unique_ptr< T > make_unique(Args &&... args)
创建unique_ptr