| 1638 | } |
| 1639 | |
| 1640 | void GuiCanvas::mouseUnlock(GuiControl *lockingControl) |
| 1641 | { |
| 1642 | if (static_cast<GuiControl*>(mMouseCapturedControl) != lockingControl) |
| 1643 | return; |
| 1644 | |
| 1645 | GuiEvent evt; |
| 1646 | evt.mousePoint.x = S32(mCursorPt.x); |
| 1647 | evt.mousePoint.y = S32(mCursorPt.y); |
| 1648 | |
| 1649 | GuiControl * controlHit = findHitControl(evt.mousePoint); |
| 1650 | if(controlHit != mMouseCapturedControl) |
| 1651 | { |
| 1652 | mMouseControl = controlHit; |
| 1653 | mMouseControlClicked = false; |
| 1654 | if(bool(mMouseControl)) |
| 1655 | mMouseControl->onMouseEnter(evt); |
| 1656 | } |
| 1657 | mMouseCapturedControl = NULL; |
| 1658 | } |
| 1659 | |
| 1660 | void GuiCanvas::paint() |
| 1661 | { |
no test coverage detected