mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
Started work
This commit is contained in:
@@ -87,11 +87,11 @@ namespace ZoneWindowUtils
|
||||
HPAINTBUFFER bufferedPaint = BeginBufferedPaint(hdc, &clientRect, BPBF_TOPDOWNDIB, nullptr, &hdcMem);
|
||||
if (bufferedPaint)
|
||||
{
|
||||
ZoneWindowDrawing::DrawBackdrop(hdcMem, clientRect);
|
||||
ZoneWindowDrawingNS::DrawBackdrop(hdcMem, clientRect);
|
||||
|
||||
if (hasActiveZoneSet)
|
||||
{
|
||||
ZoneWindowDrawing::DrawActiveZoneSet(hdcMem,
|
||||
ZoneWindowDrawingNS::DrawActiveZoneSet(hdcMem,
|
||||
hostZoneColor,
|
||||
hostZoneBorderColor,
|
||||
hostZoneHighlightColor,
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
namespace ZoneWindowDrawing
|
||||
namespace ZoneWindowDrawingNS
|
||||
{
|
||||
void DrawBackdrop(wil::unique_hdc& hdc, RECT const& clientRect) noexcept
|
||||
{
|
||||
|
||||
@@ -4,12 +4,13 @@
|
||||
#include <vector>
|
||||
#include <wil\resource.h>
|
||||
#include <winrt/base.h>
|
||||
#include <d2d1.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "Zone.h"
|
||||
#include "ZoneSet.h"
|
||||
|
||||
namespace ZoneWindowDrawing
|
||||
namespace ZoneWindowDrawingNS
|
||||
{
|
||||
struct ColorSetting
|
||||
{
|
||||
@@ -30,3 +31,14 @@ namespace ZoneWindowDrawing
|
||||
const std::vector<size_t>& highlightZones,
|
||||
bool flashMode) noexcept;
|
||||
}
|
||||
|
||||
class ZoneWindowDrawing
|
||||
{
|
||||
HWND m_window;
|
||||
winrt::com_ptr<IZoneWindowHost> m_host;
|
||||
|
||||
public:
|
||||
ZoneWindowDrawing(HWND window);
|
||||
void StartAnimation(unsigned millis);
|
||||
void DrawActiveZoneSet(const std::vector<winrt::com_ptr<IZone>>& zones, const std::vector<size_t>& highlightZones);
|
||||
};
|
||||
Reference in New Issue
Block a user