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.
linear_gradient_mode.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 drawing2d {
19  enum class linear_gradient_mode {
21  horizontal = 0,
23  vertical = 1,
25  forward_diagonal = 2,
28  };
29 
31  inline std::ostream& operator<<(std::ostream& os, linear_gradient_mode value) {return os << to_string(value, {{linear_gradient_mode::horizontal, "horizontal"}, {linear_gradient_mode::vertical, "vertical"}, {linear_gradient_mode::forward_diagonal, "forward_diagonal"}, {linear_gradient_mode::backward_diagonal, "backward_diagonal"}});}
32  inline std::wostream& operator<<(std::wostream& os, linear_gradient_mode value) {return os << to_string(value, {{linear_gradient_mode::horizontal, L"horizontal"}, {linear_gradient_mode::vertical, L"vertical"}, {linear_gradient_mode::forward_diagonal, L"forward_diagonal"}, {linear_gradient_mode::backward_diagonal, L"backward_diagonal"}});}
34  }
35  }
36 }
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
linear_gradient_mode
Specifies the direction of a linear gradient.
Definition: linear_gradient_mode.h:19
@ horizontal
Specifies a gradient from left to right.
@ forward_diagonal
Specifies a gradient from upper left to lower right.
@ backward_diagonal
Specifies a gradient from upper right to lower left.
@ vertical
Specifies a gradient from top to bottom.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.