Skip to main content

Class ForwardingTextureWrap

Base class for implementations of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap that forwards to another.

Assembly: Dalamud.dll
Declaration
public abstract class ForwardingTextureWrap : IDalamudTextureWrap, IDisposable

Implements:
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap, System.IDisposable

Properties

Handle

Gets a texture handle suitable for direct use with ImGui functions.

Declaration
public ImTextureID Handle { get; }

Width

Gets the width of the texture.

Declaration
public int Width { get; }

Height

Gets the height of the texture.

Declaration
public int Height { get; }

Size

Gets the size vector of the texture using Width, Height.

Declaration
public Vector2 Size { get; }

Methods

Dispose()

Declaration
public void Dispose()

CreateWrapSharingLowLevelResource()

Creates a new reference to the resource being pointed by this instance of Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap.

Declaration
public virtual IDalamudTextureWrap CreateWrapSharingLowLevelResource()
Returns

Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: The new reference to this texture wrap.

ToString()

Declaration
public override string ToString()
Returns

System.String

Dispose(bool)

Called on System.IDisposable.Dispose.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.Booleandisposingtrue if called from System.IDisposable.Dispose.

TryGetWrap(out IDalamudTextureWrap?)

Gets the inner wrap.

Declaration
protected abstract bool TryGetWrap(out IDalamudTextureWrap? wrap)
Returns

System.Boolean: true if not disposed and <code class="paramref">wrap</code> is available.

Parameters
TypeNameDescription
Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrapwrapThe inner wrap.

GetWrap()

Gets the inner wrap.

Declaration
protected IDalamudTextureWrap GetWrap()
Returns

Dalamud.Interface.Textures.TextureWraps.IDalamudTextureWrap: The inner wrap.

Implements