xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
pen_alignment.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/ustring.h>
6
8namespace xtd {
10 namespace drawing {
12 namespace drawing2d {
21 enum class pen_alignment {
23 center = 0,
25 inset = 1,
27 outset = 2,
29 left = 3,
31 right = 4,
32 };
33
35 inline std::ostream& operator<<(std::ostream& os, pen_alignment value) {return os << to_string(value, {{pen_alignment::center, "center"}, {pen_alignment::inset, "inset"}, {pen_alignment::outset, "outset"}, {pen_alignment::left, "left"}, {pen_alignment::right, "right"}});}
36 inline std::wostream& operator<<(std::wostream& os, pen_alignment value) {return os << to_string(value, {{pen_alignment::center, L"center"}, {pen_alignment::inset, L"inset"}, {pen_alignment::outset, L"outset"}, {pen_alignment::left, L"left"}, {pen_alignment::right, L"right"}});}
38 }
39 }
40}
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
pen_alignment
SSpecifies the alignment of a xtd::drawing::pen object in relation to the theoretical,...
Definition: pen_alignment.h:21
@ right
Specifies the xtd::drawing::pen is positioned to the right of the theoretical line.
@ outset
Specifies the xtd::drawing::pen is positioned on the outside of the theoretical line.
@ left
Specifies the xtd::drawing::pen is positioned to the left of the theoretical line.
@ inset
Specifies that the xtd::drawing::pen is positioned on the inside of the theoretical line.
@ center
Specifies that the xtd::drawing::pen object is centered over the theoretical line.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.