yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
startup_flags.h
Go to the documentation of this file.
1#ifndef YAZE_APP_STARTUP_FLAGS_H_
2#define YAZE_APP_STARTUP_FLAGS_H_
3
4#include <string>
5
6#include "absl/strings/ascii.h"
7#include "absl/strings/string_view.h"
8
9namespace yaze {
10
19 kAuto,
20 kShow,
21 kHide,
22};
23
25 absl::string_view value) {
26 const std::string lower = absl::AsciiStrToLower(std::string(value));
27 if (lower == "show" || lower == "on" || lower == "visible") {
29 }
30 if (lower == "hide" || lower == "off" || lower == "none") {
32 }
34}
35
37 switch (value) {
39 return "show";
41 return "hide";
43 default:
44 return "auto";
45 }
46}
47
48} // namespace yaze
49
50#endif // YAZE_APP_STARTUP_FLAGS_H_
StartupVisibility
Tri-state toggle used for startup UI visibility controls.
std::string StartupVisibilityToString(StartupVisibility value)
StartupVisibility StartupVisibilityFromString(absl::string_view value)