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
Type | Name | Description |
---|---|---|
ImGuiNET.ImDrawListPtr | drawListPtr | Draw list to draw from. |
System.Numerics.Vector2 | displayPos | Left-top coordinates of the draw commands in the draw list. |
System.Numerics.Vector2 | scale | Scale 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
Type | Name | Description |
---|---|---|
ImGuiNET.ImDrawData | drawData | Draw data to draw. |
Draw(ImDrawDataPtr)
Draws from a draw data to this texture.
View Source
Declaration
void Draw(ImDrawDataPtr drawData)
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImDrawDataPtr | drawData | Draw 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
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | windowName | Name 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. |