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.
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
8 namespace xtd {
10  namespace forms {
18  enum class size_type {
20  auto_size = 0,
22  absolute = 1,
24  percent = 2,
25  };
28  inline std::ostream& operator<<(std::ostream& os, size_type value) {return os << to_string(value, {{size_type::auto_size, "auto_size"}, {size_type::absolute, "absolute"}, {size_type::percent, "percent"}});}
29  inline std::wostream& operator<<(std::wostream& os, size_type value) {return os << to_string(value, {{size_type::auto_size, L"auto_size"}, {size_type::absolute, L"absolute"}, {size_type::percent, L"percent"}});}
31  }
32 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition: size_type.h:18
The control should be sized as a percentage of the parent container.
Contains xtd::ustring class.
The control should be sized to an exact number of pixels.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The control should be automatically sized to share space with its peers.
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