Skip to main content

Class ImVectorWrapper

Utility methods for Dalamud.Interface.Utility.ImVectorWrapper%601.

Assembly: Dalamud.dll
View Source
Declaration
public static class ImVectorWrapper

Methods

CreateFromEnumerable<T>(IEnumerable<T>, ImGuiNativeDestroyDelegate?, int)

Creates a new instance of the Dalamud.Interface.Utility.ImVectorWrapper%601 struct, initialized with <code class="paramref">sourceEnumerable</code>.

You must call Dalamud.Interface.Utility.ImVectorWrapper%601.Dispose after use.

View Source
Declaration
public static ImVectorWrapper<T> CreateFromEnumerable<T>(IEnumerable<T> sourceEnumerable, ImVectorWrapper<T>.ImGuiNativeDestroyDelegate? destroyer = null, int minCapacity = 0) where T : unmanaged
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The new wrapped vector, that has to be disposed after use.

Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<<T>>sourceEnumerableThe initial data.
Dalamud.Interface.Utility.ImVectorWrapper<T>.ImGuiNativeDestroyDelegatedestroyerThe destroyer function to call on item removal.
System.Int32minCapacityThe minimum capacity of the new vector.
Type Parameters
NameDescription
TThe item type.

CreateFromSpan<T>(ReadOnlySpan<T>, ImGuiNativeDestroyDelegate?, int)

Creates a new instance of the Dalamud.Interface.Utility.ImVectorWrapper%601 struct, initialized with <code class="paramref">sourceSpan</code>.

You must call Dalamud.Interface.Utility.ImVectorWrapper%601.Dispose after use.

View Source
Declaration
public static ImVectorWrapper<T> CreateFromSpan<T>(ReadOnlySpan<T> sourceSpan, ImVectorWrapper<T>.ImGuiNativeDestroyDelegate? destroyer = null, int minCapacity = 0) where T : unmanaged
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The new wrapped vector, that has to be disposed after use.

Parameters
TypeNameDescription
System.ReadOnlySpan<<T>>sourceSpanThe initial data.
Dalamud.Interface.Utility.ImVectorWrapper<T>.ImGuiNativeDestroyDelegatedestroyerThe destroyer function to call on item removal.
System.Int32minCapacityThe minimum capacity of the new vector.
Type Parameters
NameDescription
TThe item type.

ConfigDataWrapped(ImFontAtlasPtr)

Wraps ImGuiNET.ImFontAtlas.ConfigData into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ImFontConfig> ConfigDataWrapped(this ImFontAtlasPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontAtlasPtrobjThe owner object.

FontsWrapped(ImFontAtlasPtr)

Wraps ImGuiNET.ImFontAtlas.Fonts into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ImFontPtr> FontsWrapped(this ImFontAtlasPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontAtlasPtrobjThe owner object.

TexturesWrapped(ImFontAtlasPtr)

Wraps ImGuiNET.ImFontAtlas.Textures into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ImFontAtlasTexture> TexturesWrapped(this ImFontAtlasPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontAtlasPtrobjThe owner object.

GlyphsWrapped(ImFontPtr)

Wraps ImGuiNET.ImFont.Glyphs into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ImGuiHelpers.ImFontGlyphReal> GlyphsWrapped(this ImFontPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontPtrobjThe owner object.

IndexedHotDataWrapped(ImFontPtr)

Wraps ImGuiNET.ImFont.IndexedHotData into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ImGuiHelpers.ImFontGlyphHotDataReal> IndexedHotDataWrapped(this ImFontPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontPtrobjThe owner object.

IndexLookupWrapped(ImFontPtr)

Wraps ImGuiNET.ImFont.IndexLookup into a Dalamud.Interface.Utility.ImVectorWrapper%601.

This does not need to be disposed.

View Source
Declaration
public static ImVectorWrapper<ushort> IndexLookupWrapped(this ImFontPtr obj)
Returns

Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.

Parameters
TypeNameDescription
ImGuiNET.ImFontPtrobjThe owner object.