mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # backends/imgui_impl_opengl3.cpp # docs/CHANGELOG.txt
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
// dear imgui, v1.83
 | 
			
		||||
// dear imgui, v1.84 WIP
 | 
			
		||||
// (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!
 | 
			
		||||
@@ -63,7 +63,9 @@ Index of this file:
 | 
			
		||||
#pragma warning (disable: 4251)     // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport)
 | 
			
		||||
#pragma warning (disable: 26812)    // The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer)
 | 
			
		||||
#pragma warning (disable: 26495)    // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6).
 | 
			
		||||
 | 
			
		||||
#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later
 | 
			
		||||
#pragma warning (disable: 5054)     // operator '|': deprecated between enumerations of different types
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// Clang/GCC warnings with -Weverything
 | 
			
		||||
@@ -334,12 +336,13 @@ static inline bool      ImCharIsBlankA(char c)          { return c == ' ' || c =
 | 
			
		||||
static inline bool      ImCharIsBlankW(unsigned int c)  { return c == ' ' || c == '\t' || c == 0x3000; }
 | 
			
		||||
 | 
			
		||||
// Helpers: UTF-8 <> wchar conversions
 | 
			
		||||
IMGUI_API int           ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end);      // return output UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end);          // read one character. return input UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL);   // return input UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end);                            // return number of UTF-8 code-points (NOT bytes count)
 | 
			
		||||
IMGUI_API int           ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end);                        // return number of bytes to express one char in UTF-8
 | 
			
		||||
IMGUI_API int           ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end);                   // return number of bytes to express string in UTF-8
 | 
			
		||||
IMGUI_API const char*   ImTextCharToUtf8(char out_buf[5], unsigned int c);                                                      // return out_buf
 | 
			
		||||
IMGUI_API int           ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end);   // return output UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end);               // read one character. return input UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL);   // return input UTF-8 bytes count
 | 
			
		||||
IMGUI_API int           ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end);                                 // return number of UTF-8 code-points (NOT bytes count)
 | 
			
		||||
IMGUI_API int           ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end);                             // return number of bytes to express one char in UTF-8
 | 
			
		||||
IMGUI_API int           ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end);                        // return number of bytes to express string in UTF-8
 | 
			
		||||
 | 
			
		||||
// Helpers: ImVec2/ImVec4 operators
 | 
			
		||||
// We are keeping those disabled by default so they don't leak in user space, to allow user enabling implicit cast operators between ImVec2 and their own types (using IM_VEC2_CLASS_EXTRA etc.)
 | 
			
		||||
@@ -2889,10 +2892,12 @@ namespace ImGui
 | 
			
		||||
    inline void             DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255))    { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(window->DC.LastItemRect.Min, window->DC.LastItemRect.Max, col); }
 | 
			
		||||
    inline void             DebugStartItemPicker()                                  { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; }
 | 
			
		||||
 | 
			
		||||
    IMGUI_API void          ShowFontAtlas(ImFontAtlas* atlas);
 | 
			
		||||
    IMGUI_API void          DebugNodeColumns(ImGuiOldColumns* columns);
 | 
			
		||||
    IMGUI_API void          DebugNodeDockNode(ImGuiDockNode* node, const char* label);
 | 
			
		||||
    IMGUI_API void          DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label);
 | 
			
		||||
    IMGUI_API void          DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb);
 | 
			
		||||
    IMGUI_API void          DebugNodeFont(ImFont* font);
 | 
			
		||||
    IMGUI_API void          DebugNodeStorage(ImGuiStorage* storage, const char* label);
 | 
			
		||||
    IMGUI_API void          DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label);
 | 
			
		||||
    IMGUI_API void          DebugNodeTable(ImGuiTable* table);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user