Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IViewPrimitives.cs « TextUI « Internal « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 413071500d42fe348854dcfb4886df47c168baa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
// This file contain internal APIs that are subject to change without notice.
// Use at your own risk.
//
namespace Microsoft.VisualStudio.Text.Editor
{

    /// <summary>
    /// Represents common view primitives and an extensible mechanism for replacing their values and adding new options.
    /// </summary>
    public interface IViewPrimitives : IBufferPrimitives
    {
        /// <summary>
        /// Gets the <see cref="View"/> primitive used for scrolling the editor window.
        /// </summary>
        TextView View { get; }

        /// <summary>
        /// Gets the <see cref="Selection"/> primitive used for selection manipulation.
        /// </summary>
        Selection Selection { get; }

        /// <summary>
        /// Gets the <see cref="Caret"/> primitive used for caret movement.
        /// </summary>
        Caret Caret { get; }
    }

    /// <summary>
    /// Represents the common editor primitives produced by this subsystem.
    /// </summary>
    public static class EditorPrimitiveIds
    {
        /// <summary>
        /// The ID for the view.
        /// </summary>
        public const string ViewPrimitiveId = "Editor.View";

        /// <summary>
        /// The ID for the selection.
        /// </summary>
        public const string SelectionPrimitiveId = "Editor.Selection";

        /// <summary>
        /// The ID for the caret.
        /// </summary>
        public const string CaretPrimitiveId = "Editor.Caret";

        /// <summary>
        /// The ID for the buffer.
        /// </summary>
        public const string BufferPrimitiveId = "Editor.TextBuffer";
    }
}