nxtio/process.hpp file

Namespaces

namespace nxt
namespace nxt::ui
namespace nxt::ui::detail

Classes

struct nxt::ui::OutputMessage
struct nxt::ui::OutputPublisher
struct nxt::ui::ProcessContext
class nxt::ui::yard
A yard is a drawable process scope context, or something.
class nxt::ui::ProcessState
class nxt::ui::ProcessHandle

Functions

template <typename WorkerBody, typename CompanionBody, typename Layout>
auto accompany(const yard& self, WorkerBody worker_body, CompanionBody companion_body, Layout layout) →  nxt::task
auto is_character(const nxt::input::KeyEvent& event, char ch) →  bool
auto is_escape(const nxt::input::KeyEvent& event) →  bool
auto is_quit_key(const nxt::input::KeyEvent& event) →  bool
auto join_body(std::shared_ptr<ProcessState> state) →  nxt::task
template <typename Predicate>
auto next_key_press(const yard& self, Predicate predicate) →  nxt::task<std::optional<nxt::input::KeyEvent>>
auto next_key_press(const yard& self) →  nxt::task<std::optional<nxt::input::KeyEvent>>
template <typename Body>
auto run2(Body body) →  int
template <typename Body>
auto run_body(std::shared_ptr<ProcessState> state, Body body) →  nxt::task
auto runtime_output(UIRuntime& runtime) →  OutputPublisher
template <typename Body>
auto spawn(const yard& parent, Body body) →  ProcessHandle
Spawn a child process within parent's cancellation scope.
auto spinner(std::chrono::milliseconds interval = std::chrono::milliseconds{80}, tui::Style style = tui::bold|tui::fg(Rgba8::black())|tui::bg(Rgba8::white())) →  auto
template <typename WorkerBody>
auto spintag(const yard& self, WorkerBody worker_body) →  nxt::task