diff --git a/imgui.h b/imgui.h index 253904784..54eba0e41 100644 --- a/imgui.h +++ b/imgui.h @@ -2324,6 +2324,9 @@ IM_MSVC_RUNTIME_CHECKS_RESTORE struct ImGuiStyle { + // Additions for node graph + float LayoutAlign; + // Font scaling // - recap: ImGui::GetFontSize() == FontSizeBase * (FontScaleMain * FontScaleDpi * other_scaling_factors) float FontSizeBase; // Current base font size before external global factors are applied. Use PushFont(NULL, size) to modify. Use ImGui::GetFontSize() to obtain scaled value. diff --git a/imgui_internal.h b/imgui_internal.h index b33954a6c..9a38c1174 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -2755,6 +2755,9 @@ struct ImGuiContext ImGuiContext(ImFontAtlas* shared_font_atlas); }; +struct ImGuiLayout; +struct ImGuiLayoutItem; + //----------------------------------------------------------------------------- // [SECTION] ImGuiWindowTempData, ImGuiWindow //----------------------------------------------------------------------------- @@ -2764,6 +2767,12 @@ struct ImGuiContext // (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) struct IMGUI_API ImGuiWindowTempData { + // Changes for node graph: + ImGuiStorage Layouts; + ImVector LayoutStack; + ImGuiLayout* CurrentLayout; + ImGuiLayoutItem* CurrentLayoutItem; + // Layout ImVec2 CursorPos; // Current emitting position, in absolute coordinates. ImVec2 CursorPosPrevLine;