- Notifications
You must be signed in to change notification settings - Fork 8.5k
/
Copy pathrenderData.hpp
60 lines (46 loc) · 2.3 KB
/
renderData.hpp
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
58
59
60
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- renderData.hpp
Abstract:
- This method provides an interface for rendering the final display based on the current console state
Author(s):
- Michael Niksa (miniksa) Nov 2015
--*/
#pragma once
#include"../renderer/inc/IRenderData.hpp"
classRenderDatafinal :
public Microsoft::Console::Render::IRenderData
{
public:
Microsoft::Console::Types::Viewport GetViewport() noexceptoverride;
til::point GetTextBufferEndPosition() constnoexceptoverride;
TextBuffer& GetTextBuffer() constnoexceptoverride;
const FontInfo& GetFontInfo() constnoexceptoverride;
std::span<const til::point_span> GetSelectionSpans() constnoexceptoverride;
voidLockConsole() noexceptoverride;
voidUnlockConsole() noexceptoverride;
til::point GetCursorPosition() constnoexceptoverride;
boolIsCursorVisible() constnoexceptoverride;
boolIsCursorOn() constnoexceptoverride;
ULONG GetCursorHeight() constnoexceptoverride;
CursorType GetCursorStyle() constnoexceptoverride;
ULONG GetCursorPixelWidth() constnoexceptoverride;
boolIsCursorDoubleWidth() constoverride;
constboolIsGridLineDrawingAllowed() noexceptoverride;
const std::wstring_view GetConsoleTitle() constnoexceptoverride;
const std::wstring GetHyperlinkUri(uint16_t id) constoverride;
const std::wstring GetHyperlinkCustomId(uint16_t id) constoverride;
const std::vector<size_t> GetPatternId(const til::point location) constoverride;
std::pair<COLORREF, COLORREF> GetAttributeColors(const TextAttribute& attr) constnoexceptoverride;
constboolIsSelectionActive() constoverride;
constboolIsBlockSelection() constnoexceptoverride;
voidClearSelection() override;
voidSelectNewRegion(const til::point coordStart, const til::point coordEnd) override;
std::span<const til::point_span> GetSearchHighlights() constnoexceptoverride;
const til::point_span* GetSearchHighlightFocused() constnoexceptoverride;
const til::point GetSelectionAnchor() constnoexceptoverride;
const til::point GetSelectionEnd() constnoexceptoverride;
constboolIsUiaDataInitialized() constnoexceptoverride { returntrue; }
};