49 TRect(
const TRect<int8_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
53 TRect(
const TRect<int8_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
57 TRect(
const TRect<uint8_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
61 TRect(
const TRect<uint8_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
65 TRect(
const TRect<int16_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
69 TRect(
const TRect<int16_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
73 TRect(
const TRect<uint16_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
77 TRect(
const TRect<uint16_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
81 TRect(
const TRect<int32_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
85 TRect(
const TRect<int32_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
89 TRect(
const TRect<uint32_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
93 TRect(
const TRect<uint32_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
97 TRect(
const TRect<int64_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
101 TRect(
const TRect<int64_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
105 TRect(
const TRect<uint64_t>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
109 TRect(
const TRect<uint64_t>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
113 TRect(
const TRect<float>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
117 TRect(
const TRect<float>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
121 TRect(
const TRect<double>& tr) : left((T)tr.left), top((T)tr.top), right((T)tr.right), bottom((T)tr.bottom)
125 TRect(
const TRect<double>* pTr) : left((T)pTr->left), top((T)pTr->top), right((T)pTr->right), bottom((T)pTr->bottom)
129 TRect(int8_t left, int8_t top, int8_t right, int8_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
133 TRect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
137 TRect(int16_t left, int16_t top, int16_t right, int16_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
141 TRect(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
145 TRect(int32_t left, int32_t top, int32_t right, int32_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
149 TRect(uint32_t left, uint32_t top, uint32_t right, uint32_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
153 TRect(int64_t left, int64_t top, int64_t right, int64_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
157 TRect(uint64_t left, uint64_t top, uint64_t right, uint64_t bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
161 TRect(
float left,
float top,
float right,
float bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
165 TRect(
double left,
double top,
double right,
double bottom) : left((T)left), top((T)top), right((T)right), bottom((T)bottom)
171 this->left = (T)tr.left;
172 this->top = (T)tr.top;
173 this->right = (T)tr.right;
174 this->bottom = (T)tr.bottom;
179 this->left = (T)pTr->left;
180 this->top = (T)pTr->top;
181 this->right = (T)pTr->right;
182 this->bottom = (T)pTr->bottom;
187 this->left = (T)tr.left;
188 this->top = (T)tr.top;
189 this->right = (T)tr.right;
190 this->bottom = (T)tr.bottom;
195 this->left = (T)pTr->left;
196 this->top = (T)pTr->top;
197 this->right = (T)pTr->right;
198 this->bottom = (T)pTr->bottom;
203 this->left = (T)tr.left;
204 this->top = (T)tr.top;
205 this->right = (T)tr.right;
206 this->bottom = (T)tr.bottom;
211 this->left = (T)pTr->left;
212 this->top = (T)pTr->top;
213 this->right = (T)pTr->right;
214 this->bottom = (T)pTr->bottom;
219 this->left = (T)tr.left;
220 this->top = (T)tr.top;
221 this->right = (T)tr.right;
222 this->bottom = (T)tr.bottom;
227 this->left = (T)pTr->left;
228 this->top = (T)pTr->top;
229 this->right = (T)pTr->right;
230 this->bottom = (T)pTr->bottom;
235 this->left = (T)tr.left;
236 this->top = (T)tr.top;
237 this->right = (T)tr.right;
238 this->bottom = (T)tr.bottom;
243 this->left = (T)pTr->left;
244 this->top = (T)pTr->top;
245 this->right = (T)pTr->right;
246 this->bottom = (T)pTr->bottom;
251 this->left = (T)tr.left;
252 this->top = (T)tr.top;
253 this->right = (T)tr.right;
254 this->bottom = (T)tr.bottom;
259 this->left = (T)pTr->left;
260 this->top = (T)pTr->top;
261 this->right = (T)pTr->right;
262 this->bottom = (T)pTr->bottom;
267 this->left = (T)tr.left;
268 this->top = (T)tr.top;
269 this->right = (T)tr.right;
270 this->bottom = (T)tr.bottom;
275 this->left = (T)pTr->left;
276 this->top = (T)pTr->top;
277 this->right = (T)pTr->right;
278 this->bottom = (T)pTr->bottom;
283 this->left = (T)tr.left;
284 this->top = (T)tr.top;
285 this->right = (T)tr.right;
286 this->bottom = (T)tr.bottom;
291 this->left = (T)pTr->left;
292 this->top = (T)pTr->top;
293 this->right = (T)pTr->right;
294 this->bottom = (T)pTr->bottom;
299 this->left = (T)tr.left;
300 this->top = (T)tr.top;
301 this->right = (T)tr.right;
302 this->bottom = (T)tr.bottom;
307 this->left = (T)pTr->left;
308 this->top = (T)pTr->top;
309 this->right = (T)pTr->right;
310 this->bottom = (T)pTr->bottom;
315 this->left = (T)tr.left;
316 this->top = (T)tr.top;
317 this->right = (T)tr.right;
318 this->bottom = (T)tr.bottom;
323 this->left = (T)pTr->left;
324 this->top = (T)pTr->top;
325 this->right = (T)pTr->right;
326 this->bottom = (T)pTr->bottom;
329 void Set(int8_t left, int8_t top, int8_t right, int8_t bottom)
331 this->left = (T)left;
333 this->right = (T)right;
334 this->bottom = (T)bottom;
337 void Set(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom)
339 this->left = (T)left;
341 this->right = (T)right;
342 this->bottom = (T)bottom;
345 void Set(int16_t left, int16_t top, int16_t right, int16_t bottom)
347 this->left = (T)left;
349 this->right = (T)right;
350 this->bottom = (T)bottom;
353 void Set(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom)
355 this->left = (T)left;
357 this->right = (T)right;
358 this->bottom = (T)bottom;
361 void Set(int32_t left, int32_t top, int32_t right, int32_t bottom)
363 this->left = (T)left;
365 this->right = (T)right;
366 this->bottom = (T)bottom;
369 void Set(uint32_t left, uint32_t top, uint32_t right, uint32_t bottom)
371 this->left = (T)left;
373 this->right = (T)right;
374 this->bottom = (T)bottom;
377 void Set(int64_t left, int64_t top, int64_t right, int64_t bottom)
379 this->left = (T)left;
381 this->right = (T)right;
382 this->bottom = (T)bottom;
385 void Set(uint64_t left, uint64_t top, uint64_t right, uint64_t bottom)
387 this->left = (T)left;
389 this->right = (T)right;
390 this->bottom = (T)bottom;
393 void Set(
float left,
float top,
float right,
float bottom)
395 this->left = (T)left;
397 this->right = (T)right;
398 this->bottom = (T)bottom;
401 void Set(
double left,
double top,
double right,
double bottom)
403 this->left = (T)left;
405 this->right = (T)right;
406 this->bottom = (T)bottom;
410 const TRect<T>& operator=(int32_t value)
412 left = top = right = bottom = (T)value;
417 const TRect<T>& operator=(int64_t value)
419 left = top = right = bottom = (T)value;
424 const TRect<T>& operator=(
float value)
426 left = top = right = bottom = (T)value;
431 const TRect<T>& operator=(
double value)
433 left = top = right = bottom = (T)value;
443 bottom = (T)tr.bottom;
453 bottom = (T)tr.bottom;
463 bottom = (T)tr.bottom;
473 bottom = (T)tr.bottom;
480 return left == (T)tr.left && top == (T)tr.top && right == (T)tr.right && bottom == (T)tr.bottom;
485 return left == (T)tr.left && top == (T)tr.top && right == (T)tr.right && bottom == (T)tr.bottom;
490 return left == (T)tr.left && top == (T)tr.top && right == (T)tr.right && bottom == (T)tr.bottom;
495 return left == (T)tr.left && top == (T)tr.top && right == (T)tr.right && bottom == (T)tr.bottom;
500 return left != (T)tr.left || top != (T)tr.top || right != (T)tr.right || bottom != (T)tr.bottom;
505 return left != (T)tr.left || top != (T)tr.top || right != (T)tr.right || bottom != (T)tr.bottom;
510 return left != (T)tr.left || top != (T)tr.top || right != (T)tr.right || bottom != (T)tr.bottom;
515 return left != (T)tr.left || top != (T)tr.top || right != (T)tr.right || bottom != (T)tr.bottom;
518 const TRect<T>& operator+=(int32_t value)
528 const TRect<T>& operator+=(int64_t value)
538 const TRect<T>& operator+=(
float value)
548 const TRect<T>& operator+=(
double value)
562 right += (T)tr.right;
563 bottom += (T)tr.bottom;
572 right += (T)tr.right;
573 bottom += (T)tr.bottom;
582 right += (T)tr.right;
583 bottom += (T)tr.bottom;
592 right += (T)tr.right;
593 bottom += (T)tr.bottom;
598 const TRect<T>& operator-=(int32_t value)
608 const TRect<T>& operator-=(int64_t value)
618 const TRect<T>& operator-=(
float value)
628 const TRect<T>& operator-=(
double value)
642 right -= (T)tr.right;
643 bottom -= (T)tr.bottom;
652 right -= (T)tr.right;
653 bottom -= (T)tr.bottom;
662 right -= (T)tr.right;
663 bottom -= (T)tr.bottom;
672 right -= (T)tr.right;
673 bottom -= (T)tr.bottom;
678 const TRect<T>& operator*=(int32_t value)
688 const TRect<T>& operator*=(int64_t value)
698 const TRect<T>& operator*=(
float value)
708 const TRect<T>& operator*=(
double value)
722 right *= (T)tr.right;
723 bottom *= (T)tr.bottom;
732 right *= (T)tr.right;
733 bottom *= (T)tr.bottom;
742 right *= (T)tr.right;
743 bottom *= (T)tr.bottom;
752 right *= (T)tr.right;
753 bottom *= (T)tr.bottom;
758 const TRect<T>& operator/=(int32_t value)
768 const TRect<T>& operator/=(int64_t value)
778 const TRect<T>& operator/=(
float value)
788 const TRect<T>& operator/=(
double value)
802 right /= (T)tr.right;
803 bottom /= (T)tr.bottom;
812 right /= (T)tr.right;
813 bottom /= (T)tr.bottom;
822 right /= (T)tr.right;
823 bottom /= (T)tr.bottom;
832 right /= (T)tr.right;
833 bottom /= (T)tr.bottom;
841 trReturn.left = left + (T)value;
842 trReturn.top = top + (T)value;
843 trReturn.right = right + (T)value;
844 trReturn.bottom = bottom + (T)value;
851 trReturn.left = left + (T)value;
852 trReturn.top = top + (T)value;
853 trReturn.right = right + (T)value;
854 trReturn.bottom = bottom + (T)value;
861 trReturn.left = left + (T)value;
862 trReturn.top = top + (T)value;
863 trReturn.right = right + (T)value;
864 trReturn.bottom = bottom + (T)value;
871 trReturn.left = left + (T)value;
872 trReturn.top = top + (T)value;
873 trReturn.right = right + (T)value;
874 trReturn.bottom = bottom + (T)value;
881 trReturn.left = left + (T)tr.left;
882 trReturn.top = top + (T)tr.top;
883 trReturn.right = right + (T)tr.right;
884 trReturn.bottom = bottom + (T)tr.bottom;
891 trReturn.left = left + (T)tr.left;
892 trReturn.top = top + (T)tr.top;
893 trReturn.right = right + (T)tr.right;
894 trReturn.bottom = bottom + (T)tr.bottom;
901 trReturn.left = left + (T)tr.left;
902 trReturn.top = top + (T)tr.top;
903 trReturn.right = right + (T)tr.right;
904 trReturn.bottom = bottom + (T)tr.bottom;
911 trReturn.left = left + (T)tr.left;
912 trReturn.top = top + (T)tr.top;
913 trReturn.right = right + (T)tr.right;
914 trReturn.bottom = bottom + (T)tr.bottom;
921 trReturn.left = left - (T)value;
922 trReturn.top = top - (T)value;
923 trReturn.right = right - (T)value;
924 trReturn.bottom = bottom - (T)value;
931 trReturn.left = left - (T)value;
932 trReturn.top = top - (T)value;
933 trReturn.right = right - (T)value;
934 trReturn.bottom = bottom - (T)value;
941 trReturn.left = left - (T)value;
942 trReturn.top = top - (T)value;
943 trReturn.right = right - (T)value;
944 trReturn.bottom = bottom - (T)value;
951 trReturn.left = left - (T)value;
952 trReturn.top = top - (T)value;
953 trReturn.right = right - (T)value;
954 trReturn.bottom = bottom - (T)value;
961 trReturn.left = left - (T)tr.left;
962 trReturn.top = top - (T)tr.top;
963 trReturn.right = right - (T)tr.right;
964 trReturn.bottom = bottom - (T)tr.bottom;
971 trReturn.left = left - (T)tr.left;
972 trReturn.top = top - (T)tr.top;
973 trReturn.right = right - (T)tr.right;
974 trReturn.bottom = bottom - (T)tr.bottom;
981 trReturn.left = left - (T)tr.left;
982 trReturn.top = top - (T)tr.top;
983 trReturn.right = right - (T)tr.right;
984 trReturn.bottom = bottom - (T)tr.bottom;
991 trReturn.left = left - (T)tr.left;
992 trReturn.top = top - (T)tr.top;
993 trReturn.right = right - (T)tr.right;
994 trReturn.bottom = bottom - (T)tr.bottom;
1001 trReturn.left = left * (T)value;
1002 trReturn.top = top * (T)value;
1003 trReturn.right = right * (T)value;
1004 trReturn.bottom = bottom * (T)value;
1011 trReturn.left = left * (T)value;
1012 trReturn.top = top * (T)value;
1013 trReturn.right = right * (T)value;
1014 trReturn.bottom = bottom * (T)value;
1021 trReturn.left = left * (T)value;
1022 trReturn.top = top * (T)value;
1023 trReturn.right = right * (T)value;
1024 trReturn.bottom = bottom * (T)value;
1031 trReturn.left = left * (T)value;
1032 trReturn.top = top * (T)value;
1033 trReturn.right = right * (T)value;
1034 trReturn.bottom = bottom * (T)value;
1041 trReturn.left = left * (T)tr.left;
1042 trReturn.top = top * (T)tr.top;
1043 trReturn.right = right * (T)tr.right;
1044 trReturn.bottom = bottom * (T)tr.bottom;
1051 trReturn.left = left * (T)tr.left;
1052 trReturn.top = top * (T)tr.top;
1053 trReturn.right = right * (T)tr.right;
1054 trReturn.bottom = bottom * (T)tr.bottom;
1061 trReturn.left = left * (T)tr.left;
1062 trReturn.top = top * (T)tr.top;
1063 trReturn.right = right * (T)tr.right;
1064 trReturn.bottom = bottom * (T)tr.bottom;
1071 trReturn.left = left * (T)tr.left;
1072 trReturn.top = top * (T)tr.top;
1073 trReturn.right = right * (T)tr.right;
1074 trReturn.bottom = bottom * (T)tr.bottom;
1081 trReturn.left = left / (T)value;
1082 trReturn.top = top / (T)value;
1083 trReturn.right = right / (T)value;
1084 trReturn.bottom = bottom / (T)value;
1091 trReturn.left = left / (T)value;
1092 trReturn.top = top / (T)value;
1093 trReturn.right = right / (T)value;
1094 trReturn.bottom = bottom / (T)value;
1101 trReturn.left = left / (T)value;
1102 trReturn.top = top / (T)value;
1103 trReturn.right = right / (T)value;
1104 trReturn.bottom = bottom / (T)value;
1111 trReturn.left = left / (T)value;
1112 trReturn.top = top / (T)value;
1113 trReturn.right = right / (T)value;
1114 trReturn.bottom = bottom / (T)value;
1121 trReturn.left = left / (T)tr.left;
1122 trReturn.top = top / (T)tr.top;
1123 trReturn.right = right / (T)tr.right;
1124 trReturn.bottom = bottom / (T)tr.bottom;
1131 trReturn.left = left / (T)tr.left;
1132 trReturn.top = top / (T)tr.top;
1133 trReturn.right = right / (T)tr.right;
1134 trReturn.bottom = bottom / (T)tr.bottom;
1141 trReturn.left = left / (T)tr.left;
1142 trReturn.top = top / (T)tr.top;
1143 trReturn.right = right / (T)tr.right;
1144 trReturn.bottom = bottom / (T)tr.bottom;
1151 trReturn.left = left / (T)tr.left;
1152 trReturn.top = top / (T)tr.top;
1153 trReturn.right = right / (T)tr.right;
1154 trReturn.bottom = bottom / (T)tr.bottom;
1160 return TRect<T>((T)value + tr.left, (T)value + tr.top, (T)value + tr.right, (T)value + tr.bottom);
1164 return TRect<T>((T)value + tr.left, (T)value + tr.top, (T)value + tr.right, (T)value + tr.bottom);
1168 return TRect<T>((T)value + tr.left, (T)value + tr.top, (T)value + tr.right, (T)value + tr.bottom);
1172 return TRect<T>((T)value + tr.left, (T)value + tr.top, (T)value + tr.right, (T)value + tr.bottom);
1177 return TRect<T>((T)value - tr.left, (T)value - tr.top, (T)value - tr.right, (T)value - tr.bottom);
1181 return TRect<T>((T)value - tr.left, (T)value - tr.top, (T)value - tr.right, (T)value - tr.bottom);
1185 return TRect<T>((T)value - tr.left, (T)value - tr.top, (T)value - tr.right, (T)value - tr.bottom);
1189 return TRect<T>((T)value - tr.left, (T)value - tr.top, (T)value - tr.right, (T)value - tr.bottom);
1194 return TRect<T>((T)value * tr.left, (T)value * tr.top, (T)value * tr.right, (T)value * tr.bottom);
1198 return TRect<T>((T)value * tr.left, (T)value * tr.top, (T)value * tr.right, (T)value * tr.bottom);
1202 return TRect<T>((T)value * tr.left, (T)value * tr.top, (T)value * tr.right, (T)value * tr.bottom);
1206 return TRect<T>((T)value * tr.left, (T)value * tr.top, (T)value * tr.right, (T)value * tr.bottom);
1211 return TRect<T>((T)value / tr.left, (T)value / tr.top, (T)value / tr.right, (T)value / tr.bottom);
1215 return TRect<T>((T)value / tr.left, (T)value / tr.top, (T)value / tr.right, (T)value / tr.bottom);
1219 return TRect<T>((T)value / tr.left, (T)value / tr.top, (T)value / tr.right, (T)value / tr.bottom);
1223 return TRect<T>((T)value / tr.left, (T)value / tr.top, (T)value / tr.right, (T)value / tr.bottom);
Simplified class representing a rectangle.
Definition TRect.h:37