1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

fix imgui node graph version stuff

This commit is contained in:
gabriel 2025-10-02 10:53:23 +02:00
parent fbbd4c94b4
commit 9816a052dc
2 changed files with 12 additions and 0 deletions

View file

@ -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.

View file

@ -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<ImGuiLayout*> LayoutStack;
ImGuiLayout* CurrentLayout;
ImGuiLayoutItem* CurrentLayoutItem;
// Layout
ImVec2 CursorPos; // Current emitting position, in absolute coordinates.
ImVec2 CursorPosPrevLine;