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.
generic_font_families.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 {
19  enum class generic_font_families {
21  serif = 0,
23  sans_serif = 1,
25  monospace = 2
26  };
27 
29  inline std::ostream& operator<<(std::ostream& os, generic_font_families value) {return os << xtd::to_string(value, {{generic_font_families::serif, "serif"}, {generic_font_families::sans_serif, "sans_serif"}, {generic_font_families::monospace, "italic"}});}
30  inline std::wostream& operator<<(std::wostream& os, generic_font_families value) {return os << xtd::to_string(value, {{generic_font_families::serif, L"serif"}, {generic_font_families::sans_serif, L"sans_serif"}, {generic_font_families::monospace, L"italic"}});}
32  }
33  }
34 }
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
generic_font_families
Specifies a generic font_family object.
Definition: generic_font_families.h:19
@ sans_serif
A generic Sans Serif font_family object.
@ monospace
A generic Monospace font_family object.
@ serif
A generic Serif font_family object.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.