-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Expand file tree
/
Copy pathrenderData.hpp
More file actions
51 lines (42 loc) · 1.99 KB
/
Copy pathrenderData.hpp
File metadata and controls
51 lines (42 loc) · 1.99 KB
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#pragma once
#include "../renderer/inc/IRenderData.hpp"
class RenderData final :
public Microsoft::Console::Render::IRenderData
{
public:
void UpdateSystemMetrics();
//
// BEGIN IRenderData
//
Microsoft::Console::Types::Viewport GetViewport() noexcept override;
til::point GetTextBufferEndPosition() const noexcept override;
TextBuffer& GetTextBuffer() const noexcept override;
const FontInfo& GetFontInfo() const noexcept override;
std::span<const til::point_span> GetSearchHighlights() const noexcept override;
const til::point_span* GetSearchHighlightFocused() const noexcept override;
std::span<const til::point_span> GetSelectionSpans() const noexcept override;
void LockConsole() noexcept override;
void UnlockConsole() noexcept override;
Microsoft::Console::Render::TimerDuration GetBlinkInterval() noexcept override;
ULONG GetCursorPixelWidth() const noexcept override;
bool IsGridLineDrawingAllowed() noexcept override;
std::wstring_view GetConsoleTitle() const noexcept override;
std::wstring GetHyperlinkUri(uint16_t id) const override;
std::wstring GetHyperlinkCustomId(uint16_t id) const override;
std::vector<size_t> GetPatternId(const til::point location) const override;
std::pair<COLORREF, COLORREF> GetAttributeColors(const TextAttribute& attr) const noexcept override;
bool IsSelectionActive() const override;
bool IsBlockSelection() const override;
void ClearSelection() override;
void SelectNewRegion(const til::point coordStart, const til::point coordEnd) override;
til::point GetSelectionAnchor() const noexcept override;
til::point GetSelectionEnd() const noexcept override;
bool IsUiaDataInitialized() const noexcept override;
//
// END IRenderData
//
private:
std::optional<Microsoft::Console::Render::TimerDuration> _cursorBlinkInterval;
};