xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
hotkey_prefix.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace drawing {
12  namespace text {
20  enum class hotkey_prefix {
22  none = 0,
24  show = 1,
26  hide = 2
27  };
28 
30  inline std::ostream& operator<<(std::ostream& os, hotkey_prefix value) {return os << xtd::to_string(value, {{hotkey_prefix::none, "none"}, {hotkey_prefix::show, "show"}, {hotkey_prefix::hide, "hide"}});}
31  inline std::wostream& operator<<(std::wostream& os, hotkey_prefix value) {return os << xtd::to_string(value, {{hotkey_prefix::none, L"none"}, {hotkey_prefix::show, L"show"}, {hotkey_prefix::hide, L"hide"}});}
33  }
34  }
35 }
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
hotkey_prefix
Specifies the type of display for hot-key prefixes that relate to text.
Definition: hotkey_prefix.h:18
hotkey_prefix
Specifies the type of display for hot-key prefixes that relate to text.
Definition: hotkey_prefix.h:20
@ show
Display the hot-key prefix.
@ hide
Do not display the hot-key prefix.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.