| 256 | } |
| 257 | |
| 258 | Point Frame::positionInWindow() const { |
| 259 | Point global_position = topLeft(); |
| 260 | Frame* frame = parent_; |
| 261 | while (frame) { |
| 262 | global_position = global_position + frame->topLeft(); |
| 263 | frame = frame->parent_; |
| 264 | } |
| 265 | |
| 266 | return global_position; |
| 267 | } |
| 268 | |
| 269 | Bounds Frame::relativeBounds(const Frame* other) const { |
| 270 | Point position = positionInWindow(); |
no test coverage detected