|
|
@@ -1,4 +1,4 @@
|
|
|
-// dear imgui, v1.48 WIP
|
|
|
+// dear imgui, v1.49 WIP
|
|
|
// (headers)
|
|
|
|
|
|
// See imgui.cpp file for documentation.
|
|
|
@@ -16,7 +16,7 @@
|
|
|
#include <stddef.h> // ptrdiff_t, NULL
|
|
|
#include <string.h> // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp
|
|
|
|
|
|
-#define IMGUI_VERSION "1.48 WIP"
|
|
|
+#define IMGUI_VERSION "1.49 WIP"
|
|
|
|
|
|
// Define attributes of all API symbols declarations, e.g. for DLL under Windows.
|
|
|
#ifndef IMGUI_API
|
|
|
@@ -315,7 +315,7 @@ namespace ImGui
|
|
|
IMGUI_API void TreePush(const char* str_id = NULL); // already called by TreeNode(), but you can call Push/Pop yourself for layouting purpose
|
|
|
IMGUI_API void TreePush(const void* ptr_id = NULL); // "
|
|
|
IMGUI_API void TreePop();
|
|
|
- IMGUI_API void SetNextTreeNodeOpened(bool opened, ImGuiSetCond cond = 0); // set next tree node to be opened.
|
|
|
+ IMGUI_API void SetNextTreeNodeOpened(bool opened, ImGuiSetCond cond = 0); // set next tree node/collapsing header to be opened.
|
|
|
|
|
|
// Widgets: Selectable / Lists
|
|
|
IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0,0)); // size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height
|
|
|
@@ -892,6 +892,7 @@ struct ImGuiTextFilter
|
|
|
int CountGrep;
|
|
|
|
|
|
ImGuiTextFilter(const char* default_filter = "");
|
|
|
+ ~ImGuiTextFilter() {}
|
|
|
void Clear() { InputBuf[0] = 0; Build(); }
|
|
|
bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build
|
|
|
bool PassFilter(const char* text, const char* text_end = NULL) const;
|
|
|
@@ -1155,7 +1156,7 @@ struct ImDrawList
|
|
|
// Stateful path API, add points then finish with PathFill() or PathStroke()
|
|
|
inline void PathClear() { _Path.resize(0); }
|
|
|
inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); }
|
|
|
- inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || _Path[_Path.Size-1].x != pos.x || _Path[_Path.Size-1].y != pos.y) _Path.push_back(pos); }
|
|
|
+ inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path[_Path.Size-1], &pos, 8) != 0) _Path.push_back(pos); }
|
|
|
inline void PathFill(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col, true); PathClear(); }
|
|
|
inline void PathStroke(ImU32 col, bool closed, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, closed, thickness, true); PathClear(); }
|
|
|
IMGUI_API void PathArcTo(const ImVec2& centre, float radius, float a_min, float a_max, int num_segments = 10);
|