[FancyZones Editor] Quick layout switch hotkeys (#10437)

Co-authored-by: Ivan Stošić <ivan100sic@gmail.com>
This commit is contained in:
Seraphima Zykova
2021-03-25 15:44:55 +03:00
committed by GitHub
parent 7ba03ed24f
commit 13c4c188fa
34 changed files with 986 additions and 376 deletions

View File

@@ -26,6 +26,7 @@ class ZoneWindowDrawing
{
std::chrono::steady_clock::time_point tStart;
unsigned duration;
bool fadeIn;
};
HWND m_window = nullptr;
@@ -42,10 +43,10 @@ class ZoneWindowDrawing
static D2D1_COLOR_F ConvertColor(COLORREF color);
static D2D1_RECT_F ConvertRect(RECT rect);
void Render();
void RenderLoop();
std::atomic<bool> m_shouldRender = false;
std::atomic<bool> m_abortThread = false;
std::atomic<bool> m_lowLatencyLock = false;
std::condition_variable m_cv;
std::thread m_renderThread;
@@ -55,7 +56,7 @@ public:
ZoneWindowDrawing(HWND window);
void Hide();
void Show(unsigned animationMillis);
void ForceRender();
void Flash(unsigned animationMillis);
void DrawActiveZoneSet(const IZoneSet::ZonesMap& zones,
const std::vector<size_t>& highlightZones,
winrt::com_ptr<IZoneWindowHost> host);