blob: aae62d35efe638aab2ac07b8ffc99a3e38fc53d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "cru/ui/render/layout_utility.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
|