You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
871 B
35 lines
871 B
4 years ago
|
using Monaco.Helpers;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Monaco.Editor
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.icontextkey.html
|
||
|
///
|
||
|
/// Supports bools only as Windows Runtime Type doesn't support generics.
|
||
|
/// </summary>
|
||
|
public interface IContextKey: IJsonable
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Get the current value of the key.
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
bool Get();
|
||
|
|
||
|
/// <summary>
|
||
|
/// Resets the key to the default value.
|
||
|
/// </summary>
|
||
|
void Reset();
|
||
|
|
||
|
/// <summary>
|
||
|
/// Set the key to the specified value.
|
||
|
/// </summary>
|
||
|
/// <param name="value"></param>
|
||
|
void Set(bool value);
|
||
|
}
|
||
|
}
|