MonoDevelop.Ide.CodeCompletion.TooltipInformationWindow.RepositionWindow C# (CSharp) Method

RepositionWindow() public method

public RepositionWindow ( Gdk newCaret = null ) : void
newCaret Gdk
return void
		public override void RepositionWindow(Gdk.Rectangle? newCaret = null)
		{
			// Setting the opicity delayed to 1 is a hack to ensure smooth animation popup see "Bug 32046 - Janky animations on tooltips"
			Opacity = 0;
			base.RepositionWindow(newCaret);
			GLib.Timeout.Add (50, delegate {
				Opacity = 1;
				return false;
			});
		}

Usage Example

Exemplo n.º 1
0
		protected override Window CreateTooltipWindow (TextEditor editor, int offset, Gdk.ModifierType modifierState, TooltipItem item)
		{
			var doc = IdeApp.Workbench.ActiveDocument;
			if (doc == null)
				return null;

			var titem = item.Item as TTI;

			if (titem == null)
				return null;

			var result = new TooltipInformationWindow ();
			result.ShowArrow = true;

			foreach(var i in AmbiguousType.TryDissolve(titem.t))
			{
				if (i == null)
					continue;
				var tooltipInformation = TooltipInfoGen.Create(i, editor.ColorStyle);
				if (tooltipInformation != null && !string.IsNullOrEmpty(tooltipInformation.SignatureMarkup))
					result.AddOverload(tooltipInformation);
			}

			if (result.Overloads < 1) {
				result.Dispose ();
				return null;
			}

			result.RepositionWindow ();
			return result;
		}
All Usage Examples Of MonoDevelop.Ide.CodeCompletion.TooltipInformationWindow::RepositionWindow