Nez.UI.TooltipManager.enter C# (CSharp) Méthode

enter() public méthode

public enter ( Tooltip tooltip ) : void
tooltip Tooltip
Résultat void
		public void enter( Tooltip tooltip )
		{
			_shownTooltip = tooltip;
			stopShowTask();
			if( enabled || tooltip.getAlways() )
			{
				if( _time == 0 || tooltip.getInstant() )
					startShowTask( 0 );
				else
					startShowTask( _time );
			}
		}

Usage Example

        public override Element hit(Vector2 point)
        {
            // we do some rejiggering here by checking for hits on our target and using that
            var local = _targetElement.screenToLocalCoordinates(point);

            if (_targetElement.hit(local) != null)
            {
                if (!_isMouseOver)
                {
                    _isMouseOver = true;
                    _manager.enter(this);
                }
                setContainerPosition(local.X, local.Y);
            }
            else if (_isMouseOver)
            {
                _isMouseOver = false;
                _manager.hide(this);
            }
            return(null);
        }