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:
parent
fbbd4c94b4
commit
9816a052dc
2 changed files with 12 additions and 0 deletions
3
imgui.h
3
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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue