94 case vertical_alignment::top:
96 case horizontal_alignment::left:
return alignment::top_left;
97 case horizontal_alignment::center:
return alignment::top_center;
98 case horizontal_alignment::right:
return alignment::top_right;
99 default: tt_no_default();
101 case vertical_alignment::middle:
103 case horizontal_alignment::left:
return alignment::middle_left;
104 case horizontal_alignment::center:
return alignment::middle_center;
105 case horizontal_alignment::right:
return alignment::middle_right;
106 default: tt_no_default();
108 case vertical_alignment::bottom:
110 case horizontal_alignment::left:
return alignment::bottom_left;
111 case horizontal_alignment::center:
return alignment::bottom_center;
112 case horizontal_alignment::right:
return alignment::bottom_right;
113 default: tt_no_default();
115 default: tt_no_default();
139 case horizontal_alignment::left:
140 return lhs == alignment::top_left || lhs == alignment::middle_left || lhs == alignment::bottom_left;
142 case horizontal_alignment::center:
143 return lhs == alignment::top_center || lhs == alignment::middle_center || lhs == alignment::bottom_center;
145 case horizontal_alignment::right:
146 return lhs == alignment::top_right || lhs == alignment::middle_right || lhs == alignment::bottom_right;
148 default: tt_no_default();
161 case vertical_alignment::top:
162 return lhs == alignment::top_left || lhs == alignment::top_center || lhs == alignment::top_right;
164 case vertical_alignment::middle:
165 return lhs == alignment::middle_left || lhs == alignment::middle_center || lhs == alignment::middle_right;
167 case vertical_alignment::bottom:
168 return lhs == alignment::bottom_left || lhs == alignment::bottom_center || lhs == alignment::bottom_right;
170 default: tt_no_default();
horizontal_alignment
Horizontal alignment.
Definition alignment.hpp:31
@ center
Align to the horizontal-center.
alignment
Vertical and horizontal alignment.
Definition alignment.hpp:47
@ top_center
Align to the top and horizontal-center.
@ bottom_center
Align to the bottom and horizontal-center.
@ bottom_left
Align to the bottom and left.
@ top_left
Align to the top and left.
@ middle_left
Align to the vertical-middle and left.
@ bottom_right
Align to the bottom and right.
@ middle_center
Align to the vertical-middle and horizontal-center.
@ top_right
Align to the top and right.
@ middle_right
Align to the vertical-middle and right.
constexpr bool operator==(alignment lhs, horizontal_alignment rhs) noexcept
Check if the horizontal alignments are equal.
Definition alignment.hpp:136
constexpr alignment operator|(vertical_alignment lhs, horizontal_alignment rhs) noexcept
Combine vertical and horizontal alignment.
Definition alignment.hpp:91
vertical_alignment
Vertical alignment.
Definition alignment.hpp:15
@ middle
Align to the vertical-middle.
@ bottom
Align to the bottom.