Lines Matching defs:Size
30 struct Size;
31 bool operator==(const Size& lhs, const Size& rhs);
36 struct Size {
41 static const Size INVALID;
42 static const Size EMPTY;
48 Size() : Size(INVALID) {}
50 Size(T&& w, T&& h)
51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))),
52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {}
63 width = Size::clamp<int32_t, T>(std::forward<T>(v));
67 height = Size::clamp<int32_t, T>(std::forward<T>(v));
74 void set(const Size& size) { *this = size; }
77 set(Size(std::forward<T>(w), std::forward<T>(h)));
112 static Size::remove_cv_reference_t<ToType>
114 std::numeric_limits<Size::remove_cv_reference_t<ToType>>::is_specialized &&
115 std::numeric_limits<Size::remove_cv_reference_t<FromType>>::is_specialized,
183 inline bool operator==(const Size& lhs, const Size& rhs) {
187 inline bool operator!=(const Size& lhs, const Size& rhs) {
191 inline bool operator<(const Size& lhs, const Size& rhs) {
198 static inline void PrintTo(const Size& size, ::std::ostream* os) {
199 *os << "Size(" << size.width << ", " << size.height << ")";