Skip to main content

Class ForwardingTextureWrap

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

Assembly: Dalamud.dll
View Source
Declaration
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
Declaration
public nint ImGuiHandle { get; }

Width

Gets the width of the texture.

View Source
Declaration
public int Width { get; }

Height

Gets the height of the texture.

View Source
Declaration
public int Height { get; }

Size

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

View Source
Declaration
public Vector2 Size { get; }

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
Declaration
public void Dispose()

CreateWrapSharingLowLevelResource()

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

View Source
Declaration
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
Declaration
public override string ToString()
Returns

System.String: A string that represents the current object.### Dispose(bool) Called on System.IDisposable.Dispose.

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

TryGetWrap(out IDalamudTextureWrap?)

Gets the inner wrap.

View Source
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.

View Source
Declaration
protected IDalamudTextureWrap GetWrap()
Returns

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

Implements