示例#1
0
 public static TooltipManager GetInstance()
 {
     if (instance == null)
     {
         instance = new TooltipManager();
     }
     return(instance);
 }
示例#2
0
文件: Tooltip.cs 项目: JonSnowbd/Ash
        public Tooltip(Element contents, Element targetElement)
        {
            _manager = TooltipManager.GetInstance();

            _container = new Container(contents);
            _container.SetOrigin(AlignInternal.Center);
            _targetElement = targetElement;
            _container.SetTouchable(Touchable.Disabled);
        }