21 lines
574 B
C#
21 lines
574 B
C#
using CursorLang.Core.Models;
|
|
|
|
namespace CursorLang.Core.Services;
|
|
|
|
/// <summary>
|
|
/// Shows the layout popup at the cursor.
|
|
/// </summary>
|
|
public interface ILayoutPopupService
|
|
{
|
|
/// <summary>Shows the popup and takes it down after the time set in the settings.</summary>
|
|
void Show(KeyboardLayout layout);
|
|
|
|
/// <summary>
|
|
/// Shows the popup until <see cref="Hide"/> is called explicitly: needed where the
|
|
/// show time is set by a user action rather than by a timer.
|
|
/// </summary>
|
|
void ShowUntilHidden(KeyboardLayout layout);
|
|
|
|
void Hide();
|
|
}
|