MCPcopy Create free account
hub / github.com/SpartanJ/eepp / onMouseMove

Method onMouseMove

src/eepp/ui/uiwidget.cpp:419–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419Uint32 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
437Uint32 UIWidget::onMouseOver( const Vector2i& position, const Uint32& flags ) {
438 EventDispatcher* eventDispatcher = getEventDispatcher();

Callers

nothing calls this directly

Calls 7

getMouseOverNodeMethod · 0.80
getUIThemeManagerMethod · 0.80
setPixelsPositionMethod · 0.80
emptyMethod · 0.45
getTextMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected