blob: 03252f1c2f5f3aefdf94605ba8e7968d2ee2337f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "cru/ui/render/LayoutUtility.hpp"
#include <algorithm>
namespace cru::ui::render {
Size Min(const Size& left, const Size& right) {
return Size{std::min(left.width, right.width),
std::min(left.height, right.height)};
}
Size Max(const Size& left, const Size& right) {
return Size{std::max(left.width, right.width),
std::max(left.height, right.height)};
}
} // namespace cru::ui::render
|