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.
form_start_position.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
18  enum class form_start_position {
20  manual = 0,
22  center_screen = 1,
28  center_parent = 4,
29  };
30 
32  inline std::ostream& operator<<(std::ostream& os, form_start_position value) {return os << to_string(value, {{form_start_position::manual, "manual"}, {form_start_position::center_screen, "center_screen"}, {form_start_position::windows_default_location, "windows_default_location"}, {form_start_position::windows_default_bounds, "windows_default_bounds"}, {form_start_position::center_parent, "center_parent"}});}
33  inline std::wostream& operator<<(std::wostream& os, form_start_position value) {return os << to_string(value, {{form_start_position::manual, L"manual"}, {form_start_position::center_screen, L"center_screen"}, {form_start_position::windows_default_location, L"windows_default_location"}, {form_start_position::windows_default_bounds, L"windows_default_bounds"}, {form_start_position::center_parent, L"center_parent"}});}
35  }
36 }
form_start_position
Specifies the initial position of a form.
Definition: form_start_position.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The form is positioned at the Windows default location and has the dimensions specified in the form&#39;s...
The position of the form is determined by the Location property.
Contains xtd::ustring class.
The form is positioned at the Windows default location and has the bounds determined by Windows defau...
The form is centered within the bounds of its parent form.
The form is centered on the current display, and has the dimensions specified in the form&#39;s size...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
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