mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Comments
This commit is contained in:
		| @@ -144,7 +144,7 @@ | ||||
|  - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API | ||||
|  - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. | ||||
|  - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. | ||||
|  - 2015/03/17 (1.36) - renamed GetItemRectMin()/GetItemRectMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function (will obsolete). | ||||
|  - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function (will obsolete). | ||||
|  - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing | ||||
|  - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function (will obsolete). | ||||
|  - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth | ||||
|   | ||||
							
								
								
									
										32
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -310,14 +310,14 @@ namespace ImGui | ||||
|     // Widgets: Menus | ||||
|     IMGUI_API bool          BeginMainMenuBar();                                                 // create and append to a full screen menu-bar. only call EndMainMenuBar() if this returns true! | ||||
|     IMGUI_API void          EndMainMenuBar(); | ||||
|     IMGUI_API bool          BeginMenuBar();                                                     // append to menu-bar of current window. only call EndMenuBar() if this returns true! | ||||
|     IMGUI_API bool          BeginMenuBar();                                                     // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set). only call EndMenuBar() if this returns true! | ||||
|     IMGUI_API void          EndMenuBar(); | ||||
|     IMGUI_API bool          BeginMenu(const char* label, bool enabled = true);                  // create a sub-menu entry. only call EndMenu() if this returns true! | ||||
|     IMGUI_API void          EndMenu(); | ||||
|     IMGUI_API bool          MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true);  // return true when activated. shortcuts are displayed for convenience but not processed by ImGui | ||||
|     IMGUI_API bool          MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true);              // return true when activated + toggle (*p_selected) if p_selected != NULL | ||||
|  | ||||
|     // Widgets: Value() Helpers. Output single value in "name: value" format (tip: freely declare your own within the ImGui namespace!) | ||||
|     // Widgets: Value() Helpers. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) | ||||
|     IMGUI_API void          Value(const char* prefix, bool b); | ||||
|     IMGUI_API void          Value(const char* prefix, int v); | ||||
|     IMGUI_API void          Value(const char* prefix, unsigned int v); | ||||
| @@ -338,8 +338,8 @@ namespace ImGui | ||||
|     IMGUI_API bool          IsItemHoveredRect();                                                // was the last item hovered by mouse? even if another item is active while we are hovering this | ||||
|     IMGUI_API bool          IsItemActive();                                                     // was the last item active? (e.g. button being held, text field being edited- items that don't interact will always return false) | ||||
|     IMGUI_API bool          IsItemVisible(); | ||||
|     IMGUI_API bool          IsAnyItemHovered();                                                 //  | ||||
|     IMGUI_API bool          IsAnyItemActive();                                                  //  | ||||
|     IMGUI_API bool          IsAnyItemHovered(); | ||||
|     IMGUI_API bool          IsAnyItemActive(); | ||||
|     IMGUI_API ImVec2        GetItemRectMin();                                                   // get bounding rect of last item in screen space | ||||
|     IMGUI_API ImVec2        GetItemRectMax();                                                   // " | ||||
|     IMGUI_API ImVec2        GetItemRectSize();                                                  // " | ||||
| @@ -367,7 +367,7 @@ namespace ImGui | ||||
|     IMGUI_API const char*   GetStyleColName(ImGuiCol idx); | ||||
|     IMGUI_API ImVec2        CalcItemRectClosestPoint(const ImVec2& pos, bool on_edge = false, float outward = +0.0f);   // utility to find the closest point the last item bounding rectangle edge. useful to visually link items | ||||
|     IMGUI_API ImVec2        CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); | ||||
|     IMGUI_API void          CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end);    // helper to manually clip large list of items. see comments in implementation | ||||
|     IMGUI_API void          CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end);    // helper to manually clip large list of evenly sized items. see comments in implementation | ||||
|  | ||||
|     IMGUI_API void          BeginChildFrame(ImGuiID id, const ImVec2& size);                    // helper to create a child window / scrolling region that looks like a normal widget frame | ||||
|     IMGUI_API void          EndChildFrame(); | ||||
| @@ -376,25 +376,25 @@ namespace ImGui | ||||
|     IMGUI_API void          ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); | ||||
|     IMGUI_API void          ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); | ||||
|  | ||||
|     // Proxy functions to access the MemAllocFn/MemFreeFn pointers in ImGui::GetIO() | ||||
|     // Helpers functions to access the MemAllocFn/MemFreeFn pointers in ImGui::GetIO() | ||||
|     IMGUI_API void*         MemAlloc(size_t sz); | ||||
|     IMGUI_API void          MemFree(void* ptr); | ||||
|  | ||||
|     // Internal state access - if you want to share ImGui state between modules (e.g. DLL) or allocate it yourself | ||||
|     // Internal state/context access - if you want to use multiple ImGui context, or share context between modules (e.g. DLL), or allocate the memory yourself | ||||
|     IMGUI_API const char*   GetVersion(); | ||||
|     IMGUI_API void*         GetInternalState(); | ||||
|     IMGUI_API size_t        GetInternalStateSize(); | ||||
|     IMGUI_API void          SetInternalState(void* state, bool construct = false); | ||||
|  | ||||
|     // Obsolete (will be removed) | ||||
|     IMGUI_API void          GetDefaultFontData(const void** fnt_data, unsigned int* fnt_size, const void** png_data, unsigned int* png_size);   // OBSOLETE | ||||
|     static inline void      OpenNextNode(bool open) { ImGui::SetNextTreeNodeOpened(open, 0); }  // OBSOLETE | ||||
|     static inline bool      GetWindowIsFocused() { return ImGui::IsWindowFocused(); }   // OBSOLETE | ||||
|     static inline ImVec2    GetItemBoxMin() { return GetItemRectMin(); }    // OBSOLETE | ||||
|     static inline ImVec2    GetItemBoxMax() { return GetItemRectMax(); }    // OBSOLETE | ||||
|     static inline bool      IsClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE | ||||
|     static inline bool      IsRectClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE | ||||
|     static inline bool      IsMouseHoveringBox(const ImVec2& rect_min, const ImVec2& rect_max) { return IsMouseHoveringRect(rect_min, rect_max); }  // OBSOLETE | ||||
|     IMGUI_API void          GetDefaultFontData(const void** fnt_data, unsigned int* fnt_size, const void** png_data, unsigned int* png_size);   // OBSOLETE 1.30+ | ||||
|     static inline void      OpenNextNode(bool open) { ImGui::SetNextTreeNodeOpened(open, 0); }  // OBSOLETE 1.34+ | ||||
|     static inline bool      GetWindowIsFocused() { return ImGui::IsWindowFocused(); }   // OBSOLETE 1.36+ | ||||
|     static inline ImVec2    GetItemBoxMin() { return GetItemRectMin(); }    // OBSOLETE 1.36+ | ||||
|     static inline ImVec2    GetItemBoxMax() { return GetItemRectMax(); }    // OBSOLETE 1.36+ | ||||
|     static inline bool      IsClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE 1.38+ | ||||
|     static inline bool      IsRectClipped(const ImVec2& size) { return !IsRectVisible(size); }   // OBSOLETE 1.39+ | ||||
|     static inline bool      IsMouseHoveringBox(const ImVec2& rect_min, const ImVec2& rect_max) { return IsMouseHoveringRect(rect_min, rect_max); }  // OBSOLETE 1.36+ | ||||
|  | ||||
| } // namespace ImGui | ||||
|  | ||||
| @@ -411,7 +411,7 @@ enum ImGuiWindowFlags_ | ||||
|     ImGuiWindowFlags_AlwaysAutoResize       = 1 << 6,   // Resize every window to its content every frame | ||||
|     ImGuiWindowFlags_ShowBorders            = 1 << 7,   // Show borders around windows and items | ||||
|     ImGuiWindowFlags_NoSavedSettings        = 1 << 8,   // Never load/save settings in .ini file | ||||
|     ImGuiWindowFlags_MenuBar                = 1 << 9,   // Has a menubar | ||||
|     ImGuiWindowFlags_MenuBar                = 1 << 9,   // Has a menu-bar | ||||
|     // [Internal] | ||||
|     ImGuiWindowFlags_ChildWindow            = 1 << 20,  // Don't use! For internal use by BeginChild() | ||||
|     ImGuiWindowFlags_ChildWindowAutoFitX    = 1 << 21,  // Don't use! For internal use by BeginChild() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user