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.
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 }
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
form_start_position
Specifies the initial position of a form.
Definition: form_start_position.h:18
@ center_parent
The form is centered within the bounds of its parent form.
@ manual
The position of the form is determined by the Location property.
@ windows_default_bounds
The form is positioned at the Windows default location and has the bounds determined by Windows defau...
@ center_screen
The form is centered on the current display, and has the dimensions specified in the form's size.
@ windows_default_location
The form is positioned at the Windows default location and has the dimensions specified in the form's...
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.