Interface INotificationIcon
Icon source for Dalamud.Interface.ImGuiNotification.INotification.
Assembly: Dalamud.dll
View Source
public interface INotificationIcon
Methods
From(SeIconChar)
Gets a new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that will source the icon from an Dalamud.Game.Text.SeIconChar.
View Source
public static INotificationIcon From(SeIconChar iconChar)
Returns
Dalamud.Interface.ImGuiNotification.INotificationIcon: A new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that should be disposed after use.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Text.SeIconChar | iconChar | The icon character. |
From(FontAwesomeIcon)
Gets a new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that will source the icon from an Dalamud.Interface.FontAwesomeIcon.
View Source
public static INotificationIcon From(FontAwesomeIcon iconChar)
Returns
Dalamud.Interface.ImGuiNotification.INotificationIcon: A new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that should be disposed after use.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.FontAwesomeIcon | iconChar | The icon character. |
FromGame(string)
Gets a new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that will source the icon from a texture file shipped as a part of the game resources.
View Source
public static INotificationIcon FromGame(string gamePath)
Returns
Dalamud.Interface.ImGuiNotification.INotificationIcon: A new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that should be disposed after use.
Parameters
Type | Name | Description |
---|---|---|
System.String | gamePath | The path to a texture file in the game virtual file system. |
FromFile(string)
Gets a new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that will source the icon from an image file from the file system.
View Source
public static INotificationIcon FromFile(string filePath)
Returns
Dalamud.Interface.ImGuiNotification.INotificationIcon: A new instance of Dalamud.Interface.ImGuiNotification.INotificationIcon that should be disposed after use.
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path to an image file in the file system. |
DrawIcon(Vector2, Vector2, Vector4)
Draws the icon.
View Source
bool DrawIcon(Vector2 minCoord, Vector2 maxCoord, Vector4 color)
Returns
System.Boolean
: true
if anything has been drawn.
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector2 | minCoord | The coordinates of the top left of the icon area. |
System.Numerics.Vector2 | maxCoord | The coordinates of the bottom right of the icon area. |
System.Numerics.Vector4 | color | The foreground color. |