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.
image_layout.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
17  enum class image_layout {
19  none = 0,
21  tile = 1,
23  center = 2,
25  stretch = 3,
27  zoom = 4,
28  };
29 
31  inline std::ostream& operator<<(std::ostream& os, image_layout value) {return os << to_string(value, {{image_layout::none, "none"}, {image_layout::tile, "tile"}, {image_layout::center, "center"}, {image_layout::stretch, "stretch"}, {image_layout::zoom, "zoom"}});}
32  inline std::wostream& operator<<(std::wostream& os, image_layout value) {return os << to_string(value, {{image_layout::none, L"none"}, {image_layout::tile, L"tile"}, {image_layout::center, L"center"}, {image_layout::stretch, L"stretch"}, {image_layout::zoom, L"zoom"}});}
34  }
35 }
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
image_layout
Specifies the position of the image on the control.
Definition: image_layout.h:17
@ tile
The image is tiled across the control's client rectangle.
@ zoom
The image is enlarged within the control's client rectangle.
@ none
The image is left-aligned at the top across the control's client rectangle.
@ stretch
The image is stretched across the control's client rectangle.
@ center
The image is centered within the control's client rectangle.
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.