morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
dev_tools.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#pragma once
3
4#include <cstdint>
5
6/// @file
7/// @brief `morph::ui::DevelopmentTools`: whether a client runs in development mode (spec 6 §21). The tools are in
8/// every build; this decides at run time whether they are on. Specified in `docs/spec/ui/inspector.md`.
9
10namespace morph::ui {
11
12/// @brief Whether a session's screens record what the development inspector reads, and whether a frontend opens the
13/// inspector (spec 6 §21).
14enum class DevelopmentTools : std::uint8_t {
15 Off, ///< Nothing is recorded, no inspector is handed out, and the inspector's shortcut does nothing.
16 On, ///< Each screen records its lowered nodes, its live scopes and its latest command lists.
17};
18
19} // namespace morph::ui
DevelopmentTools
Whether a session's screens record what the development inspector reads, and whether a frontend opens...
Definition dev_tools.hpp:14
@ On
Each screen records its lowered nodes, its live scopes and its latest command lists.
Definition dev_tools.hpp:16
@ Off
Nothing is recorded, no inspector is handed out, and the inspector's shortcut does nothing.
Definition dev_tools.hpp:15