mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 10:17:55 +01:00
33 lines
1.0 KiB
C#
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; }
|
|
}
|