Widget* Widget::getComponent(int x, int y) { return inComponent(x,y) ? this : NULL; }
bool isMouseOver() const { sa::vec3<float> mousePos; m_pUserIO->getCursorPosition(mousePos); mousePos.y /= m_pWindow->getAspectRatio(); return inComponent(mousePos.x, mousePos.y); }