- Notifications
You must be signed in to change notification settings - Fork 8.5k
/
Copy pathCursorBlinker.hpp
37 lines (30 loc) · 907 Bytes
/
CursorBlinker.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
/*
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- CursorBlinker.hpp
Abstract:
- Encapsulates all of the behavior needed to blink the cursor, and update the
blink rate to account for different system settings.
Author(s):
- Mike Griese (migrie) Nov 2018
*/
namespaceMicrosoft::Console
{
classCursorBlinkerfinal
{
public:
CursorBlinker();
~CursorBlinker();
voidFocusStart() constnoexcept;
voidFocusEnd() constnoexcept;
voidUpdateSystemMetrics() noexcept;
voidSettingsChanged() noexcept;
voidTimerRoutine(SCREEN_INFORMATION& ScreenInfo) constnoexcept;
private:
voidSetCaretTimer() constnoexcept;
voidKillCaretTimer() constnoexcept;
wil::unique_threadpool_timer_nowait _timer;
UINT _uCaretBlinkTime;
};
}