diff --git a/Dalamud/Interface/ImGuiHelpers.cs b/Dalamud/Interface/ImGuiHelpers.cs new file mode 100644 index 000000000..90a400d52 --- /dev/null +++ b/Dalamud/Interface/ImGuiHelpers.cs @@ -0,0 +1,15 @@ +using ImGuiNET; + +namespace Dalamud.Interface +{ + /// + /// Class containing various helper methods for use with ImGui inside Dalamud. + /// + public static class ImGuiHelpers + { + /// + /// Force this ImGui window to stay inside the main game window. + /// + public static void ForceMainWindow() => ImGui.SetNextWindowViewport(ImGui.GetMainViewport().ID); + } +}