Files
Terminal.Gui/Terminal.Gui/View/View.Diagnostics.cs
2024-09-22 06:56:21 -06:00

33 lines
1.0 KiB
C#

#nullable enable
namespace Terminal.Gui;
/// <summary>Enables diagnostic functions for <see cref="View"/>.</summary>
[Flags]
public enum ViewDiagnosticFlags : uint
{
/// <summary>All diagnostics off</summary>
Off = 0b_0000_0000,
/// <summary>
/// When enabled, <see cref="View.OnDrawAdornments"/> will draw a ruler in the Thickness.
/// </summary>
Ruler = 0b_0000_0001,
/// <summary>
/// When enabled, <see cref="View.OnDrawAdornments"/> will draw the first letter of the Adornment name ('M', 'B', or 'P')
/// in the Thickness.
/// </summary>
Padding = 0b_0000_0010,
/// <summary>
/// When enabled the View's colors will be darker when the mouse is hovering over the View (See <see cref="View.MouseEnter"/> and <see cref="View.MouseLeave"/>.
/// </summary>
Hover = 0b_0000_00100
}
public partial class View
{
/// <summary>Flags to enable/disable <see cref="View"/> diagnostics.</summary>
public static ViewDiagnosticFlags Diagnostics { get; set; }
}