mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 23:07:43 +01:00
Move IFontHandle.ImFontLocked to ILockedImFont+impl
This commit is contained in:
parent
68dc16803c
commit
5161053cb3
9 changed files with 105 additions and 110 deletions
21
Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs
Normal file
21
Dalamud/Interface/ManagedFontAtlas/ILockedImFont.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using ImGuiNET;
|
||||
|
||||
namespace Dalamud.Interface.ManagedFontAtlas;
|
||||
|
||||
/// <summary>
|
||||
/// The wrapper for <see cref="ImFontPtr"/>, guaranteeing that the associated data will be available as long as
|
||||
/// this struct is not disposed.
|
||||
/// </summary>
|
||||
public interface ILockedImFont : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the associated <see cref="ImFontPtr"/>.
|
||||
/// </summary>
|
||||
ImFontPtr ImFont { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new instance of <see cref="ILockedImFont"/> with an additional reference to the owner.
|
||||
/// </summary>
|
||||
/// <returns>The new locked instance.</returns>
|
||||
ILockedImFont NewRef();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue