public static Image LoadFontAwesomeIcon(this ResourceManager resourceManager, FAIcon icon, int fontSizeEm) { var faIcon = icon.GetFAIconAttribute(); return(resourceManager.LoadGlyph(faIcon.Unicode, GetFAFontFamily(faIcon.Style), fontSizeEm)); }
/// <summary> /// Returns the <see cref="FAIconAttribute" /> associated with the icon, containing its metadata /// </summary> public static FAIconAttribute GetFAIconAttribute(this FAIcon icon) => icon.GetAttributeOfType <FAIconAttribute>();
public static string IconStringForEnum(FAIcon value) { return(((NSString)null).IconStringForFontAwesomeEnum(value)); }
/// <summary> /// Returns the style of the icon as a string, eg "brands" /// </summary> public static string Style(this FAIcon icon) => icon.FAStyle().Style();
/// <summary> /// Returns the style enum of the icon, eg <see cref="FAStyle.Brands" /> /// </summary> public static FAStyle FAStyle(this FAIcon icon) => icon.GetAttributeOfType <FAIconAttribute>().Style;
/// <summary> /// Returns the unicode character of the icon, eg "f113" /// </summary> public static string Unicode(this FAIcon icon) => icon.GetAttributeOfType <FAIconAttribute>().Unicode;
/// <summary> /// Returns the label of the icon, eg "Alternate GitHub" /// </summary> public static string Label(this FAIcon icon) => icon.GetAttributeOfType <FAIconAttribute>().Label;
/// <summary> /// Returns the key of the icon, eg "github-alt" /// </summary> public static string Key(this FAIcon icon) => icon.GetAttributeOfType <FAIconAttribute>().Key;