mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
29 lines
831 B
C#
29 lines
831 B
C#
// Font-Awesome - Version 5.0.9
|
|
|
|
namespace Dalamud.Interface;
|
|
|
|
/// <summary>
|
|
/// Extension methods for <see cref="FontAwesomeIcon"/>.
|
|
/// </summary>
|
|
public static class FontAwesomeExtensions
|
|
{
|
|
/// <summary>
|
|
/// Convert the FontAwesomeIcon to a <see cref="char"/> type.
|
|
/// </summary>
|
|
/// <param name="icon">The icon to convert.</param>
|
|
/// <returns>The converted icon.</returns>
|
|
public static char ToIconChar(this FontAwesomeIcon icon)
|
|
{
|
|
return (char)icon;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Conver the FontAwesomeIcon to a <see cref="string"/> type.
|
|
/// </summary>
|
|
/// <param name="icon">The icon to convert.</param>
|
|
/// <returns>The converted icon.</returns>
|
|
public static string ToIconString(this FontAwesomeIcon icon)
|
|
{
|
|
return string.Empty + (char)icon;
|
|
}
|
|
}
|