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.
arrange_starting_position.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
21  bottom_left = 0,
23  bottom_right = 1,
25  top_left = 2,
27  top_right = 3,
29  hide = 8
30  };
31 
33  inline arrange_starting_position& operator +=(arrange_starting_position& lhs, arrange_starting_position rhs) {lhs = static_cast<arrange_starting_position>(static_cast<long long>(lhs) + static_cast<long long>(rhs)); return lhs;}
34  inline arrange_starting_position& operator -=(arrange_starting_position& lhs, arrange_starting_position rhs) {lhs = static_cast<arrange_starting_position>(static_cast<long long>(lhs) - static_cast<long long>(rhs)); return lhs;}
35  inline arrange_starting_position& operator &=(arrange_starting_position& lhs, arrange_starting_position rhs) {lhs = static_cast<arrange_starting_position>(static_cast<long long>(lhs) & static_cast<long long>(rhs)); return lhs;}
36  inline arrange_starting_position& operator |=(arrange_starting_position& lhs, arrange_starting_position rhs) {lhs = static_cast<arrange_starting_position>(static_cast<long long>(lhs) | static_cast<long long>(rhs)); return lhs;}
37  inline arrange_starting_position& operator ^=(arrange_starting_position& lhs, arrange_starting_position rhs) {lhs = static_cast<arrange_starting_position>(static_cast<long long>(lhs) ^ static_cast<long long>(rhs)); return lhs;}
38  inline arrange_starting_position operator +(arrange_starting_position lhs, arrange_starting_position rhs) {return static_cast<arrange_starting_position>(static_cast<long long>(lhs) + static_cast<long long>(rhs));}
39  inline arrange_starting_position operator -(arrange_starting_position lhs, arrange_starting_position rhs) {return static_cast<arrange_starting_position>(static_cast<long long>(lhs) - static_cast<long long>(rhs));}
40  inline arrange_starting_position operator ~(arrange_starting_position rhs) {return static_cast<arrange_starting_position>(~static_cast<long long>(rhs));}
41  inline arrange_starting_position operator &(arrange_starting_position lhs, arrange_starting_position rhs) {return static_cast<arrange_starting_position>(static_cast<long long>(lhs) & static_cast<long long>(rhs));}
42  inline arrange_starting_position operator |(arrange_starting_position lhs, arrange_starting_position rhs) {return static_cast<arrange_starting_position>(static_cast<long long>(lhs) | static_cast<long long>(rhs));}
43  inline arrange_starting_position operator ^(arrange_starting_position lhs, arrange_starting_position rhs) {return static_cast<arrange_starting_position>(static_cast<long long>(lhs) ^ static_cast<long long>(rhs));}
44  inline std::ostream& operator<<(std::ostream& os, arrange_starting_position value) {return os << to_string(value, {{arrange_starting_position::bottom_left, "bottom_left"}, {arrange_starting_position::bottom_right, "bottom_right"}, {arrange_starting_position::top_left, "top_left"}, {arrange_starting_position::top_right, "top_right"}, {arrange_starting_position::hide, "hide"}});}
45  inline std::wostream& operator<<(std::wostream& os, arrange_starting_position value) {return os << to_string(value, {{arrange_starting_position::bottom_left, L"bottom_left"}, {arrange_starting_position::bottom_right, L"bottom_right"}, {arrange_starting_position::top_left, L"top_left"}, {arrange_starting_position::top_right, L"top_right"}, {arrange_starting_position::hide, L"hide"}});}
47  }
48 }
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
arrange_starting_position
Specifies the starting position that the system uses to arrange minimized windows.
Definition: arrange_starting_position.h:19
@ bottom_left
Starts at the lower-left corner of the screen, which is the default position.
@ top_left
Starts at the upper-left corner of the screen.
@ hide
Hides minimized windows by moving them off the visible area of the screen.
@ bottom_right
Starts at the lower-right corner of the screen.
@ top_right
Starts at the upper-right corner of the screen.
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.