using AppKit;
namespace Cauldron.Macos.SourceWriter;
public class KeywordDescriptor
{
#region Computed Properties
/// Gets or sets the KeywordType.
/// The type.
public KeywordType Type { get; set; } = KeywordType.Keyword;
///
/// Gets or sets the NSColor that the
/// will set this keyword to.
///
/// The NSColor.
public NSColor Color { get; set; } = NSColor.Black;
/// Gets or sets the tooltip used to define this keyword.
/// The tooltip.
public string Tooltip { get; set; } = "";
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
public KeywordDescriptor() { }
///
/// Initializes a new instance of the class.
///
/// Specifies the KeywordType.
/// Specifies the NSColor that this keyword will be set to.
/// Defines the tool tip for this keyword.
public KeywordDescriptor(KeywordType type, NSColor color, string toolTip)
{
this.Type = type;
this.Color = color;
this.Tooltip = toolTip;
}
#endregion
}