/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/Workspaces/WorkspacesLauncherUI/Data/PositionWrapper.cs
43 строки
1 KB
Seraphima Zykova
[Workspaces] Handle admin windows repositioning. (#34965)
25 сен 2024, 12:13
Не верифицирован
25 сен 2024, 12:13
1e18e83
Код
Авторство
О чём код?
// 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 WorkspacesLauncherUI.Data { public struct PositionWrapper { public int X { get; set; } public int Y { get; set; } public int Width { get; set; } public int Height { get; set; } public static bool operator ==(PositionWrapper left, PositionWrapper right) { return left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.Height == right.Height; } public static bool operator !=(PositionWrapper left, PositionWrapper right) { return left.X != right.X || left.Y != right.Y || left.Width != right.Width || left.Height != right.Height; } public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return false; } PositionWrapper pos = (PositionWrapper)obj; return X == pos.X && Y == pos.Y && Width == pos.Width && Height == pos.Height; } public override int GetHashCode() { return base.GetHashCode(); } } }