mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
* Import vdh from poc * last changes * push changes * small change * add error handling to vdh * last changes * make spellchecker happy * last changes * last changes * spell check * fix settings defaults * Improve WindowWalkerSettings class * add comment * New settings and improvements * new features * subtitle and tool tip * spell fixes * small fixes * fixes * Explorer info * spell fixes * fixes and CloseWindow feature * last changes * first part of implementing KillProcess * killProcess Part 2 & Fixes * text fix and installer * update access modifiers * some fixes * update dev docs * fix dev docs * dev doc change * dev docs: add missed infos * dev docs: add link * Update src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/WindowWalkerSettings.cs * fix build * resolve feedback * fix settings * add tests
84 lines
2.4 KiB
C#
84 lines
2.4 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.
|
|
using System;
|
|
|
|
namespace Wox.Plugin.Common.VirtualDesktop.Helper
|
|
{
|
|
/// <summary>
|
|
/// Class that represents a Virtual Desktop
|
|
/// </summary>
|
|
/// <remarks>This class is named VDesktop to make clear it isn't an instance of the original Desktop class from Virtual Desktop Manager.
|
|
/// We can't use the original one, because therefore we must access private com interfaces. We aren't allowed to do this, because this is an official Microsoft project.</remarks>
|
|
public class VDesktop
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the guid of the desktop
|
|
/// </summary>
|
|
public Guid Id
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the name of the desktop
|
|
/// </summary>
|
|
public string Name
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the number (position) of the desktop
|
|
/// </summary>
|
|
public int Number
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the desktop is currently visible to the user
|
|
/// </summary>
|
|
public bool IsVisible
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the desktop guid belongs to the generic "AllDesktops" view.
|
|
/// This view hold all windows that are pinned to all desktops.
|
|
/// </summary>
|
|
public bool IsAllDesktopsView
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating the position of a desktop in the list of all desktops
|
|
/// </summary>
|
|
public VirtualDesktopPosition Position
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets an empty instance of <see cref="VDesktop"/>
|
|
/// </summary>
|
|
public static VDesktop Empty
|
|
{
|
|
get
|
|
{
|
|
return new VDesktop()
|
|
{
|
|
Id = Guid.Empty,
|
|
Name = string.Empty,
|
|
Number = 0,
|
|
IsVisible = false,
|
|
IsAllDesktopsView = false,
|
|
Position = VirtualDesktopPosition.NotApplicable,
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|