From 6295f047aec8a54e9ebe20ab4352aa0a18fc4e06 Mon Sep 17 00:00:00 2001 From: MidoriKami <9083275+MidoriKami@users.noreply.github.com> Date: Sat, 23 Sep 2023 07:55:17 -0700 Subject: [PATCH] Add Size Vector to IDalamudTextureWrap --- Dalamud/Interface/Internal/DalamudTextureWrap.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/DalamudTextureWrap.cs b/Dalamud/Interface/Internal/DalamudTextureWrap.cs index 036686c29..9737d9f7b 100644 --- a/Dalamud/Interface/Internal/DalamudTextureWrap.cs +++ b/Dalamud/Interface/Internal/DalamudTextureWrap.cs @@ -1,4 +1,6 @@ -using ImGuiScene; +using System.Numerics; + +using ImGuiScene; namespace Dalamud.Interface.Internal; @@ -22,6 +24,11 @@ public interface IDalamudTextureWrap : IDisposable /// Gets the height of the texture. /// int Height { get; } + + /// + /// Gets the size vector of the texture using Width, Height. + /// + Vector2 Size => new(this.Width, this.Height); } ///