|
|
@ -880,8 +880,6 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y);
|
|
|
|
|
|
|
|
|
|
|
|
namespace ImGui
|
|
|
|
namespace ImGui
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Navigation
|
|
|
|
// Navigation
|
|
|
|
static void NavUpdate();
|
|
|
|
static void NavUpdate();
|
|
|
|
static void NavUpdateWindowing();
|
|
|
|
static void NavUpdateWindowing();
|
|
|
@ -3876,8 +3874,7 @@ void ImGui::Initialize(ImGuiContext* context)
|
|
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if 0 // FIXME-WIP: This is a placeholder to facilitate merging of Tables branch into multiple branches.
|
|
|
|
#ifdef IMGUI_HAS_TABLE
|
|
|
|
|
|
|
|
|
|
|
|
// Add .ini handle for ImGuiTable type
|
|
|
|
// Add .ini handle for ImGuiTable type
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ImGuiSettingsHandler ini_handler;
|
|
|
|
ImGuiSettingsHandler ini_handler;
|
|
|
@ -3888,8 +3885,10 @@ void ImGui::Initialize(ImGuiContext* context)
|
|
|
|
ini_handler.WriteAllFn = TableSettingsHandler_WriteAll;
|
|
|
|
ini_handler.WriteAllFn = TableSettingsHandler_WriteAll;
|
|
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
|
|
g.SettingsHandlers.push_back(ini_handler);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // #ifdef IMGUI_HAS_TABLE
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#ifdef IMGUI_HAS_DOCK
|
|
|
|
|
|
|
|
#endif // #ifdef IMGUI_HAS_DOCK
|
|
|
|
|
|
|
|
|
|
|
|
g.Initialized = true;
|
|
|
|
g.Initialized = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4654,7 +4653,7 @@ static ImRect GetViewportRect()
|
|
|
|
return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
|
|
|
|
return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags)
|
|
|
|
bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
ImGuiWindow* parent_window = g.CurrentWindow;
|
|
|
|
ImGuiWindow* parent_window = g.CurrentWindow;
|
|
|
@ -10102,20 +10101,22 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
|
IM_UNUSED(trt_rects_names);
|
|
|
|
IM_UNUSED(trt_rects_names);
|
|
|
|
IM_UNUSED(show_tables_rects);
|
|
|
|
IM_UNUSED(show_tables_rects);
|
|
|
|
IM_UNUSED(show_tables_rect_type);
|
|
|
|
IM_UNUSED(show_tables_rect_type);
|
|
|
|
#if 0
|
|
|
|
#ifdef IMGUI_HAS_TABLE
|
|
|
|
if (ImGui::TreeNode("Tables", "Tables (%d)", g.Tables.GetSize()))
|
|
|
|
if (ImGui::TreeNode("Tables", "Tables (%d)", g.Tables.GetSize()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
for (int n = 0; n < g.Tables.GetSize(); n++)
|
|
|
|
|
|
|
|
Funcs::NodeTable(g.Tables.GetByIndex(n));
|
|
|
|
ImGui::TreePop();
|
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // #define IMGUI_HAS_TABLE
|
|
|
|
|
|
|
|
|
|
|
|
// Details for Docking
|
|
|
|
// Details for Docking
|
|
|
|
#if 0
|
|
|
|
#ifdef IMGUI_HAS_DOCK
|
|
|
|
if (ImGui::TreeNode("Docking"))
|
|
|
|
if (ImGui::TreeNode("Docking"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ImGui::TreePop();
|
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // #define IMGUI_HAS_DOCK
|
|
|
|
|
|
|
|
|
|
|
|
// Misc Details
|
|
|
|
// Misc Details
|
|
|
|
if (ImGui::TreeNode("Internal state"))
|
|
|
|
if (ImGui::TreeNode("Internal state"))
|
|
|
@ -10192,8 +10193,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME-WIP: This is a placeholder to facilitate merging of Tables branch into multiple branches.
|
|
|
|
#ifdef IMGUI_HAS_TABLE
|
|
|
|
#if 0
|
|
|
|
|
|
|
|
// Overlay: Display Tables Rectangles
|
|
|
|
// Overlay: Display Tables Rectangles
|
|
|
|
if (show_tables_rects)
|
|
|
|
if (show_tables_rects)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -10202,15 +10202,14 @@ void ImGui::ShowMetricsWindow(bool* p_open)
|
|
|
|
ImGuiTable* table = g.Tables.GetByIndex(table_n);
|
|
|
|
ImGuiTable* table = g.Tables.GetByIndex(table_n);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // #define IMGUI_HAS_TABLE
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME-WIP: This is a placeholder to facilitate merging of Docking branch into multiple branches.
|
|
|
|
#ifdef IMGUI_HAS_DOCK
|
|
|
|
#if 0
|
|
|
|
|
|
|
|
// Overlay: Display Docking info
|
|
|
|
// Overlay: Display Docking info
|
|
|
|
if (show_docking_nodes && g.IO.KeyCtrl)
|
|
|
|
if (show_docking_nodes && g.IO.KeyCtrl)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // #define IMGUI_HAS_DOCK
|
|
|
|
|
|
|
|
|
|
|
|
ImGui::End();
|
|
|
|
ImGui::End();
|
|
|
|
}
|
|
|
|
}
|
|
|
|