mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-22 10:07:37 +00:00
* [Mouse Jump] - moving common code to MouseJump.Common project - #25482 * [Mouse Jump] - fixing warnings in MouseJump.Common - #25482 * [MouseJump] - cherrypick 5653b4 - Exclude MouseJump Common tests from the checks # Conflicts: # src/modules/MouseUtils/MouseJump.Common.UnitTests/MouseJump.Common.UnitTests.csproj * [mOuSEjUMP] - cherry pick 61aab9 - Fix ci build issues # Conflicts: # src/modules/MouseUtils/MouseJump.Common.UnitTests/MouseJump.Common.UnitTests.csproj * [Mouse Jump] - remove project type guids - #25482 * [Mouse Jump] - simplify mousejump *.csproj files - #25482 * [Mouse Jump] - fixing broken tests - #25482 * [Mouse Jump] - fixing broken build - #25482 * [Mouse Jump] - editing MouseJump.Common.UnitTests.csproj - #25482 * [Mouse Jump] - editing MouseJump.Common.csproj (UseWindowsForms=true) - #25482 * [Mouse Jump] - fixing spellcheck - #25482 * [MouseJump] - enabled implicit usings - #25482 * [Mouse Jump] - re-add csproj attributes - #27511 * ci: Fix signing of Common dll --------- Co-authored-by: Clayton <mike.clayton@delinian.com>
61 lines
1.3 KiB
C#
61 lines
1.3 KiB
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.
|
|
|
|
namespace MouseJump.Common.Models.Styles;
|
|
|
|
/// <summary>
|
|
/// Represents the margin style for a drawing object.
|
|
/// </summary>
|
|
public sealed class PaddingStyle
|
|
{
|
|
public static readonly PaddingStyle Empty = new(0);
|
|
|
|
public PaddingStyle(decimal all)
|
|
: this(all, all, all, all)
|
|
{
|
|
}
|
|
|
|
public PaddingStyle(decimal left, decimal top, decimal right, decimal bottom)
|
|
{
|
|
this.Left = left;
|
|
this.Top = top;
|
|
this.Right = right;
|
|
this.Bottom = bottom;
|
|
}
|
|
|
|
public decimal Left
|
|
{
|
|
get;
|
|
}
|
|
|
|
public decimal Top
|
|
{
|
|
get;
|
|
}
|
|
|
|
public decimal Right
|
|
{
|
|
get;
|
|
}
|
|
|
|
public decimal Bottom
|
|
{
|
|
get;
|
|
}
|
|
|
|
public decimal Horizontal => this.Left + this.Right;
|
|
|
|
public decimal Vertical => this.Top + this.Bottom;
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{" +
|
|
$"{nameof(this.Left)}={this.Left}," +
|
|
$"{nameof(this.Top)}={this.Top}," +
|
|
$"{nameof(this.Right)}={this.Right}," +
|
|
$"{nameof(this.Bottom)}={this.Bottom}" +
|
|
"}";
|
|
}
|
|
}
|