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.
menu_item_kind.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
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  };
29 
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 }
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
menu_item_kind
Represent menu item kind used by xtd::forms::menu_item component.
Definition: menu_item_kind.h:17
@ check
Check menu item.
@ drop_down
Drop down menu item.
@ separator
Separator menu item.
@ radio
Radio menu item.
@ normal
Normal menu item.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.