Exemplo n.º 1
0
 /// <summary>
 /// Creates a tooltip container where the tooltip is positioned at the bottom-right of
 /// the <see cref="CursorContainer.ActiveCursor"/> of the given <see cref="CursorContainer"/>.
 /// </summary>
 /// <param name="cursorContainer">The <see cref="CursorContainer"/> of which the <see cref="CursorContainer.ActiveCursor"/>
 /// shall be used for positioning. If null is provided, then a small offset from the current mouse position is used.</param>
 public TooltipContainer(CursorContainer cursorContainer = null)
 {
     this.cursorContainer = cursorContainer;
     AlwaysPresent        = true;
     RelativeSizeAxes     = Axes.Both;
     Add(tooltip          = CreateTooltip());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a tooltip container where the tooltip is positioned at the bottom-right of
 /// the <see cref="CursorContainer.ActiveCursor"/> of the given <see cref="CursorContainer"/>.
 /// </summary>
 /// <param name="cursorContainer">The <see cref="CursorContainer"/> of which the <see cref="CursorContainer.ActiveCursor"/>
 /// shall be used for positioning. If null is provided, then a small offset from the current mouse position is used.</param>
 public TooltipContainer(CursorContainer cursorContainer = null)
 {
     this.cursorContainer = cursorContainer;
     AddInternal(content  = new Container
     {
         RelativeSizeAxes = Axes.Both,
     });
     AddInternal((Drawable)(currentTooltip = CreateTooltip()));
     defaultTooltip = currentTooltip;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new <see cref="ContextMenuContainer"/>.
 /// </summary>
 /// <param name="cursorContainer">The <see cref="CursorContainer"/> of which the <see cref="CursorContainer.ActiveCursor"/>
 /// shall be used for positioning. The current mouse position is used if null is provided.</param>
 public ContextMenuContainer(CursorContainer cursorContainer = null)
 {
     this.cursorContainer = cursorContainer;
     RelativeSizeAxes     = Axes.Both;
     Add(menu             = CreateContextMenu());
 }