Class ForwardingTextureWrap
Base class for implementations of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap that forwards to another.
Assembly: Dalamud.dll
View Source
public abstract class ForwardingTextureWrap : IDalamudTextureWrap, IDisposable
Implements:
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap, System.IDisposable
Properties
ImGuiHandle
Gets a texture handle suitable for direct use with ImGui functions.
View Source
public nint ImGuiHandle { get; }
Width
Gets the width of the texture.
View Source
public int Width { get; }
Height
Gets the height of the texture.
View Source
public int Height { get; }
Size
Gets the size vector of the texture using Width, Height.
View Source
public Vector2 Size { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
CreateWrapSharingLowLevelResource()
Creates a new reference to the resource being pointed by this instance of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap.
View Source
public virtual IDalamudTextureWrap CreateWrapSharingLowLevelResource()
Returns
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: The new reference to this texture wrap.### ToString() Returns a string that represents the current object.
View Source
public override string ToString()
Returns
System.String
: A string that represents the current object.### Dispose(bool)
Called on System.IDisposable.Dispose
.
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if called from System.IDisposable.Dispose . |
TryGetWrap(out IDalamudTextureWrap?)
Gets the inner wrap.
View Source
protected abstract bool TryGetWrap(out IDalamudTextureWrap? wrap)
Returns
System.Boolean
: true
if not disposed and <code class="paramref">wrap</code> is available.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap | wrap | The inner wrap. |
GetWrap()
Gets the inner wrap.
View Source
protected IDalamudTextureWrap GetWrap()
Returns
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: The inner wrap.
Implements
- Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap
System.IDisposable