// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine
{
///
/// Inserts a header control with a custom text into the editor layout.
///
///
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class HeaderAttribute : Attribute
{
///
/// The header text.
///
public string Text;
///
/// The custom header font size.
///
public int FontSize;
///
/// The custom header color (as 32-bit uint).
///
public uint Color;
private HeaderAttribute()
{
}
///
/// Initializes a new instance of the class.
///
/// The header text.
/// The header text font size (-1 to use default which is 14).
/// The header color (as 32-bit uint, 0 to use default).
public HeaderAttribute(string text, int fontSize = -1, uint color = 0)
{
Text = text;
FontSize = fontSize;
Color = color;
}
}
}