Ejemplo n.º 1
0
 public static string GetUrl(FontAwesome5Solid icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1, Rotations rotate = Rotations.None)
 {
     return(BuildSettings(icon, backgroundColor, foregroundColor, fontSize, rotate));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.TreeIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Solid icon to be used</param>
 /// <param name="rotate">The rotation to be used, defaults to None</param>
 public TreeIconAttribute(FontAwesome5Solid icon, Rotations rotate = Rotations.None)
 {
     Icon   = icon;
     Rotate = rotate;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.ThumbnailIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Solid icon to be used</param>
 public ThumbnailIconAttribute(FontAwesome5Solid icon)
     : base(ImageUrlHelper.GetUrl(icon))
 {
     Icon = icon;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Geta.Epi.FontThumbnail.ThumbnailIconAttribute" /> class.
 /// </summary>
 /// <param name="icon">The FontAwesome5Solid icon to be used</param>
 /// <param name="rotate">The rotation to be used, defaults to None</param>
 /// <param name="backgroundColor">The backgroundColor to be used when rendering the image (specified in hexadecimal, for example #000000)</param>
 /// <param name="foregroundColor">The foregroundColor to be used when rendering the image (specified in hexadecimal, for example #ffffff) </param>
 /// <param name="fontSize">The fontSize to be used, default value is 40</param>
 public ThumbnailIconAttribute(FontAwesome5Solid icon, Rotations rotate = Rotations.None, string backgroundColor = "", string foregroundColor = "", int fontSize = -1)
     : base(ImageUrlHelper.GetUrl(icon, backgroundColor, foregroundColor, fontSize, rotate))
 {
     Icon   = icon;
     Rotate = rotate;
 }
 public ThumbnailIcon(FontAwesome5Solid icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1) : base(ImageUrlHelper.GetUrl(icon, backgroundColor, foregroundColor, fontSize))
 {
 }
Ejemplo n.º 6
0
 public static string GetUrl(FontAwesome5Solid icon, string backgroundColor = "", string foregroundColor = "", int fontSize = -1)
 {
     return(BuildSettings("fa-solid-900.ttf", (int)icon, backgroundColor, foregroundColor, fontSize));
 }