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

IViewSynchronizationManager.cs « Editor « TextUICocoa « Def « Text « Editor « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70eddaa299daa4fbe751b5cf6b1b756252651a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text.Formatting
{
    using Microsoft.VisualStudio.Text.Editor;

    /// <summary>
    /// Manage the simultaneous layout to two <see cref="ITextView"/>.
    /// </summary>
    public interface IViewSynchronizationManager
    {
        ITextView GetSubordinateView(ITextView masterView);

        bool TryGetAnchorPointInSubordinateView(SnapshotPoint anchorPoint, out SnapshotPoint correspondingAnchorPoint);

        SnapshotPoint GetAnchorPointAboveInSubordinateView(SnapshotPoint anchorPoint);

        void WhichPairedLinesShouldBeDisplayed(SnapshotPoint masterAnchorPoint, SnapshotPoint subordinateAnchorPoint, out bool layoutMaster, out bool layoutSubordinate, bool goingUp);
    }
}