Skip to main content

Interface INotificationIcon

Icon source for Dalamud.Interface.ImGuiNotification.INotification.

Assembly: Dalamud.dll
View Source
Declaration
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
Declaration
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
TypeNameDescription
Dalamud.Game.Text.SeIconChariconCharThe 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
Declaration
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
TypeNameDescription
Dalamud.Interface.FontAwesomeIconiconCharThe 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
Declaration
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
TypeNameDescription
System.StringgamePathThe 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
Declaration
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
TypeNameDescription
System.StringfilePathThe path to an image file in the file system.

DrawIcon(Vector2, Vector2, Vector4)

Draws the icon.

View Source
Declaration
bool DrawIcon(Vector2 minCoord, Vector2 maxCoord, Vector4 color)
Returns

System.Boolean: true if anything has been drawn.

Parameters
TypeNameDescription
System.Numerics.Vector2minCoordThe coordinates of the top left of the icon area.
System.Numerics.Vector2maxCoordThe coordinates of the bottom right of the icon area.
System.Numerics.Vector4colorThe foreground color.