| 417 | } |
| 418 | |
| 419 | Uint32 UIWidget::onMouseMove( const Vector2i& position, const Uint32& flags ) { |
| 420 | EventDispatcher* eventDispatcher = getEventDispatcher(); |
| 421 | |
| 422 | if ( NULL != eventDispatcher && eventDispatcher->getMouseOverNode() == this ) { |
| 423 | if ( mVisible && NULL != mTooltip && !mTooltip->getText().empty() ) { |
| 424 | UIThemeManager* themeManager = getUISceneNode()->getUIThemeManager(); |
| 425 | |
| 426 | if ( themeManager->getTooltipFollowMouse() ) { |
| 427 | mTooltip->setPixelsPosition( getTooltipPosition() ); |
| 428 | } else if ( !mTooltip->dontAutoHideOnMouseMove() ) { |
| 429 | mTooltip->hide(); |
| 430 | } |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | return UINode::onMouseMove( position, flags ); |
| 435 | } |
| 436 | |
| 437 | Uint32 UIWidget::onMouseOver( const Vector2i& position, const Uint32& flags ) { |
| 438 | EventDispatcher* eventDispatcher = getEventDispatcher(); |
nothing calls this directly
no test coverage detected