| 233 | } |
| 234 | |
| 235 | bool Pane::inDragArea(Vec2I const& position) const { |
| 236 | return inWindow(position) && (position[1] < (this->position()[1] + m_footerSize[1]) |
| 237 | || position[1] > (this->position()[1] + (m_footerSize[1] + m_bodySize[1]))); |
| 238 | } |
| 239 | |
| 240 | Vec2I Pane::cursorRelativeToPane(Vec2I const& position) const { |
| 241 | return position - this->position(); |