Updated ImGui.
This commit is contained in:
parent
d83c8439ff
commit
a975942f46
3
3rdparty/dear-imgui/imgui.cpp
vendored
3
3rdparty/dear-imgui/imgui.cpp
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (main code and documentation)
|
// (main code and documentation)
|
||||||
|
|
||||||
// Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code.
|
// Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code.
|
||||||
@ -4278,6 +4278,7 @@ static bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size
|
|||||||
|
|
||||||
// Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually.
|
// Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually.
|
||||||
// While this is not really documented/defined, it seems that the expected thing to do.
|
// While this is not really documented/defined, it seems that the expected thing to do.
|
||||||
|
if (child_window->BeginCount == 1)
|
||||||
parent_window->DC.CursorPos = child_window->Pos;
|
parent_window->DC.CursorPos = child_window->Pos;
|
||||||
|
|
||||||
// Process navigation-in immediately so NavInit can run on first frame
|
// Process navigation-in immediately so NavInit can run on first frame
|
||||||
|
6
3rdparty/dear-imgui/imgui.h
vendored
6
3rdparty/dear-imgui/imgui.h
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (headers)
|
// (headers)
|
||||||
|
|
||||||
// See imgui.cpp file for documentation.
|
// See imgui.cpp file for documentation.
|
||||||
@ -45,8 +45,8 @@ Index of this file:
|
|||||||
|
|
||||||
// Version
|
// Version
|
||||||
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY00 then bounced up to XYY01 when release tagging happens)
|
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY00 then bounced up to XYY01 when release tagging happens)
|
||||||
#define IMGUI_VERSION "1.67"
|
#define IMGUI_VERSION "1.68 WIP"
|
||||||
#define IMGUI_VERSION_NUM 16603
|
#define IMGUI_VERSION_NUM 16800
|
||||||
#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert))
|
#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert))
|
||||||
|
|
||||||
// Define attributes of all API symbols declarations (e.g. for DLL under Windows)
|
// Define attributes of all API symbols declarations (e.g. for DLL under Windows)
|
||||||
|
4
3rdparty/dear-imgui/imgui_demo.cpp
vendored
4
3rdparty/dear-imgui/imgui_demo.cpp
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (demo code)
|
// (demo code)
|
||||||
|
|
||||||
// Message to the person tempted to delete this file when integrating Dear ImGui into their code base:
|
// Message to the person tempted to delete this file when integrating Dear ImGui into their code base:
|
||||||
@ -1983,7 +1983,7 @@ static void ShowDemoWindowLayout()
|
|||||||
{
|
{
|
||||||
ImGui::BeginChild("scrolling"); // Demonstrate a trick: you can use Begin to set yourself in the context of another window (here we are already out of your child window)
|
ImGui::BeginChild("scrolling"); // Demonstrate a trick: you can use Begin to set yourself in the context of another window (here we are already out of your child window)
|
||||||
ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta);
|
ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta);
|
||||||
ImGui::End();
|
ImGui::EndChild();
|
||||||
}
|
}
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
2
3rdparty/dear-imgui/imgui_draw.cpp
vendored
2
3rdparty/dear-imgui/imgui_draw.cpp
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (drawing and font code)
|
// (drawing and font code)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
8
3rdparty/dear-imgui/imgui_internal.h
vendored
8
3rdparty/dear-imgui/imgui_internal.h
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (internal structures/api)
|
// (internal structures/api)
|
||||||
|
|
||||||
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
|
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
|
||||||
@ -364,12 +364,14 @@ enum ImGuiItemStatusFlags_
|
|||||||
};
|
};
|
||||||
|
|
||||||
// FIXME: this is in development, not exposed/functional as a generic feature yet.
|
// FIXME: this is in development, not exposed/functional as a generic feature yet.
|
||||||
|
// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2
|
||||||
enum ImGuiLayoutType_
|
enum ImGuiLayoutType_
|
||||||
{
|
{
|
||||||
ImGuiLayoutType_Vertical = 0,
|
ImGuiLayoutType_Horizontal = 0,
|
||||||
ImGuiLayoutType_Horizontal = 1
|
ImGuiLayoutType_Vertical = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// X/Y enums are fixed to 0/1 so they may be used to index ImVec2
|
||||||
enum ImGuiAxis
|
enum ImGuiAxis
|
||||||
{
|
{
|
||||||
ImGuiAxis_None = -1,
|
ImGuiAxis_None = -1,
|
||||||
|
2
3rdparty/dear-imgui/imgui_widgets.cpp
vendored
2
3rdparty/dear-imgui/imgui_widgets.cpp
vendored
@ -1,4 +1,4 @@
|
|||||||
// dear imgui, v1.67
|
// dear imgui, v1.68 WIP
|
||||||
// (widgets code)
|
// (widgets code)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user