11 Commits

Author SHA1 Message Date
Dmitry Marakasov
7b4b6c051a Don't use allocations inside Point and Rect
Instead, use boolean validity flag, which is much more practical
2014-02-21 17:11:48 +04:00
Dmitry Marakasov
f6d6572602 Fix Rect::FromCenter and add test for it 2014-02-11 06:01:36 +04:00
Dmitry Marakasov
66f4d5b57a Properly handle self-assignment 2014-02-11 05:51:15 +04:00
Dmitry Marakasov
1e4e1cb560 Define default ctors/assignments in source files to avoid using objects of incomplete type in them 2014-02-11 05:51:13 +04:00
Dmitry Marakasov
0365329dc0 Add Point and Rect comparison operators 2014-02-11 05:44:08 +04:00
Dmitry Marakasov
802322ef1b Add Point and Rect setters
While here, fix Rect::GetX2 and Rect::GetY2 off-by-one errors
2014-02-11 04:33:24 +04:00
Dmitry Marakasov
14819ba188 Remove Swap() methods as there's std::swap for this 2014-02-11 04:19:51 +04:00
Dmitry Marakasov
92925a9620 Add a way to swap some types of objects 2013-12-18 06:15:46 +04:00
Dmitry Marakasov
aa615060e4 Add getters and checks for nullness 2013-09-18 03:04:47 +04:00
Dmitry Marakasov
3011a62589 Add another named constructor for Rect 2013-09-06 02:03:47 +04:00
Dmitry Marakasov
c122f11643 Initial import 2013-09-06 01:47:05 +04:00