mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Merge branch 'master' into viewport
# Conflicts: # examples/imgui_impl_glfw.cpp # examples/imgui_impl_glfw.h # examples/imgui_impl_sdl.cpp # examples/imgui_impl_sdl.h # examples/imgui_impl_win32.cpp # examples/imgui_impl_win32.h # imgui.cpp # imgui_internal.h
This commit is contained in:
		
							
								
								
									
										8
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								imgui.h
									
									
									
									
									
								
							@@ -336,8 +336,8 @@ namespace ImGui
 | 
			
		||||
    IMGUI_API bool          ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0,0),  const ImVec2& uv1 = ImVec2(1,1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0,0,0,0), const ImVec4& tint_col = ImVec4(1,1,1,1));    // <0 frame_padding uses default frame padding settings. 0 for no padding
 | 
			
		||||
    IMGUI_API bool          Checkbox(const char* label, bool* v);
 | 
			
		||||
    IMGUI_API bool          CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value);
 | 
			
		||||
    IMGUI_API bool          RadioButton(const char* label, bool active);
 | 
			
		||||
    IMGUI_API bool          RadioButton(const char* label, int* v, int v_button);
 | 
			
		||||
    IMGUI_API bool          RadioButton(const char* label, bool active);                    // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; }
 | 
			
		||||
    IMGUI_API bool          RadioButton(const char* label, int* v, int v_button);           // shortcut to handle the above pattern when value is an integer
 | 
			
		||||
    IMGUI_API void          PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0,0), int stride = sizeof(float));
 | 
			
		||||
    IMGUI_API void          PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0,0));
 | 
			
		||||
    IMGUI_API void          PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0,0), int stride = sizeof(float));
 | 
			
		||||
@@ -1009,11 +1009,12 @@ enum ImGuiMouseCursor_
 | 
			
		||||
    ImGuiMouseCursor_None = -1,
 | 
			
		||||
    ImGuiMouseCursor_Arrow = 0,
 | 
			
		||||
    ImGuiMouseCursor_TextInput,         // When hovering over InputText, etc.
 | 
			
		||||
    ImGuiMouseCursor_ResizeAll,         // Unused by imgui functions
 | 
			
		||||
    ImGuiMouseCursor_ResizeAll,         // (Unused by imgui functions)
 | 
			
		||||
    ImGuiMouseCursor_ResizeNS,          // When hovering over an horizontal border
 | 
			
		||||
    ImGuiMouseCursor_ResizeEW,          // When hovering over a vertical border or a column
 | 
			
		||||
    ImGuiMouseCursor_ResizeNESW,        // When hovering over the bottom-left corner of a window
 | 
			
		||||
    ImGuiMouseCursor_ResizeNWSE,        // When hovering over the bottom-right corner of a window
 | 
			
		||||
    ImGuiMouseCursor_Hand,              // (Unused by imgui functions. Use for e.g. hyperlinks)
 | 
			
		||||
    ImGuiMouseCursor_COUNT
 | 
			
		||||
 | 
			
		||||
    // Obsolete names (will be removed)
 | 
			
		||||
@@ -1295,6 +1296,7 @@ public:
 | 
			
		||||
    inline iterator     erase_unsorted(const_iterator it)               { IM_ASSERT(it >= Data && it < Data+Size);  const ptrdiff_t off = it - Data; if (it < Data+Size-1) memcpy(Data + off, Data + Size - 1, sizeof(value_type)); Size--; return Data + off; }
 | 
			
		||||
    inline iterator     insert(const_iterator it, const value_type& v)  { IM_ASSERT(it >= Data && it <= Data+Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(value_type)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; }
 | 
			
		||||
    inline bool         contains(const value_type& v) const             { const T* data = Data;  const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; }
 | 
			
		||||
    inline int          index_from_pointer(const_iterator it) const     { IM_ASSERT(it >= Data && it <= Data+Size); const ptrdiff_t off = it - Data; return (int)off; }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// Helper: IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() macros to call MemAlloc + Placement New, Placement Delete + MemFree
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user