mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Introduce ZoneWindowDrawing files and move stuff to better place (#6142)
This commit is contained in:
31
src/modules/fancyzones/lib/ZoneWindowDrawing.h
Normal file
31
src/modules/fancyzones/lib/ZoneWindowDrawing.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <wil\resource.h>
|
||||
#include <winrt/base.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "Zone.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 std::vector<winrt::com_ptr<IZone>>& zones,
|
||||
const std::vector<size_t>& highlightZones,
|
||||
bool flashMode,
|
||||
bool drawHints) noexcept;
|
||||
}
|
||||
Reference in New Issue
Block a user