Skip to main content

Interface IDrawListTextureWrap

A texture wrap that can be drawn using ImGui draw data.

Assembly: Dalamud.dll
View Source
Declaration
public interface IDrawListTextureWrap : IDalamudTextureWrap, IDisposable

Properties

Width

Gets or sets the width of the texture.

View Source
Declaration
int Width { get; set; }

Height

Gets or sets the width of the texture.

View Source
Declaration
int Height { get; set; }

Size

Gets or sets the size of the texture.

View Source
Declaration
Vector2 Size { get; set; }

ClearColor

Gets or sets the color to use when clearing this texture.

View Source
Declaration
Vector4 ClearColor { get; set; }

Methods

Draw(ImDrawListPtr, Vector2, Vector2)

Draws a draw list to this texture.

View Source
Declaration
void Draw(ImDrawListPtr drawListPtr, Vector2 displayPos, Vector2 scale)
Parameters
TypeNameDescription
ImGuiNET.ImDrawListPtrdrawListPtrDraw list to draw from.
System.Numerics.Vector2displayPosLeft-top coordinates of the draw commands in the draw list.
System.Numerics.Vector2scaleScale to apply to all draw commands in the draw list.

Draw(scoped in ImDrawData)

Draws from a draw data to this texture.

View Source
Declaration
void Draw(scoped in ImDrawData drawData)
Parameters
TypeNameDescription
ImGuiNET.ImDrawDatadrawDataDraw data to draw.

Draw(ImDrawDataPtr)

Draws from a draw data to this texture.

View Source
Declaration
void Draw(ImDrawDataPtr drawData)
Parameters
TypeNameDescription
ImGuiNET.ImDrawDataPtrdrawDataDraw data to draw.

ResizeAndDrawWindow(ReadOnlySpan<char>, Vector2)

Resizes this texture and draws an ImGui window.

View Source
Declaration
void ResizeAndDrawWindow(ReadOnlySpan<char> windowName, Vector2 scale)
Parameters
TypeNameDescription
System.ReadOnlySpan<System.Char>windowNameName and ID of the window to draw. Use the value that goes into
[ImGuiNET.ImGui.Begin(string)](../../ImGuiNET/Classes/ImGui#beginstring). |

| System.Numerics.Vector2 | scale | Scale to apply to all draw commands in the draw list. |