mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[FancyZones] Zone indexes type change (#12724)
This commit is contained in:
@@ -5,6 +5,10 @@ namespace ZoneConstants
|
||||
constexpr int MAX_NEGATIVE_SPACING = -10;
|
||||
}
|
||||
|
||||
using ZoneIndex = int64_t;
|
||||
using ZoneIndexSet = std::vector<ZoneIndex>;
|
||||
using Bitmask = ZoneIndex;
|
||||
|
||||
/**
|
||||
* Class representing one zone inside applied zone layout, which is basically wrapper around rectangle structure.
|
||||
*/
|
||||
@@ -21,7 +25,7 @@ interface __declspec(uuid("{8228E934-B6EF-402A-9892-15A1441BF8B0}")) IZone : pub
|
||||
/**
|
||||
* @returns Zone identifier.
|
||||
*/
|
||||
IFACEMETHOD_(size_t, Id)() const = 0;
|
||||
IFACEMETHOD_(ZoneIndex, Id)() const = 0;
|
||||
/**
|
||||
* Compute the coordinates of the rectangle to which a window should be resized.
|
||||
*
|
||||
@@ -34,4 +38,4 @@ interface __declspec(uuid("{8228E934-B6EF-402A-9892-15A1441BF8B0}")) IZone : pub
|
||||
|
||||
};
|
||||
|
||||
winrt::com_ptr<IZone> MakeZone(const RECT& zoneRect, const size_t zoneId) noexcept;
|
||||
winrt::com_ptr<IZone> MakeZone(const RECT& zoneRect, const ZoneIndex zoneId) noexcept;
|
||||
|
||||
Reference in New Issue
Block a user