22 lines
484 B
C#
22 lines
484 B
C#
using CursorLang.Core.Models;
|
|
|
|
namespace CursorLang.Core.Services;
|
|
|
|
/// <summary>
|
|
/// Tracks the layout of the active window — including in other applications —
|
|
/// and can switch it.
|
|
/// </summary>
|
|
public interface IKeyboardLayoutService
|
|
{
|
|
/// <summary>The layout of the active window at the moment.</summary>
|
|
KeyboardLayout Current { get; }
|
|
|
|
event EventHandler<LayoutChangedEventArgs>? LayoutChanged;
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
|
|
|
void SwitchToNext();
|
|
}
|