Changeset View
Changeset View
Standalone View
Standalone View
misc/rect.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
62 | * this makes sure width and height are > 0 ... | 62 | * this makes sure width and height are > 0 ... | ||
63 | */ | 63 | */ | ||
64 | void normalize(); | 64 | void normalize(); | ||
65 | /** | 65 | /** | ||
66 | * this makes sure p is in the rect, extending it if necessary... | 66 | * this makes sure p is in the rect, extending it if necessary... | ||
67 | */ | 67 | */ | ||
68 | void setContains( const Coordinate &p ); | 68 | void setContains( const Coordinate &p ); | ||
69 | /** | 69 | /** | ||
70 | * Assignment operator. | ||||
71 | */ | ||||
72 | Rect& operator=( const Rect& other ); | ||||
73 | /** | ||||
70 | * moves the rect while keeping the size constant... | 74 | * moves the rect while keeping the size constant... | ||
71 | */ | 75 | */ | ||
72 | void moveBy( const Coordinate &p ); | 76 | void moveBy( const Coordinate &p ); | ||
73 | /** | 77 | /** | ||
74 | * synonym for moveBy... | 78 | * synonym for moveBy... | ||
75 | */ | 79 | */ | ||
76 | Rect& operator+=( const Coordinate &p ) { moveBy(p); return *this; } | 80 | Rect& operator+=( const Coordinate &p ) { moveBy(p); return *this; } | ||
77 | /** | 81 | /** | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |