mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Functionally, no differences. - Removed Core projects. - Core.Common => Microsoft.CmdPal.Common - Core.ViewModels => Microsoft.CmdPal.UI.ViewModels --------- Co-authored-by: Jiří Polášek <me@jiripolasek.com>
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using Microsoft.CmdPal.Common.Text;
|
|
|
|
namespace Microsoft.CmdPal.Common.Helpers;
|
|
|
|
/// <summary>
|
|
/// Represents an item that can provide precomputed fuzzy matching targets for its title and subtitle.
|
|
/// </summary>
|
|
public interface IPrecomputedListItem
|
|
{
|
|
/// <summary>
|
|
/// Gets the fuzzy matching target for the item's title.
|
|
/// </summary>
|
|
/// <param name="matcher">The precomputed fuzzy matcher used to build the target.</param>
|
|
/// <returns>The fuzzy target for the title.</returns>
|
|
FuzzyTarget GetTitleTarget(IPrecomputedFuzzyMatcher matcher);
|
|
|
|
/// <summary>
|
|
/// Gets the fuzzy matching target for the item's subtitle.
|
|
/// </summary>
|
|
/// <param name="matcher">The precomputed fuzzy matcher used to build the target.</param>
|
|
/// <returns>The fuzzy target for the subtitle.</returns>
|
|
FuzzyTarget GetSubtitleTarget(IPrecomputedFuzzyMatcher matcher);
|
|
}
|