mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-25 18:18:16 +08:00
e6a5b589ff
* Align zone numbers between Editor and FancyZonesLib Use zoneId on win+arrow * Update tests * Fix crash * ZoneId starts from 0 * Define ZonesMap type IFACEMETHOD_ macro is having trouble processing std::map template when expanding, so return type needs to be predefined * Address PR comment * Address more PR comments * Handle .at
33 lines
863 B
C++
33 lines
863 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
#include <wil\resource.h>
|
|
#include <winrt/base.h>
|
|
|
|
#include "util.h"
|
|
#include "Zone.h"
|
|
#include "ZoneSet.h"
|
|
|
|
namespace ZoneWindowDrawing
|
|
{
|
|
struct ColorSetting
|
|
{
|
|
BYTE fillAlpha{};
|
|
COLORREF fill{};
|
|
BYTE borderAlpha{};
|
|
COLORREF border{};
|
|
int thickness{};
|
|
};
|
|
|
|
void DrawBackdrop(wil::unique_hdc& hdc, RECT const& clientRect) noexcept;
|
|
void DrawActiveZoneSet(wil::unique_hdc& hdc,
|
|
COLORREF zoneColor,
|
|
COLORREF zoneBorderColor,
|
|
COLORREF highlightColor,
|
|
int zoneOpacity,
|
|
const IZoneSet::ZonesMap& zones,
|
|
const std::vector<size_t>& highlightZones,
|
|
bool flashMode) noexcept;
|
|
}
|