mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
* Started rewriting * Making progress * Fix resizers not moving around * Implemented splitting, fixed some bugs * Removed more code, renamed methods * Merging zones works * Fix Shift key behavior * Added spacing (has bugs) * Implement minimum size restriction * Match preview and editor visuals * Snapping works * Show when splitting is not possible * Fix spell checker complaining * Tweak FZ Lib function computing grid zones * Fix potential crash when loading old zone layouts * Fix dead objects talking * Fix splitters being shown when they shouldn't be * Fix index numbering * Fix small glitch with the shift key * Do not snap to borders outside the zone
29 lines
691 B
C#
29 lines
691 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
using System.Windows.Controls;
|
|
|
|
namespace FancyZonesEditor
|
|
{
|
|
public class SplitEventArgs : EventArgs
|
|
{
|
|
public SplitEventArgs()
|
|
{
|
|
}
|
|
|
|
public SplitEventArgs(Orientation orientation, int offset)
|
|
{
|
|
Orientation = orientation;
|
|
Offset = offset;
|
|
}
|
|
|
|
public Orientation Orientation { get; }
|
|
|
|
public int Offset { get; }
|
|
}
|
|
|
|
public delegate void SplitEventHandler(object sender, SplitEventArgs args);
|
|
}
|