Class ImVectorWrapper
Utility methods for Dalamud.Interface.Utility.ImVectorWrapper%601
.
Assembly: Dalamud.dll
View Source
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
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
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<<T>> | sourceEnumerable | The initial data. |
Dalamud.Interface.Utility.ImVectorWrapper<T>.ImGuiNativeDestroyDelegate | destroyer | The destroyer function to call on item removal. |
System.Int32 | minCapacity | The minimum capacity of the new vector. |
Type Parameters
Name | Description |
---|---|
T | The 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
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
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<<T>> | sourceSpan | The initial data. |
Dalamud.Interface.Utility.ImVectorWrapper<T>.ImGuiNativeDestroyDelegate | destroyer | The destroyer function to call on item removal. |
System.Int32 | minCapacity | The minimum capacity of the new vector. |
Type Parameters
Name | Description |
---|---|
T | The item type. |
ConfigDataWrapped(ImFontAtlasPtr)
Wraps ImGuiNET.ImFontAtlas.ConfigData into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ImFontConfig> ConfigDataWrapped(this ImFontAtlasPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontAtlasPtr | obj | The owner object. |
FontsWrapped(ImFontAtlasPtr)
Wraps ImGuiNET.ImFontAtlas.Fonts into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ImFontPtr> FontsWrapped(this ImFontAtlasPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontAtlasPtr | obj | The owner object. |
TexturesWrapped(ImFontAtlasPtr)
Wraps ImGuiNET.ImFontAtlas.Textures into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ImFontAtlasTexture> TexturesWrapped(this ImFontAtlasPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontAtlasPtr | obj | The owner object. |
GlyphsWrapped(ImFontPtr)
Wraps ImGuiNET.ImFont.Glyphs into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ImGuiHelpers.ImFontGlyphReal> GlyphsWrapped(this ImFontPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | obj | The owner object. |
IndexedHotDataWrapped(ImFontPtr)
Wraps ImGuiNET.ImFont.IndexedHotData into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ImGuiHelpers.ImFontGlyphHotDataReal> IndexedHotDataWrapped(this ImFontPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | obj | The owner object. |
IndexLookupWrapped(ImFontPtr)
Wraps ImGuiNET.ImFont.IndexLookup into a Dalamud.Interface.Utility.ImVectorWrapper%601
.
This does not need to be disposed.
View Source
public static ImVectorWrapper<ushort> IndexLookupWrapped(this ImFontPtr obj)
Returns
Dalamud.Interface.Utility.ImVectorWrapper<T>: The wrapped vector.
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImFontPtr | obj | The owner object. |