mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
* rename Layout -> LayoutData * simplify zone * split ZoneSet: Layout * refactoring * split ZoneSet: LayoutWindows * update trace * split ZoneSet: remove ZoneSet * fix initialization * split unit tests * remove unused * warning * nullptr check * use current rect * update work area tests * use current rect * simplify * more meaningful name * dismiss * safety checks * resolve conflicts * reassign windows after switching vd * avoid double-processing for window on switching vd * extend windows fix * check if window is on current desktop before cycling * separated extend * not reinit layout windows
24 lines
878 B
C++
24 lines
878 B
C++
#pragma once
|
|
|
|
#include <FancyZonesLib/Zone.h>
|
|
#include <FancyZonesLib/util.h>
|
|
|
|
// Mapping zone id to zone
|
|
using ZonesMap = std::map<ZoneIndex, Zone>;
|
|
|
|
namespace FancyZonesDataTypes
|
|
{
|
|
struct CustomLayoutData;
|
|
}
|
|
|
|
class LayoutConfigurator
|
|
{
|
|
public:
|
|
static ZonesMap Focus(FancyZonesUtils::Rect workArea, int zoneCount) noexcept;
|
|
static ZonesMap Rows(FancyZonesUtils::Rect workArea, int zoneCount, int spacing) noexcept;
|
|
static ZonesMap Columns(FancyZonesUtils::Rect workArea, int zoneCount, int spacing) noexcept;
|
|
static ZonesMap Grid(FancyZonesUtils::Rect workArea, int zoneCount, int spacing) noexcept;
|
|
static ZonesMap PriorityGrid(FancyZonesUtils::Rect workArea, int zoneCount, int spacing) noexcept;
|
|
static ZonesMap Custom(FancyZonesUtils::Rect workArea, HMONITOR monitor, const FancyZonesDataTypes::CustomLayoutData& data, int spacing) noexcept;
|
|
};
|