mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Merge branch 'master' into viewport
# Conflicts: # imgui.cpp # imgui_demo.cpp # imgui_internal.h
This commit is contained in:
		@@ -120,6 +120,7 @@ static inline bool      ImCharIsBlankA(char c)          { return c == ' ' || c =
 | 
			
		||||
static inline bool      ImCharIsBlankW(unsigned int c)  { return c == ' ' || c == '\t' || c == 0x3000; }
 | 
			
		||||
static inline bool      ImIsPowerOfTwo(int v)           { return v != 0 && (v & (v - 1)) == 0; }
 | 
			
		||||
static inline int       ImUpperPowerOfTwo(int v)        { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; }
 | 
			
		||||
#define ImQsort         qsort
 | 
			
		||||
 | 
			
		||||
// Helpers: Geometry
 | 
			
		||||
IMGUI_API ImVec2        ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p);
 | 
			
		||||
@@ -1142,6 +1143,11 @@ namespace ImGui
 | 
			
		||||
    IMGUI_API void          Initialize(ImGuiContext* context);
 | 
			
		||||
    IMGUI_API void          Shutdown(ImGuiContext* context);    // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext().
 | 
			
		||||
 | 
			
		||||
    IMGUI_API void          SetCurrentFont(ImFont* font);
 | 
			
		||||
    inline ImFont*          GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; }
 | 
			
		||||
    IMGUI_API ImDrawList*   GetOverlayDrawList(ImGuiViewportP* viewport);
 | 
			
		||||
    inline ImDrawList*      GetOverlayDrawList(ImGuiWindow* window) { return GetOverlayDrawList(window->Viewport); }
 | 
			
		||||
 | 
			
		||||
    IMGUI_API void          UpdateHoveredWindowAndCaptureFlags();
 | 
			
		||||
    IMGUI_API void          StartMouseMovingWindow(ImGuiWindow* window);
 | 
			
		||||
    IMGUI_API void          UpdateMouseMovingWindow();
 | 
			
		||||
@@ -1181,12 +1187,9 @@ namespace ImGui
 | 
			
		||||
    IMGUI_API void          PushItemFlag(ImGuiItemFlags option, bool enabled);
 | 
			
		||||
    IMGUI_API void          PopItemFlag();
 | 
			
		||||
 | 
			
		||||
    IMGUI_API void          SetCurrentFont(ImFont* font);
 | 
			
		||||
    IMGUI_API ImDrawList*   GetOverlayDrawList(ImGuiViewportP* viewport);
 | 
			
		||||
    inline ImDrawList*      GetOverlayDrawList(ImGuiWindow* window) { return GetOverlayDrawList(window->Viewport); }
 | 
			
		||||
 | 
			
		||||
    IMGUI_API void          OpenPopupEx(ImGuiID id);
 | 
			
		||||
    IMGUI_API void          ClosePopup(ImGuiID id);
 | 
			
		||||
    IMGUI_API void          ClosePopupToLevel(int remaining);
 | 
			
		||||
    IMGUI_API void          ClosePopupsOverWindow(ImGuiWindow* ref_window);
 | 
			
		||||
    IMGUI_API bool          IsPopupOpen(ImGuiID id);
 | 
			
		||||
    IMGUI_API bool          BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user