Add Size Vector to IDalamudTextureWrap

This commit is contained in:
MidoriKami 2023-09-23 07:55:17 -07:00
parent c767971a36
commit 6295f047ae

View file

@ -1,4 +1,6 @@
using ImGuiScene; using System.Numerics;
using ImGuiScene;
namespace Dalamud.Interface.Internal; namespace Dalamud.Interface.Internal;
@ -22,6 +24,11 @@ public interface IDalamudTextureWrap : IDisposable
/// Gets the height of the texture. /// Gets the height of the texture.
/// </summary> /// </summary>
int Height { get; } int Height { get; }
/// <summary>
/// Gets the size vector of the texture using Width, Height.
/// </summary>
Vector2 Size => new(this.Width, this.Height);
} }
/// <summary> /// <summary>