mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-26 02:28:17 +08:00
2817bf4d62
unified data type to size_t in all methods that process the zone index set
27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "SecondaryMouseButtonsHook.h"
|
|
|
|
interface IFancyZonesSettings;
|
|
interface IZoneWindow;
|
|
|
|
class WindowMoveHandler
|
|
{
|
|
public:
|
|
WindowMoveHandler(const winrt::com_ptr<IFancyZonesSettings>& settings, const std::function<void()>& keyUpdateCallback);
|
|
~WindowMoveHandler();
|
|
|
|
bool InMoveSize() const noexcept;
|
|
bool IsDragEnabled() const noexcept;
|
|
|
|
void MoveSizeStart(HWND window, HMONITOR monitor, POINT const& ptScreen, const std::unordered_map<HMONITOR, winrt::com_ptr<IZoneWindow>>& zoneWindowMap) noexcept;
|
|
void MoveSizeUpdate(HMONITOR monitor, POINT const& ptScreen, const std::unordered_map<HMONITOR, winrt::com_ptr<IZoneWindow>>& zoneWindowMap) noexcept;
|
|
void MoveSizeEnd(HWND window, POINT const& ptScreen, const std::unordered_map<HMONITOR, winrt::com_ptr<IZoneWindow>>& zoneWindowMap) noexcept;
|
|
|
|
void MoveWindowIntoZoneByIndexSet(HWND window, const std::vector<size_t>& indexSet, winrt::com_ptr<IZoneWindow> zoneWindow) noexcept;
|
|
bool MoveWindowIntoZoneByDirectionAndIndex(HWND window, DWORD vkCode, bool cycle, winrt::com_ptr<IZoneWindow> zoneWindow);
|
|
bool MoveWindowIntoZoneByDirectionAndPosition(HWND window, DWORD vkCode, bool cycle, winrt::com_ptr<IZoneWindow> zoneWindow);
|
|
|
|
private:
|
|
class WindowMoveHandlerPrivate* pimpl;
|
|
}; |