// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using Tango.Scripting.Editors.Document;
using Tango.Scripting.Editors.Editing;
using Tango.Scripting.Editors.Rendering;
namespace Tango.Scripting.Editors.Search
{
class SearchResultBackgroundRenderer : IBackgroundRenderer
{
TextSegmentCollection<SearchResult> currentResults = new TextSegmentCollection<SearchResult>();
public TextSegmentCollection<SearchResult> CurrentResults {
get { return currentResults; }
}
public KnownLayer Layer {
get {
// draw behind selection
return KnownLayer.Selection;
}
}
public SearchResultBackgroundRenderer()