mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Break out FontAwesome Extensions
This commit is contained in:
parent
f26b1ead9e
commit
b46afa6357
2 changed files with 30 additions and 26 deletions
30
Dalamud/Interface/FontAwesomeExtensions.cs
Normal file
30
Dalamud/Interface/FontAwesomeExtensions.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7047,30 +7047,4 @@ namespace Dalamud.Interface
|
|||
/// </summary>
|
||||
Zhihu = 0xF63F,
|
||||
}
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue