Class ImGuiExtensions
Class containing various extensions to ImGui, aiding with building custom widgets.
Assembly: Dalamud.dll
View Source
Declaration
public static class ImGuiExtensions
Methods
AddTextClippedEx(ImDrawListPtr, Vector2, Vector2, string, Vector2?, Vector2, Vector4?)
Draw clipped text.
View Source
Declaration
public static void AddTextClippedEx(this ImDrawListPtr drawListPtr, Vector2 posMin, Vector2 posMax, string text, Vector2? textSizeIfKnown, Vector2 align, Vector4? clipRect)
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImDrawListPtr | drawListPtr | Pointer to the draw list. |
System.Numerics.Vector2 | posMin | Minimum position. |
System.Numerics.Vector2 | posMax | Maximum position. |
System.String | text | Text to draw. |
System.Nullable<System.Numerics.Vector2> | textSizeIfKnown | Size of the text, if known. |
System.Numerics.Vector2 | align | Alignment. |
System.Nullable<System.Numerics.Vector4> | clipRect | Clip rect to use. |
AddText(ImDrawListPtr, ImFontPtr, float, Vector2, uint, string, ref Vector4)
Add text to a draw list.
View Source
Declaration
public static void AddText(this ImDrawListPtr drawListPtr, ImFontPtr font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect)
Parameters
Type | Name | Description |
---|---|---|
ImGuiNET.ImDrawListPtr | drawListPtr | Pointer to the draw list. |
ImGuiNET.ImFontPtr | font | Font to use. |
System.Single | fontSize | Font size. |
System.Numerics.Vector2 | pos | Position to draw at. |
System.UInt32 | col | Color to use. |
System.String | textBegin | Text to draw. |
System.Numerics.Vector4 | cpuFineClipRect | Clip rect to use. |