Version 1.92.7 WIP

+ minor demo tweaks.
This commit is contained in:
ocornut
2026-02-18 16:05:19 +01:00
parent 6ded5230d0
commit b8a1f74fd9
8 changed files with 25 additions and 16 deletions
+9
View File
@@ -35,6 +35,15 @@ HOW TO UPDATE?
and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users. and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users.
- Please report any issue! - Please report any issue!
-----------------------------------------------------------------------
VERSION 1.92.7 WIP (In Progress)
-----------------------------------------------------------------------
Breaking Changes:
Other Changes:
----------------------------------------------------------------------- -----------------------------------------------------------------------
VERSION 1.92.6 (2026-02-17) VERSION 1.92.6 (2026-02-17)
----------------------------------------------------------------------- -----------------------------------------------------------------------
+1 -1
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (main code and documentation) // (main code and documentation)
// Help: // Help:
+3 -3
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (headers) // (headers)
// Help: // Help:
@@ -29,8 +29,8 @@
// Library Version // Library Version
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345') // (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
#define IMGUI_VERSION "1.92.6" #define IMGUI_VERSION "1.92.7 WIP"
#define IMGUI_VERSION_NUM 19261 #define IMGUI_VERSION_NUM 19262
#define IMGUI_HAS_TABLE // Added BeginTable() - from IMGUI_VERSION_NUM >= 18000 #define IMGUI_HAS_TABLE // Added BeginTable() - from IMGUI_VERSION_NUM >= 18000
#define IMGUI_HAS_TEXTURES // Added ImGuiBackendFlags_RendererHasTextures - from IMGUI_VERSION_NUM >= 19198 #define IMGUI_HAS_TEXTURES // Added ImGuiBackendFlags_RendererHasTextures - from IMGUI_VERSION_NUM >= 19198
+8 -8
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (demo code) // (demo code)
// Help: // Help:
@@ -731,7 +731,7 @@ struct ExampleTreeNode
// Tree structure // Tree structure
char Name[28] = ""; char Name[28] = "";
int UID = 0; int UID = 0;
ExampleTreeNode* Parent = NULL; ExampleTreeNode* Parent = NULL;
ImVector<ExampleTreeNode*> Childs; ImVector<ExampleTreeNode*> Childs;
unsigned short IndexInParent = 0; // Maintaining this allows us to implement linear traversal more easily unsigned short IndexInParent = 0; // Maintaining this allows us to implement linear traversal more easily
@@ -746,7 +746,7 @@ struct ExampleTreeNode
// (this is a minimal version of what a typical advanced application may provide) // (this is a minimal version of what a typical advanced application may provide)
struct ExampleMemberInfo struct ExampleMemberInfo
{ {
const char* Name; // Member name const char* Name; // Member name
ImGuiDataType DataType; // Member type ImGuiDataType DataType; // Member type
int DataCount; // Member count (1 when scalar) int DataCount; // Member count (1 when scalar)
int Offset; // Offset inside parent structure int Offset; // Offset inside parent structure
@@ -781,7 +781,7 @@ static void ExampleTree_DestroyNode(ExampleTreeNode* node)
} }
// Create example tree data // Create example tree data
// (this allocates _many_ more times than most other code in either Dear ImGui or others demo) // (this allocates _many_ more times than most other code in all of Dear ImGui or others demo)
static ExampleTreeNode* ExampleTree_CreateDemoTree() static ExampleTreeNode* ExampleTree_CreateDemoTree()
{ {
static const char* root_names[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pear", "Pineapple", "Strawberry", "Watermelon" }; static const char* root_names[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pear", "Pineapple", "Strawberry", "Watermelon" };
@@ -9448,7 +9448,7 @@ static void ShowExampleAppLayout(bool* p_open)
struct ExampleAppPropertyEditor struct ExampleAppPropertyEditor
{ {
ImGuiTextFilter Filter; ImGuiTextFilter Filter;
ExampleTreeNode* VisibleNode = NULL; ExampleTreeNode* SelectedNode = NULL;
void Draw(ExampleTreeNode* root_node) void Draw(ExampleTreeNode* root_node)
{ {
@@ -9477,7 +9477,7 @@ struct ExampleAppPropertyEditor
ImGui::SameLine(); ImGui::SameLine();
ImGui::BeginGroup(); // Lock X position ImGui::BeginGroup(); // Lock X position
if (ExampleTreeNode* node = VisibleNode) if (ExampleTreeNode* node = SelectedNode)
{ {
ImGui::Text("%s", node->Name); ImGui::Text("%s", node->Name);
ImGui::TextDisabled("UID: 0x%08X", node->UID); ImGui::TextDisabled("UID: 0x%08X", node->UID);
@@ -9550,7 +9550,7 @@ struct ExampleAppPropertyEditor
tree_flags |= ImGuiTreeNodeFlags_NavLeftJumpsToParent; // Left arrow support tree_flags |= ImGuiTreeNodeFlags_NavLeftJumpsToParent; // Left arrow support
tree_flags |= ImGuiTreeNodeFlags_SpanFullWidth; // Span full width for easier mouse reach tree_flags |= ImGuiTreeNodeFlags_SpanFullWidth; // Span full width for easier mouse reach
tree_flags |= ImGuiTreeNodeFlags_DrawLinesToNodes; // Always draw hierarchy outlines tree_flags |= ImGuiTreeNodeFlags_DrawLinesToNodes; // Always draw hierarchy outlines
if (node == VisibleNode) if (node == SelectedNode)
tree_flags |= ImGuiTreeNodeFlags_Selected; tree_flags |= ImGuiTreeNodeFlags_Selected;
if (node->Childs.Size == 0) if (node->Childs.Size == 0)
tree_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet; tree_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet;
@@ -9560,7 +9560,7 @@ struct ExampleAppPropertyEditor
if (node->DataMyBool == false) if (node->DataMyBool == false)
ImGui::PopStyleColor(); ImGui::PopStyleColor();
if (ImGui::IsItemFocused()) if (ImGui::IsItemFocused())
VisibleNode = node; SelectedNode = node;
if (node_open) if (node_open)
{ {
for (ExampleTreeNode* child : node->Childs) for (ExampleTreeNode* child : node->Childs)
+1 -1
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (drawing and font code) // (drawing and font code)
/* /*
+1 -1
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (internal structures/api) // (internal structures/api)
// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility. // You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility.
+1 -1
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (tables and columns code) // (tables and columns code)
/* /*
+1 -1
View File
@@ -1,4 +1,4 @@
// dear imgui, v1.92.6 // dear imgui, v1.92.7 WIP
// (widgets code) // (widgets code)
/* /*