mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
* [Telemetry] Add basic interaction events to FZ Adds some basic interaction events to FancyZones, such as: - Starting the drag Window movement. - A newly created window snapping to a zone. - Using the Keyboard to snap or extend to a zone. * Update src/modules/fancyzones/FancyZonesLib/FancyZones.cpp Co-authored-by: Seraphima Zykova <zykovas91@gmail.com> * Update trace.cpp * Rename EventSnapNewWindowIntoZone * Adjust event names according to PR feedback Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
#pragma once
|
|
|
|
struct Settings;
|
|
interface IZoneSet;
|
|
|
|
class Trace
|
|
{
|
|
public:
|
|
static void RegisterProvider() noexcept;
|
|
static void UnregisterProvider() noexcept;
|
|
|
|
class FancyZones
|
|
{
|
|
public:
|
|
static void EnableFancyZones(bool enabled) noexcept;
|
|
static void OnKeyDown(DWORD vkCode, bool win, bool control, bool inMoveSize) noexcept;
|
|
static void DataChanged() noexcept;
|
|
static void EditorLaunched(int value) noexcept;
|
|
static void Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept;
|
|
static void QuickLayoutSwitched(bool shortcutUsed) noexcept;
|
|
static void SnapNewWindowIntoZone(IZoneSet* activeSet) noexcept;
|
|
static void KeyboardSnapWindowToZone(IZoneSet* activeSet) noexcept;
|
|
};
|
|
|
|
static void SettingsTelemetry(const Settings& settings) noexcept;
|
|
static void VirtualDesktopChanged() noexcept;
|
|
|
|
class WorkArea
|
|
{
|
|
public:
|
|
enum class InputMode
|
|
{
|
|
Keyboard,
|
|
Mouse
|
|
};
|
|
|
|
static void KeyUp(WPARAM wparam) noexcept;
|
|
static void MoveOrResizeStarted(_In_opt_ winrt::com_ptr<IZoneSet> activeSet) noexcept;
|
|
static void MoveOrResizeEnd(_In_opt_ winrt::com_ptr<IZoneSet> activeSet) noexcept;
|
|
static void CycleActiveZoneSet(_In_opt_ winrt::com_ptr<IZoneSet> activeSet, InputMode mode) noexcept;
|
|
};
|
|
};
|