Skip to main content

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
TypeNameDescription
ImGuiNET.ImDrawListPtrdrawListPtrPointer to the draw list.
System.Numerics.Vector2posMinMinimum position.
System.Numerics.Vector2posMaxMaximum position.
System.StringtextText to draw.
System.Nullable<System.Numerics.Vector2>textSizeIfKnownSize of the text, if known.
System.Numerics.Vector2alignAlignment.
System.Nullable<System.Numerics.Vector4>clipRectClip 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
TypeNameDescription
ImGuiNET.ImDrawListPtrdrawListPtrPointer to the draw list.
ImGuiNET.ImFontPtrfontFont to use.
System.SinglefontSizeFont size.
System.Numerics.Vector2posPosition to draw at.
System.UInt32colColor to use.
System.StringtextBeginText to draw.
System.Numerics.Vector4cpuFineClipRectClip rect to use.