mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[FancyZones Editor] Quick layout switch hotkeys (#10437)
Co-authored-by: Ivan Stošić <ivan100sic@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user