xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
8 namespace xtd {
10  namespace forms {
17  enum class menu_item_kind {
19  normal = 0,
21  check = 1,
23  radio = 2,
25  drop_down = 3,
27  separator = 4,
28  };
31  inline std::ostream& operator<<(std::ostream& os, menu_item_kind value) {return os << to_string(value, {{menu_item_kind::normal, "normal"}, {menu_item_kind::check, "check"}, {menu_item_kind::radio, "radio"}, {menu_item_kind::drop_down, "drop_down"}, {menu_item_kind::separator, "separator"}});}
32  inline std::wostream& operator<<(std::wostream& os, menu_item_kind value) {return os << to_string(value, {{menu_item_kind::normal, L"normal"}, {menu_item_kind::check, L"check"}, {menu_item_kind::radio, L"radio"}, {menu_item_kind::drop_down, L"drop_down"}, {menu_item_kind::separator, L"separator"}});}
34  }
35 }
The default appearance defined by the control class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The separator key.
Contains xtd::ustring class.
Specifies that the list is displayed by clicking the down arrow and that the text portion is editable...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Represent menu item kind used by xtd::forms::menu_item component.
Definition: menu_item_kind.h:17
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