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