branch | cpp_gui |
changeset 6264 | 9fc3b5467396 |
parent 6263 | 19dab6a68886 |
child 6274 | 35a9b459de19 |
6263:19dab6a68886 | 6264:9fc3b5467396 |
---|---|
156 return (bottom_right - top_left + PointT<T>(1, 1)); |
156 return (bottom_right - top_left + PointT<T>(1, 1)); |
157 } |
157 } |
158 |
158 |
159 PointT<T> CenterPt() const |
159 PointT<T> CenterPt() const |
160 { |
160 { |
161 return (top_left + bottom_right) / 2; |
161 return (top_left + bottom_right + PointT<T>(1, 1)) / 2; |
162 } |
162 } |
163 |
163 |
164 void SetLeft(T val) |
164 void SetLeft(T val) |
165 { |
165 { |
166 top_left.x = val; |
166 top_left.x = val; |