// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public partial class Internal { /// /// /// C++: /// imgui_internal.h:3324 /// , /// imgui.cpp:5090 ///
ImGuiIO& GetIO(ImGuiContext* ctx) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// /// This variant exists to facilitate backends experimenting with multi-threaded parallel context. /// (#8069, #6293, #5856) /// /// public static unsafe ImGuiIOPtr GetIO(ImGuiContextPtr ctx) => PInvoke.GetIO_internal(ctx); /// /// /// C++: /// imgui_internal.h:3325 /// , /// imgui.cpp:5103 ///
ImGuiPlatformIO& GetPlatformIO(ImGuiContext* ctx) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// /// This variant exists to facilitate backends experimenting with multi-threaded parallel context. /// (#8069, #6293, #5856) /// /// public static unsafe ImGuiPlatformIOPtr GetPlatformIO(ImGuiContextPtr ctx) => PInvoke.GetPlatformIO_internal(ctx); /// /// /// C++: /// imgui_internal.h:3326 ///
inline ImGuiWindow* GetCurrentWindowRead() ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe ImGuiWindowPtr GetCurrentWindowRead() => PInvoke.GetCurrentWindowRead_internal(); /// /// /// C++: /// imgui_internal.h:3327 ///
inline ImGuiWindow* GetCurrentWindow() ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe ImGuiWindowPtr GetCurrentWindow() => PInvoke.GetCurrentWindow_internal(); /// /// /// C++: /// imgui_internal.h:3328 /// , /// imgui.cpp:6670 ///
ImGuiWindow* FindWindowByID(ImGuiID id) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe ImGuiWindowPtr FindWindowByID(ImGuiID id) => PInvoke.FindWindowByID_internal(id); /// /// /// C++: /// imgui_internal.h:3329 /// , /// imgui.cpp:6676 ///
ImGuiWindow* FindWindowByName(const char* name) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe ImGuiWindowPtr FindWindowByName(ImString name) { fixed (byte* name_fixed = name) { return PInvoke.FindWindowByName_internal(name_fixed); } } /// /// /// C++: /// imgui_internal.h:3330 /// , /// imgui.cpp:7506 ///
/// void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void UpdateWindowParentAndRootLinks( ImGuiWindowPtr window, ImGuiWindowFlags flags, ImGuiWindowPtr parentWindow ) => PInvoke.UpdateWindowParentAndRootLinks_internal(window, flags, parentWindow); /// /// /// C++: /// imgui_internal.h:3331 /// , /// imgui.cpp:7529 ///
void UpdateWindowSkipRefresh(ImGuiWindow* window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// /// [EXPERIMENTAL] Called by Begin(). NextWindowData is valid at this point. /// This is designed as a toy/test-bed for /// /// public static unsafe void UpdateWindowSkipRefresh(ImGuiWindowPtr window) => PInvoke.UpdateWindowSkipRefresh_internal(window); /// /// /// C++: /// imgui_internal.h:3332 /// , /// imgui.cpp:6890 ///
ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe float2 CalcWindowNextAutoFitSize(ImGuiWindowPtr window) => PInvoke.CalcWindowNextAutoFitSize_internal(window); /// /// /// C++: /// imgui_internal.h:3333 /// , /// imgui.cpp:8711 ///
/// bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe bool IsWindowChildOf( ImGuiWindowPtr window, ImGuiWindowPtr potentialParent, bool popupHierarchy, bool dockHierarchy ) => PInvoke.IsWindowChildOf_internal(window, potentialParent, popupHierarchy, dockHierarchy); /// /// /// C++: /// imgui_internal.h:3334 /// , /// imgui.cpp:8727 ///
bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe bool IsWindowWithinBeginStackOf( ImGuiWindowPtr window, ImGuiWindowPtr potentialParent ) => PInvoke.IsWindowWithinBeginStackOf_internal(window, potentialParent); /// /// /// C++: /// imgui_internal.h:3335 /// , /// imgui.cpp:8740 ///
bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe bool IsWindowAbove(ImGuiWindowPtr potentialAbove, ImGuiWindowPtr potentialBelow) => PInvoke.IsWindowAbove_internal(potentialAbove, potentialBelow); /// /// /// C++: /// imgui_internal.h:3336 /// , /// imgui.cpp:14820 ///
bool IsWindowNavFocusable(ImGuiWindow* window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// /// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) /// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. /// If you want a window to never be focused, you may use the e.g. NoInputs flag. /// /// public static unsafe bool IsWindowNavFocusable(ImGuiWindowPtr window) => PInvoke.IsWindowNavFocusable_internal(window); /// /// /// C++: /// imgui_internal.h:3337 /// , /// imgui.cpp:8841 ///
void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowPos(ImGuiWindowPtr window, in float2 pos, ImGuiCond cond = default) { fixed (float2* pos_fixed = &pos) { PInvoke.SetWindowPos_internal(window, pos_fixed, cond); } } /// /// /// C++: /// imgui_internal.h:3338 /// , /// imgui.cpp:8883 ///
void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowSize(ImGuiWindowPtr window, in float2 size, ImGuiCond cond = default) { fixed (float2* size_fixed = &size) { PInvoke.SetWindowSize_internal(window, size_fixed, cond); } } /// /// /// C++: /// imgui_internal.h:3339 /// , /// imgui.cpp:8923 ///
void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowCollapsed( ImGuiWindowPtr window, bool collapsed, ImGuiCond cond = default ) => PInvoke.SetWindowCollapsed_internal(window, collapsed, cond); /// /// /// C++: /// imgui_internal.h:3340 /// , /// imgui.cpp:8936 ///
/// void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowHitTestHole(ImGuiWindowPtr window, in float2 pos, in float2 size) { fixed (float2* size_fixed = &size) { fixed (float2* pos_fixed = &pos) { PInvoke.SetWindowHitTestHole_internal(window, pos_fixed, size_fixed); } } } /// /// /// C++: /// imgui_internal.h:3341 /// , /// imgui.cpp:8943 ///
void SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindow* window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindowPtr window) => PInvoke.SetWindowHiddenAndSkipItemsForCurrentFrame_internal(window); /// /// /// You may also use SetNextWindowClass()'s FocusRouteParentWindowId field. /// /// /// C++: /// imgui_internal.h:3342 ///
/// inline void SetWindowParentWindowForFocusRoute(ImGuiWindow* window, ImGuiWindow* parent_window) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe void SetWindowParentWindowForFocusRoute( ImGuiWindowPtr window, ImGuiWindowPtr parentWindow ) => PInvoke.SetWindowParentWindowForFocusRoute_internal(window, parentWindow); /// /// /// C++: /// imgui_internal.h:3343 ///
inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe floatRect WindowRectAbsToRel(ImGuiWindowPtr window, in floatRect r) { fixed (floatRect* r_fixed = &r) { return PInvoke.WindowRectAbsToRel_internal(window, r_fixed); } } /// /// /// C++: /// imgui_internal.h:3344 ///
inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe floatRect WindowRectRelToAbs(ImGuiWindowPtr window, in floatRect r) { fixed (floatRect* r_fixed = &r) { return PInvoke.WindowRectRelToAbs_internal(window, r_fixed); } } /// /// /// C++: /// imgui_internal.h:3345 ///
inline ImVec2 WindowPosAbsToRel(ImGuiWindow* window, const ImVec2& p) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe float2 WindowPosAbsToRel(ImGuiWindowPtr window, in float2 p) { fixed (float2* p_fixed = &p) { return PInvoke.WindowPosAbsToRel_internal(window, p_fixed); } } /// /// /// C++: /// imgui_internal.h:3346 ///
inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) ///
///
/// /// /// Windows /// We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) /// If this ever crashes because g.CurrentWindow is NULL, it means that either: /// - ImGui::NewFrame() has never been called, which is illegal. /// - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. /// /// public static unsafe float2 WindowPosRelToAbs(ImGuiWindowPtr window, in float2 p) { fixed (float2* p_fixed = &p) { return PInvoke.WindowPosRelToAbs_internal(window, p_fixed); } } /// /// /// C++: /// imgui_internal.h:3349 /// , /// imgui.cpp:13350 ///
void FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags = 0) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// /// Moving window to front of display and set focus (which happens to be back of our sorted list) /// /// public static unsafe void FocusWindow(ImGuiWindowPtr window, ImGuiFocusRequestFlags flags = default) => PInvoke.FocusWindow_internal(window, flags); /// /// /// C++: /// imgui_internal.h:3350 /// , /// imgui.cpp:13419 ///
/// void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe void FocusTopMostWindowUnderOne( ImGuiWindowPtr underThisWindow, ImGuiWindowPtr ignoreWindow, ImGuiViewportPtr filterViewport, ImGuiFocusRequestFlags flags ) => PInvoke.FocusTopMostWindowUnderOne_internal(underThisWindow, ignoreWindow, filterViewport, flags); /// /// /// C++: /// imgui_internal.h:3351 /// , /// imgui.cpp:13270 ///
void BringWindowToFocusFront(ImGuiWindow* window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe void BringWindowToFocusFront(ImGuiWindowPtr window) => PInvoke.BringWindowToFocusFront_internal(window); /// /// /// C++: /// imgui_internal.h:3352 /// , /// imgui.cpp:13292 ///
void BringWindowToDisplayFront(ImGuiWindow* window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// /// Note technically focus related but rather adjacent and close to BringWindowToFocusFront() /// /// public static unsafe void BringWindowToDisplayFront(ImGuiWindowPtr window) => PInvoke.BringWindowToDisplayFront_internal(window); /// /// /// C++: /// imgui_internal.h:3353 /// , /// imgui.cpp:13307 ///
void BringWindowToDisplayBack(ImGuiWindow* window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe void BringWindowToDisplayBack(ImGuiWindowPtr window) => PInvoke.BringWindowToDisplayBack_internal(window); /// /// /// C++: /// imgui_internal.h:3354 /// , /// imgui.cpp:13321 ///
void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe void BringWindowToDisplayBehind(ImGuiWindowPtr window, ImGuiWindowPtr aboveWindow) => PInvoke.BringWindowToDisplayBehind_internal(window, aboveWindow); /// /// /// C++: /// imgui_internal.h:3355 /// , /// imgui.cpp:13343 ///
int FindWindowDisplayIndex(ImGuiWindow* window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe int FindWindowDisplayIndex(ImGuiWindowPtr window) => PInvoke.FindWindowDisplayIndex_internal(window); /// /// /// C++: /// imgui_internal.h:3356 /// , /// imgui.cpp:5940 ///
ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window) ///
///
/// /// /// Windows: Display Order and Focus Order /// /// public static unsafe ImGuiWindowPtr FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindowPtr window) => PInvoke.FindBottomMostVisibleWindowWithinBeginStack_internal(window); /// /// /// C++: /// imgui_internal.h:3359 /// , /// imgui.cpp:9061 ///
void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags) ///
///
/// /// /// Windows: Idle, Refresh Policies [EXPERIMENTAL] /// /// /// This is experimental and meant to be a toy for exploring a future/wider range of features. /// /// public static unsafe void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags) => PInvoke.SetNextWindowRefreshPolicy_internal(flags); /// /// /// Register external texture. EXPERIMENTAL: DO NOT USE YET. /// /// /// C++: /// imgui_internal.h:3362 /// , /// imgui.cpp:9378 ///
void RegisterUserTexture(ImTextureData* tex) ///
///
/// /// /// Fonts, drawing /// /// /// EXPERIMENTAL: DO NOT USE YET. /// /// public static unsafe void RegisterUserTexture(ImTextureDataPtr tex) => PInvoke.RegisterUserTexture_internal(tex); /// /// /// C++: /// imgui_internal.h:3363 /// , /// imgui.cpp:9385 ///
void UnregisterUserTexture(ImTextureData* tex) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void UnregisterUserTexture(ImTextureDataPtr tex) => PInvoke.UnregisterUserTexture_internal(tex); /// /// /// C++: /// imgui_internal.h:3364 /// , /// imgui.cpp:9393 ///
void RegisterFontAtlas(ImFontAtlas* atlas) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void RegisterFontAtlas(ImFontAtlasPtr atlas) => PInvoke.RegisterFontAtlas_internal(atlas); /// /// /// C++: /// imgui_internal.h:3365 /// , /// imgui.cpp:9403 ///
void UnregisterFontAtlas(ImFontAtlas* atlas) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void UnregisterFontAtlas(ImFontAtlasPtr atlas) => PInvoke.UnregisterFontAtlas_internal(atlas); /// /// /// C++: /// imgui_internal.h:3366 /// , /// imgui.cpp:9420 ///
/// void SetCurrentFont(ImFont* font, float font_size_before_scaling, float font_size_after_scaling) ///
///
/// /// /// Fonts, drawing /// /// /// Use ImDrawList::_SetTexture(), making our shared g.FontStack[] authoritative against window-local ImDrawList. /// - Whereas ImDrawList::PushTexture()/PopTexture() is not to be used across Begin() calls. /// - Note that we don't propagate current texture id when e.g. Begin()-ing into a new window, we never really did... /// - Some code paths never really fully worked with multiple atlas textures. /// - The right-ish solution may be to remove _SetTexture() and make AddText/RenderText lazily call PushTexture()/PopTexture() /// the same way AddImage() does, but then all other primitives would also need to? I don't think we should tackle this problem /// because we have a concrete need and a test bed for multiple atlas textures. /// FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ? /// /// public static unsafe void SetCurrentFont( ImFontPtr font, float fontSizeBeforeScaling, float fontSizeAfterScaling ) => PInvoke.SetCurrentFont_internal(font, fontSizeBeforeScaling, fontSizeAfterScaling); /// /// /// C++: /// imgui_internal.h:3367 /// , /// imgui.cpp:9442 ///
void UpdateCurrentFontSize(float restore_font_size_after_scaling) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void UpdateCurrentFontSize(float restoreFontSizeAfterScaling) => PInvoke.UpdateCurrentFontSize_internal(restoreFontSizeAfterScaling); /// /// /// C++: /// imgui_internal.h:3368 /// , /// imgui.cpp:9497 ///
void SetFontRasterizerDensity(float rasterizer_density) ///
///
/// /// /// Fonts, drawing /// /// /// Exposed in case user may want to override setting density. /// IMPORTANT: Begin()/End() is overriding density. Be considerate of this you change it. /// /// public static unsafe void SetFontRasterizerDensity(float rasterizerDensity) => PInvoke.SetFontRasterizerDensity_internal(rasterizerDensity); /// /// /// C++: /// imgui_internal.h:3369 ///
inline float GetFontRasterizerDensity() ///
///
/// /// /// Fonts, drawing /// /// public static unsafe float GetFontRasterizerDensity() => PInvoke.GetFontRasterizerDensity_internal(); /// /// /// C++: /// imgui_internal.h:3370 ///
inline float GetRoundedFontSize(float size) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe float GetRoundedFontSize(float size) => PInvoke.GetRoundedFontSize_internal(size); /// /// /// C++: /// imgui_internal.h:3371 /// , /// imgui.cpp:9368 ///
ImFont* GetDefaultFont() ///
///
/// /// /// Fonts, drawing /// /// public static unsafe ImFontPtr GetDefaultFont() => PInvoke.GetDefaultFont_internal(); /// /// /// C++: /// imgui_internal.h:3372 /// , /// imgui_widgets.cpp:4328 ///
void PushPasswordFont() ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void PushPasswordFont() => PInvoke.PushPasswordFont_internal(); /// /// /// C++: /// imgui_internal.h:3373 /// , /// imgui_widgets.cpp:4344 ///
void PopPasswordFont() ///
///
/// /// /// Fonts, drawing /// /// public static unsafe void PopPasswordFont() => PInvoke.PopPasswordFont_internal(); /// /// /// C++: /// imgui_internal.h:3374 ///
inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) ///
///
/// /// /// Fonts, drawing /// /// public static unsafe ImDrawListPtr GetForegroundDrawList(ImGuiWindowPtr window) => PInvoke.GetForegroundDrawList_internal(window); /// /// /// C++: /// imgui_internal.h:3375 /// , /// imgui_draw.cpp:2264 ///
/// void AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector<ImDrawList*>* out_list, ImDrawList* draw_list) ///
///
/// /// /// Fonts, drawing /// /// /// Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list /// as long at it is expected that the result will be later merged into draw_data->CmdLists[]. /// /// public static unsafe void AddDrawListToDrawDataEx( ImDrawDataPtr drawData, out ImVector outList, ImDrawListPtr drawList ) { fixed (ImVector* outList_fixed = &outList) { PInvoke.AddDrawListToDrawDataEx_internal(drawData, outList_fixed, drawList); } } /// /// /// C++: /// imgui_internal.h:3378 /// , /// imgui.cpp:4316 ///
void Initialize() ///
///
/// /// /// Init /// /// public static unsafe void Initialize() => PInvoke.Initialize_internal(); /// /// /// Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context /// created by CreateContext(). /// /// /// C++: /// imgui_internal.h:3379 /// , /// imgui.cpp:4384 ///
void Shutdown() ///
///
/// /// /// Init /// /// /// This function is merely here to free heap allocations. /// /// public static unsafe void Shutdown() => PInvoke.Shutdown_internal(); /// /// /// C++: /// imgui_internal.h:3382 /// , /// imgui.cpp:10821 ///
void UpdateInputEvents(bool trickle_fast_inputs) ///
///
/// /// /// NewFrame /// /// /// Process input queue /// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. /// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) /// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) /// /// public static unsafe void UpdateInputEvents(bool trickleFastInputs) => PInvoke.UpdateInputEvents_internal(trickleFastInputs); /// /// /// C++: /// imgui_internal.h:3383 /// , /// imgui.cpp:5385 ///
void UpdateHoveredWindowAndCaptureFlags(const ImVec2& mouse_pos) ///
///
/// /// /// NewFrame /// /// /// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, /// we want to dispatch inputs to the right target (imgui vs imgui+app) /// /// public static unsafe void UpdateHoveredWindowAndCaptureFlags(in float2? mousePos) { var mousePos_ptr = mousePos is { } mousePos_value ? &mousePos_value : null; PInvoke.UpdateHoveredWindowAndCaptureFlags_internal((float2*)mousePos_ptr); } /// /// /// C++: /// imgui_internal.h:3384 /// , /// imgui.cpp:6237 ///
/// void FindHoveredWindowEx(const ImVec2& pos, bool find_first_and_in_any_viewport, ImGuiWindow** out_hovered_window, ImGuiWindow** out_hovered_window_under_moving_window) ///
///
/// /// /// NewFrame /// /// /// Find window given position, search front-to-back /// - Typically write output back to g.HoveredWindow and g.HoveredWindowUnderMovingWindow. /// - FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically /// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is /// called, aka before the next Begin(). Moving window isn't affected. /// - The 'find_first_and_in_any_viewport = true' mode is only used by TestEngine. It is simpler to maintain here. /// /// public static unsafe void FindHoveredWindowEx( in float2 pos, bool findFirstAndInAnyViewport, out ImGuiWindowPtr outHoveredWindow, out ImGuiWindowPtr outHoveredWindowUnderMovingWindow ) { fixed (ImGuiWindowPtr* outHoveredWindowUnderMovingWindow_fixed = &outHoveredWindowUnderMovingWindow) { fixed (ImGuiWindowPtr* outHoveredWindow_fixed = &outHoveredWindow) { fixed (float2* pos_fixed = &pos) { PInvoke.FindHoveredWindowEx_internal( pos_fixed, findFirstAndInAnyViewport, (ImGuiWindow**)outHoveredWindow_fixed, (ImGuiWindow**)outHoveredWindowUnderMovingWindow_fixed ); } } } } /// /// /// C++: /// imgui_internal.h:3385 /// , /// imgui.cpp:5170 ///
void StartMouseMovingWindow(ImGuiWindow* window) ///
///
/// /// /// NewFrame /// /// public static unsafe void StartMouseMovingWindow(ImGuiWindowPtr window) => PInvoke.StartMouseMovingWindow_internal(window); /// /// /// C++: /// imgui_internal.h:3386 /// , /// imgui.cpp:5195 ///
void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock) ///
///
/// /// /// NewFrame /// /// /// We use 'undock == false' when dragging from title bar to allow moving groups of floating nodes /// without undocking them. /// /// public static unsafe void StartMouseMovingWindowOrNode( ImGuiWindowPtr window, ImGuiDockNodePtr node, bool undock ) => PInvoke.StartMouseMovingWindowOrNode_internal(window, node, undock); /// /// /// C++: /// imgui_internal.h:3387 /// , /// imgui.cpp:5221 ///
void StopMouseMovingWindow() ///
///
/// /// /// NewFrame /// /// /// This is not 100% symetric with StartMouseMovingWindow(). /// We do NOT clear ActiveID, because: /// - It would lead to rather confusing recursive code paths. Caller can call ClearActiveID() if desired. /// - Some code intentionally cancel moving but keep the ActiveID to lock inputs (e.g. code path taken when clicking a disabled item). /// /// public static unsafe void StopMouseMovingWindow() => PInvoke.StopMouseMovingWindow_internal(); /// /// /// C++: /// imgui_internal.h:3388 /// , /// imgui.cpp:5251 ///
void UpdateMouseMovingWindowNewFrame() ///
///
/// /// /// NewFrame /// /// /// Handle mouse moving window /// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() /// FIXME: We don't have strong guarantee that g.MovingWindow stay synced with g.ActiveId == g.MovingWindow->MoveId. /// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, /// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. /// /// public static unsafe void UpdateMouseMovingWindowNewFrame() => PInvoke.UpdateMouseMovingWindowNewFrame_internal(); /// /// /// C++: /// imgui_internal.h:3389 /// , /// imgui.cpp:5299 ///
void UpdateMouseMovingWindowEndFrame() ///
///
/// /// /// NewFrame /// /// /// Initiate focusing and moving window when clicking on empty space or title bar. /// Initiate focusing window when clicking on a disabled item. /// Handle left-click and right-click focus. /// /// public static unsafe void UpdateMouseMovingWindowEndFrame() => PInvoke.UpdateMouseMovingWindowEndFrame_internal(); /// /// /// C++: /// imgui_internal.h:3392 /// , /// imgui.cpp:4479 ///
ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook) ///
///
/// /// /// Generic context hooks /// /// /// No specific ordering/dependency support, will see as needed /// /// public static unsafe ImGuiID AddContextHook(ImGuiContextPtr context, ImGuiContextHookPtr hook) => PInvoke.AddContextHook_internal(context, hook); /// /// /// C++: /// imgui_internal.h:3393 /// , /// imgui.cpp:4489 ///
void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove) ///
///
/// /// /// Generic context hooks /// /// /// Deferred removal, avoiding issue with changing vector while iterating it /// /// public static unsafe void RemoveContextHook(ImGuiContextPtr context, ImGuiID hookToRemove) => PInvoke.RemoveContextHook_internal(context, hookToRemove); /// /// /// C++: /// imgui_internal.h:3394 /// , /// imgui.cpp:4500 ///
void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type) ///
///
/// /// /// Generic context hooks /// /// /// Call context hooks (used by e.g. test engine) /// We assume a small number of hooks so all stored in same array /// /// public static unsafe void CallContextHooks(ImGuiContextPtr context, ImGuiContextHookType type) => PInvoke.CallContextHooks_internal(context, type); /// /// /// C++: /// imgui_internal.h:3397 /// , /// imgui.cpp:16284 ///
/// void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos, const ImVec2& old_size, const ImVec2& new_size) ///
///
/// /// /// Viewports /// /// /// Translate Dear ImGui windows when a Host Viewport has been moved /// (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) /// /// public static unsafe void TranslateWindowsInViewport( ImGuiViewportPPtr viewport, in float2 oldPos, in float2 newPos, in float2 oldSize, in float2 newSize ) { fixed (float2* newSize_fixed = &newSize) { fixed (float2* oldSize_fixed = &oldSize) { fixed (float2* newPos_fixed = &newPos) { fixed (float2* oldPos_fixed = &oldPos) { PInvoke.TranslateWindowsInViewport_internal( viewport, oldPos_fixed, newPos_fixed, oldSize_fixed, newSize_fixed ); } } } } } /// /// /// C++: /// imgui_internal.h:3398 /// , /// imgui.cpp:16304 ///
void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) ///
///
/// /// /// Viewports /// /// /// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) /// /// public static unsafe void ScaleWindowsInViewport(ImGuiViewportPPtr viewport, float scale) => PInvoke.ScaleWindowsInViewport_internal(viewport, scale); /// /// /// C++: /// imgui_internal.h:3399 /// , /// imgui.cpp:17123 ///
void DestroyPlatformWindow(ImGuiViewportP* viewport) ///
///
/// /// /// Viewports /// /// public static unsafe void DestroyPlatformWindow(ImGuiViewportPPtr viewport) => PInvoke.DestroyPlatformWindow_internal(viewport); /// /// /// C++: /// imgui_internal.h:3400 /// , /// imgui.cpp:16215 ///
void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) ///
///
/// /// /// Viewports /// /// public static unsafe void SetWindowViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) => PInvoke.SetWindowViewport_internal(window, viewport); /// /// /// C++: /// imgui_internal.h:3401 /// , /// imgui.cpp:16195 ///
void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport) ///
///
/// /// /// Viewports /// /// public static unsafe void SetCurrentViewport(ImGuiWindowPtr window, ImGuiViewportPPtr viewport) => PInvoke.SetCurrentViewport_internal(window, viewport); /// /// /// C++: /// imgui_internal.h:3402 /// , /// imgui.cpp:17113 ///
const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport) ///
///
/// /// /// Viewports /// /// /// Return value is always != NULL, but don't hold on it across frames. /// /// public static unsafe ImGuiPlatformMonitorPtr GetViewportPlatformMonitor(ImGuiViewportPtr viewport) => PInvoke.GetViewportPlatformMonitor_internal(viewport); /// /// /// C++: /// imgui_internal.h:3403 /// , /// imgui.cpp:16323 ///
/// ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos) ///
///
/// /// /// Viewports /// /// /// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves. /// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. /// B) It requires Platform_GetWindowFocus to be implemented by backend. /// /// public static unsafe ImGuiViewportPPtr FindHoveredViewportFromPlatformWindowStack( in float2 mousePlatformPos ) { fixed (float2* mousePlatformPos_fixed = &mousePlatformPos) { return PInvoke.FindHoveredViewportFromPlatformWindowStack_internal(mousePlatformPos_fixed); } } /// /// /// C++: /// imgui_internal.h:3406 /// , /// imgui.cpp:15788 ///
void MarkIniSettingsDirty() ///
///
/// /// /// Settings /// /// public static unsafe void MarkIniSettingsDirty() => PInvoke.MarkIniSettingsDirty_internal_0(); /// /// /// C++: /// imgui_internal.h:3407 /// , /// imgui.cpp:15795 ///
void MarkIniSettingsDirty(ImGuiWindow* window) ///
///
/// /// /// Settings /// /// public static unsafe void MarkIniSettingsDirty(ImGuiWindowPtr window) => PInvoke.MarkIniSettingsDirty_internal_1(window); /// /// /// C++: /// imgui_internal.h:3408 /// , /// imgui.cpp:15828 ///
void ClearIniSettings() ///
///
/// /// /// Settings /// /// /// Clear all settings (windows, tables, docking etc.) /// /// public static unsafe void ClearIniSettings() => PInvoke.ClearIniSettings_internal(); /// /// /// C++: /// imgui_internal.h:3409 /// , /// imgui.cpp:15803 ///
void AddSettingsHandler(const ImGuiSettingsHandler* handler) ///
///
/// /// /// Settings /// /// public static unsafe void AddSettingsHandler(ImGuiSettingsHandlerPtr handler) => PInvoke.AddSettingsHandler_internal(handler); /// /// /// C++: /// imgui_internal.h:3410 /// , /// imgui.cpp:15810 ///
void RemoveSettingsHandler(const char* type_name) ///
///
/// /// /// Settings /// /// public static unsafe void RemoveSettingsHandler(ImString typeName) { fixed (byte* typeName_fixed = typeName) { PInvoke.RemoveSettingsHandler_internal(typeName_fixed); } } /// /// /// C++: /// imgui_internal.h:3411 /// , /// imgui.cpp:15817 ///
ImGuiSettingsHandler* FindSettingsHandler(const char* type_name) ///
///
/// /// /// Settings /// /// public static unsafe ImGuiSettingsHandlerPtr FindSettingsHandler(ImString typeName) { fixed (byte* typeName_fixed = typeName) { return PInvoke.FindSettingsHandler_internal(typeName_fixed); } } /// /// /// C++: /// imgui_internal.h:3414 /// , /// imgui.cpp:15950 ///
ImGuiWindowSettings* CreateNewWindowSettings(const char* name) ///
///
/// /// /// Settings - Windows /// /// public static unsafe ImGuiWindowSettingsPtr CreateNewWindowSettings(ImString name) { fixed (byte* name_fixed = name) { return PInvoke.CreateNewWindowSettings_internal(name_fixed); } } /// /// /// C++: /// imgui_internal.h:3415 /// , /// imgui.cpp:15975 ///
ImGuiWindowSettings* FindWindowSettingsByID(ImGuiID id) ///
///
/// /// /// Settings - Windows /// /// /// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. /// This is called once per window .ini entry + once per newly instantiated window. /// /// public static unsafe ImGuiWindowSettingsPtr FindWindowSettingsByID(ImGuiID id) => PInvoke.FindWindowSettingsByID_internal(id); /// /// /// C++: /// imgui_internal.h:3416 /// , /// imgui.cpp:15985 ///
ImGuiWindowSettings* FindWindowSettingsByWindow(ImGuiWindow* window) ///
///
/// /// /// Settings - Windows /// /// /// This is faster if you are holding on a Window already as we don't need to perform a search. /// /// public static unsafe ImGuiWindowSettingsPtr FindWindowSettingsByWindow(ImGuiWindowPtr window) => PInvoke.FindWindowSettingsByWindow_internal(window); /// /// /// C++: /// imgui_internal.h:3417 /// , /// imgui.cpp:15994 ///
void ClearWindowSettings(const char* name) ///
///
/// /// /// Settings - Windows /// /// /// This will revert window to its initial state, including enabling the /// ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. /// /// public static unsafe void ClearWindowSettings(ImString name) { fixed (byte* name_fixed = name) { PInvoke.ClearWindowSettings_internal(name_fixed); } } /// /// /// C++: /// imgui_internal.h:3420 /// , /// imgui.cpp:16135 ///
void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) ///
///
/// /// /// Localization /// /// public static unsafe void LocalizeRegisterEntries(ImGuiLocEntryPtr entries, int count) => PInvoke.LocalizeRegisterEntries_internal(entries, count); /// /// /// C++: /// imgui_internal.h:3421 ///
inline const char* LocalizeGetMsg(ImGuiLocKey key) ///
///
/// /// /// Localization /// /// public static unsafe Ptr LocalizeGetMsg(ImGuiLocKey key) => PInvoke.LocalizeGetMsg_internal(key); /// /// /// C++: /// imgui_internal.h:3424 /// , /// imgui.cpp:12344 ///
void SetScrollX(ImGuiWindow* window, float scroll_x) ///
///
/// /// /// Scrolling /// /// public static unsafe void SetScrollX(ImGuiWindowPtr window, float scrollX) => PInvoke.SetScrollX_internal(window, scrollX); /// /// /// C++: /// imgui_internal.h:3425 /// , /// imgui.cpp:12351 ///
void SetScrollY(ImGuiWindow* window, float scroll_y) ///
///
/// /// /// Scrolling /// /// public static unsafe void SetScrollY(ImGuiWindowPtr window, float scrollY) => PInvoke.SetScrollY_internal(window, scrollY); /// /// /// C++: /// imgui_internal.h:3426 /// , /// imgui.cpp:12380 ///
void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) ///
///
/// /// /// Scrolling /// /// /// Note that a local position will vary depending on initial scroll value, /// This is a little bit confusing so bear with us: /// - local_pos = (absolution_pos - window->Pos) /// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, /// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. /// - They mostly exist because of legacy API. /// Following the rules above, when trying to work with scrolling code, consider that: /// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! /// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense /// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size /// /// public static unsafe void SetScrollFromPosX(ImGuiWindowPtr window, float localX, float centerXRatio) => PInvoke.SetScrollFromPosX_internal(window, localX, centerXRatio); /// /// /// C++: /// imgui_internal.h:3427 /// , /// imgui.cpp:12388 ///
void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) ///
///
/// /// /// Scrolling /// /// public static unsafe void SetScrollFromPosY(ImGuiWindowPtr window, float localY, float centerYRatio) => PInvoke.SetScrollFromPosY_internal(window, localY, centerYRatio); /// /// /// C++: /// imgui_internal.h:3430 /// , /// imgui.cpp:12235 ///
void ScrollToItem(ImGuiScrollFlags flags = 0) ///
///
/// /// /// Early work-in-progress API (ScrollToItem() will become public) /// /// public static unsafe void ScrollToItem(ImGuiScrollFlags flags = default) => PInvoke.ScrollToItem_internal(flags); /// /// /// C++: /// imgui_internal.h:3431 /// , /// imgui.cpp:12242 ///
/// void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0) ///
///
/// /// /// Early work-in-progress API (ScrollToItem() will become public) /// /// public static unsafe void ScrollToRect( ImGuiWindowPtr window, in floatRect rect, ImGuiScrollFlags flags = default ) { fixed (floatRect* rect_fixed = &rect) { PInvoke.ScrollToRect_internal(window, rect_fixed, flags); } } /// /// /// C++: /// imgui_internal.h:3432 /// , /// imgui.cpp:12248 ///
/// ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0) ///
///
/// /// /// Early work-in-progress API (ScrollToItem() will become public) /// /// /// Scroll to keep newly navigated item fully into view /// /// public static unsafe float2 ScrollToRectEx( ImGuiWindowPtr window, in floatRect rect, ImGuiScrollFlags flags = default ) { fixed (floatRect* rect_fixed = &rect) { return PInvoke.ScrollToRectEx_internal(window, rect_fixed, flags); } } /// /// /// C++: /// imgui_internal.h:3434 ///
inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect) ///
///
/// /// /// Early work-in-progress API (ScrollToItem() will become public) /// /// public static unsafe void ScrollToBringRectIntoView(ImGuiWindowPtr window, in floatRect rect) { fixed (floatRect* rect_fixed = &rect) { PInvoke.ScrollToBringRectIntoView_internal(window, rect_fixed); } } /// /// /// C++: /// imgui_internal.h:3438 ///
inline ImGuiItemStatusFlags GetItemStatusFlags() ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiItemStatusFlags GetItemStatusFlags() => PInvoke.GetItemStatusFlags_internal(); /// /// /// C++: /// imgui_internal.h:3439 ///
inline ImGuiItemFlags GetItemFlags() ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiItemFlags GetItemFlags() => PInvoke.GetItemFlags_internal(); /// /// /// C++: /// imgui_internal.h:3440 ///
inline ImGuiID GetActiveID() ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiID GetActiveID() => PInvoke.GetActiveID_internal(); /// /// /// C++: /// imgui_internal.h:3441 ///
inline ImGuiID GetFocusID() ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiID GetFocusID() => PInvoke.GetFocusID_internal(); /// /// /// C++: /// imgui_internal.h:3442 /// , /// imgui.cpp:4611 ///
void SetActiveID(ImGuiID id, ImGuiWindow* window) ///
///
/// /// /// Basic Accessors /// /// public static unsafe void SetActiveID(ImGuiID id, ImGuiWindowPtr window) => PInvoke.SetActiveID_internal(id, window); /// /// /// C++: /// imgui_internal.h:3443 /// , /// imgui.cpp:13523 ///
void SetFocusID(ImGuiID id, ImGuiWindow* window) ///
///
/// /// /// Basic Accessors /// /// public static unsafe void SetFocusID(ImGuiID id, ImGuiWindowPtr window) => PInvoke.SetFocusID_internal(id, window); /// /// /// C++: /// imgui_internal.h:3444 /// , /// imgui.cpp:4675 ///
void ClearActiveID() ///
///
/// /// /// Basic Accessors /// /// public static unsafe void ClearActiveID() => PInvoke.ClearActiveID_internal(); /// /// /// C++: /// imgui_internal.h:3445 /// , /// imgui.cpp:4689 ///
ImGuiID GetHoveredID() ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiID GetHoveredID() => PInvoke.GetHoveredID_internal(); /// /// /// C++: /// imgui_internal.h:3446 /// , /// imgui.cpp:4680 ///
void SetHoveredID(ImGuiID id) ///
///
/// /// /// Basic Accessors /// /// public static unsafe void SetHoveredID(ImGuiID id) => PInvoke.SetHoveredID_internal(id); /// /// /// C++: /// imgui_internal.h:3447 /// , /// imgui.cpp:11647 ///
void KeepAliveID(ImGuiID id) ///
///
/// /// /// Basic Accessors /// /// /// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In /// IMGUI_VERSION_NUM < 18717 this was called by GetID(). /// /// public static unsafe void KeepAliveID(ImGuiID id) => PInvoke.KeepAliveID_internal(id); /// /// /// Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. /// /// /// C++: /// imgui_internal.h:3448 /// , /// imgui.cpp:4695 ///
void MarkItemEdited(ImGuiID id) ///
///
/// /// /// Basic Accessors /// /// public static unsafe void MarkItemEdited(ImGuiID id) => PInvoke.MarkItemEdited_internal(id); /// /// /// Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) /// /// /// C++: /// imgui_internal.h:3449 /// , /// imgui.cpp:9630 ///
void PushOverrideID(ImGuiID id) ///
///
/// /// /// Basic Accessors /// /// /// Push a given id value ignoring the ID stack as a seed. /// /// public static unsafe void PushOverrideID(ImGuiID id) => PInvoke.PushOverrideID_internal(id); /// /// /// C++: /// imgui_internal.h:3450 /// , /// imgui.cpp:9644 ///
ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed) ///
///
/// /// /// Basic Accessors /// /// /// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call /// (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level. /// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) /// /// public static unsafe ImGuiID GetIDWithSeed(ImString strId, ImGuiID seed) { fixed (byte* strId_fixed = strId) { return PInvoke.GetIDWithSeed_internal_0(strId_fixed, strId_fixed + strId.Length, seed); } } /// /// /// C++: /// imgui_internal.h:3451 /// , /// imgui.cpp:9655 ///
ImGuiID GetIDWithSeed(int n, ImGuiID seed) ///
///
/// /// /// Basic Accessors /// /// public static unsafe ImGuiID GetIDWithSeed(int n, ImGuiID seed) => PInvoke.GetIDWithSeed_internal_1(n, seed); /// /// /// C++: /// imgui_internal.h:3454 /// , /// imgui.cpp:11799 ///
void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe void ItemSize(in float2 size, float textBaselineY = -1f) { fixed (float2* size_fixed = &size) { PInvoke.ItemSize_internal_0(size_fixed, textBaselineY); } } /// /// /// FIXME: This is a misleading API since we expect CursorPos to be bb.Min. /// /// /// C++: /// imgui_internal.h:3455 ///
inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe void ItemSize(in floatRect bb, float textBaselineY = -1f) { fixed (floatRect* bb_fixed = &bb) { PInvoke.ItemSize_internal_1(bb_fixed, textBaselineY); } } /// /// /// C++: /// imgui_internal.h:3456 /// , /// imgui.cpp:11661 ///
/// bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe bool ItemAdd( in floatRect bb, ImGuiID id, Ptr navBb = default, ImGuiItemFlags extraFlags = default ) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.ItemAdd_internal(bb_fixed, id, (floatRect*)navBb, extraFlags); } } /// /// /// C++: /// imgui_internal.h:3457 /// , /// imgui.cpp:4864 ///
bool ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags) ///
///
/// /// /// Basic Helpers for widget code /// /// /// Internal facing ItemHoverable() used when submitting widgets. THIS IS A SUBMISSION NOT A HOVER CHECK. /// Returns whether the item was hovered, logic differs slightly from IsItemHovered(). /// (this does not rely on LastItemData it can be called from a ButtonBehavior() call not following an ItemAdd() call) /// FIXME-LEGACY: the 'ImGuiItemFlags item_flags' parameter was added on 2023-06-28. /// If you used this in your legacy/custom widgets code: /// - Commonly: if your ItemHoverable() call comes after an ItemAdd() call: pass 'item_flags = g.LastItemData.ItemFlags'. /// - Rare: otherwise you may pass 'item_flags = 0' (ImGuiItemFlags_None) unless you want to benefit from special behavior handled by ItemHoverable. /// /// public static unsafe bool ItemHoverable(in floatRect bb, ImGuiID id, ImGuiItemFlags itemFlags) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.ItemHoverable_internal(bb_fixed, id, itemFlags); } } /// /// /// C++: /// imgui_internal.h:3458 /// , /// imgui.cpp:4719 ///
bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags = 0) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe bool IsWindowContentHoverable( ImGuiWindowPtr window, ImGuiHoveredFlags flags = default ) => PInvoke.IsWindowContentHoverable_internal(window, flags); /// /// /// C++: /// imgui_internal.h:3459 /// , /// imgui.cpp:4956 ///
bool IsClippedEx(const ImRect& bb, ImGuiID id) ///
///
/// /// /// Basic Helpers for widget code /// /// /// FIXME: This is inlined/duplicated in ItemAdd() /// FIXME: The id != 0 path is not used by our codebase, may get rid of it? /// /// public static unsafe bool IsClippedEx(in floatRect bb, ImGuiID id) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.IsClippedEx_internal(bb_fixed, id); } } /// /// /// C++: /// imgui_internal.h:3460 /// , /// imgui.cpp:4969 ///
/// void SetLastItemData(ImGuiID item_id, ImGuiItemFlags item_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect) ///
///
/// /// /// Basic Helpers for widget code /// /// /// This is also inlined in ItemAdd() /// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set g.LastItemData.DisplayRect. /// /// public static unsafe void SetLastItemData( ImGuiID itemId, ImGuiItemFlags itemFlags, ImGuiItemStatusFlags statusFlags, in floatRect itemRect ) { fixed (floatRect* itemRect_fixed = &itemRect) { PInvoke.SetLastItemData_internal(itemId, itemFlags, statusFlags, itemRect_fixed); } } /// /// /// C++: /// imgui_internal.h:3461 /// , /// imgui.cpp:12021 ///
ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h) ///
///
/// /// /// Basic Helpers for widget code /// /// /// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). /// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. /// Note that only CalcItemWidth() is publicly exposed. /// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) /// /// public static unsafe float2 CalcItemSize(float2 size, float defaultW, float defaultH) => PInvoke.CalcItemSize_internal(size, defaultW, defaultH); /// /// /// C++: /// imgui_internal.h:3462 /// , /// imgui.cpp:4993 ///
float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe float CalcWrapWidthForPos(in float2 pos, float wrapPosX) { fixed (float2* pos_fixed = &pos) { return PInvoke.CalcWrapWidthForPos_internal(pos_fixed, wrapPosX); } } /// /// /// C++: /// imgui_internal.h:3463 /// , /// imgui.cpp:11965 ///
void PushMultiItemsWidths(int components, float width_full) ///
///
/// /// /// Basic Helpers for widget code /// /// public static unsafe void PushMultiItemsWidths(int components, float widthFull) => PInvoke.PushMultiItemsWidths_internal(components, widthFull); /// /// /// C++: /// imgui_internal.h:3464 /// , /// imgui_widgets.cpp:1839 ///
/// void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess, float width_min) ///
///
/// /// /// Basic Helpers for widget code /// /// /// Shrink excess width from a set of item, by removing width from the larger items first. /// Set items Width to -1.0f to disable shrinking this item. /// /// public static unsafe void ShrinkWidths( ImGuiShrinkWidthItemPtr items, int count, float widthExcess, float widthMin ) => PInvoke.ShrinkWidths_internal(items, count, widthExcess, widthMin); /// /// /// C++: /// imgui_internal.h:3467 /// , /// imgui.cpp:3595 ///
const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx) ///
///
/// /// /// Parameter stacks (shared) /// /// public static unsafe ImGuiStyleVarInfoPtr GetStyleVarInfo(ImGuiStyleVar idx) => PInvoke.GetStyleVarInfo_internal(idx); /// /// /// C++: /// imgui_internal.h:3468 /// , /// imgui.cpp:8654 ///
void BeginDisabledOverrideReenable() ///
///
/// /// /// Parameter stacks (shared) /// /// /// Could have been called BeginDisabledDisable() but it didn't want to be award nominated for most awkward function name. /// Ideally we would use a shared e.g. BeginDisabled()->BeginDisabledEx() but earlier needs to be optimal. /// The whole code for this is awkward, will reevaluate if we find a way to implement SetNextItemDisabled(). /// /// public static unsafe void BeginDisabledOverrideReenable() => PInvoke.BeginDisabledOverrideReenable_internal(); /// /// /// C++: /// imgui_internal.h:3469 /// , /// imgui.cpp:8665 ///
void EndDisabledOverrideReenable() ///
///
/// /// /// Parameter stacks (shared) /// /// public static unsafe void EndDisabledOverrideReenable() => PInvoke.EndDisabledOverrideReenable_internal(); /// /// /// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. /// /// /// C++: /// imgui_internal.h:3472 /// , /// imgui.cpp:15598 ///
void LogBegin(ImGuiLogFlags flags, int auto_open_depth) ///
///
/// /// /// Logging/Capture /// /// /// Start logging/capturing text output /// /// public static unsafe void LogBegin(ImGuiLogFlags flags, int autoOpenDepth) => PInvoke.LogBegin_internal(flags, autoOpenDepth); /// /// /// Start logging/capturing to internal buffer /// /// /// C++: /// imgui_internal.h:3473 /// , /// imgui.cpp:15670 ///
void LogToBuffer(int auto_open_depth = -1) ///
///
/// /// /// Logging/Capture /// /// public static unsafe void LogToBuffer(int autoOpenDepth = -1) => PInvoke.LogToBuffer_internal(autoOpenDepth); /// /// /// C++: /// imgui_internal.h:3474 /// , /// imgui.cpp:15539 ///
/// void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL) ///
///
/// /// /// Logging/Capture /// /// /// Internal version that takes a position to decide on newline placement and pad items according to their depth. /// We split text into individual lines to add current tree level padding /// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. /// /// public static unsafe void LogRenderedText(Ptr refPos, ImString text) { fixed (byte* text_fixed = text) { PInvoke.LogRenderedText_internal((float2*)refPos, text_fixed, text_fixed + text.Length); } } /// /// /// C++: /// imgui_internal.h:3475 /// , /// imgui.cpp:15617 ///
void LogSetNextTextDecoration(const char* prefix, const char* suffix) ///
///
/// /// /// Logging/Capture /// /// /// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time /// of the next LogRenderedText) /// /// public static unsafe void LogSetNextTextDecoration(ImString prefix, ImString suffix) { fixed (byte* suffix_fixed = suffix) { fixed (byte* prefix_fixed = prefix) { PInvoke.LogSetNextTextDecoration_internal(prefix_fixed, suffix_fixed); } } } /// /// /// C++: /// imgui_internal.h:3478 /// , /// imgui.cpp:6482 ///
/// bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags) ///
///
/// /// /// Childs /// /// public static unsafe bool BeginChildEx( ImString name, ImGuiID id, in float2 sizeArg, ImGuiChildFlags childFlags, ImGuiWindowFlags windowFlags ) { fixed (float2* sizeArg_fixed = &sizeArg) { fixed (byte* name_fixed = name) { return PInvoke.BeginChildEx_internal(name_fixed, id, sizeArg_fixed, childFlags, windowFlags); } } } /// /// /// C++: /// imgui_internal.h:3481 /// , /// imgui.cpp:12832 ///
bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_window_flags) ///
///
/// /// /// Popups, Modals /// /// /// Attention! BeginPopup() adds default flags when calling BeginPopupEx()! /// /// public static unsafe bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extraWindowFlags) => PInvoke.BeginPopupEx_internal(id, extraWindowFlags); /// /// /// C++: /// imgui_internal.h:3482 /// , /// imgui.cpp:12852 ///
/// bool BeginPopupMenuEx(ImGuiID id, const char* label, ImGuiWindowFlags extra_window_flags) ///
///
/// /// /// Popups, Modals /// /// public static unsafe bool BeginPopupMenuEx(ImGuiID id, ImString label, ImGuiWindowFlags extraWindowFlags) { fixed (byte* label_fixed = label) { return PInvoke.BeginPopupMenuEx_internal(id, label_fixed, extraWindowFlags); } } /// /// /// C++: /// imgui_internal.h:3483 /// , /// imgui.cpp:12658 ///
void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None) ///
///
/// /// /// Popups, Modals /// /// /// Mark popup as open (toggle toward open state). /// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. /// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). /// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) /// /// public static unsafe void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popupFlags = default) => PInvoke.OpenPopupEx_internal(id, popupFlags); /// /// /// C++: /// imgui_internal.h:3484 /// , /// imgui.cpp:12775 ///
void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) ///
///
/// /// /// Popups, Modals /// /// public static unsafe void ClosePopupToLevel(int remaining, bool restoreFocusToWindowUnderPopup) => PInvoke.ClosePopupToLevel_internal(remaining, restoreFocusToWindowUnderPopup); /// /// /// C++: /// imgui_internal.h:3485 /// , /// imgui.cpp:12713 ///
/// void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) ///
///
/// /// /// Popups, Modals /// /// /// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. /// This function closes any popups that are over 'ref_window'. /// /// public static unsafe void ClosePopupsOverWindow( ImGuiWindowPtr refWindow, bool restoreFocusToWindowUnderPopup ) => PInvoke.ClosePopupsOverWindow_internal(refWindow, restoreFocusToWindowUnderPopup); /// /// /// C++: /// imgui_internal.h:3486 /// , /// imgui.cpp:12760 ///
void ClosePopupsExceptModals() ///
///
/// /// /// Popups, Modals /// /// public static unsafe void ClosePopupsExceptModals() => PInvoke.ClosePopupsExceptModals_internal(); /// /// /// C++: /// imgui_internal.h:3487 /// , /// imgui.cpp:12542 ///
bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) ///
///
/// /// /// Popups, Modals /// /// /// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel /// /// public static unsafe bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popupFlags) => PInvoke.IsPopupOpen_internal(id, popupFlags); /// /// /// C++: /// imgui_internal.h:3488 /// , /// imgui.cpp:13097 ///
ImRect GetPopupAllowedExtentRect(ImGuiWindow* window) ///
///
/// /// /// Popups, Modals /// /// /// Note that this is used for popups, which can overlap the non work-area of individual viewports. /// /// public static unsafe floatRect GetPopupAllowedExtentRect(ImGuiWindowPtr window) => PInvoke.GetPopupAllowedExtentRect_internal(window); /// /// /// C++: /// imgui_internal.h:3489 /// , /// imgui.cpp:12583 ///
ImGuiWindow* GetTopMostPopupModal() ///
///
/// /// /// Popups, Modals /// /// /// Also see FindBlockingModal(NULL) /// /// public static unsafe ImGuiWindowPtr GetTopMostPopupModal() => PInvoke.GetTopMostPopupModal_internal(); /// /// /// C++: /// imgui_internal.h:3490 /// , /// imgui.cpp:12594 ///
ImGuiWindow* GetTopMostAndVisiblePopupModal() ///
///
/// /// /// Popups, Modals /// /// /// See Demo->Stacked Modal to confirm what this is for. /// /// public static unsafe ImGuiWindowPtr GetTopMostAndVisiblePopupModal() => PInvoke.GetTopMostAndVisiblePopupModal_internal(); /// /// /// C++: /// imgui_internal.h:3491 /// , /// imgui.cpp:12618 ///
ImGuiWindow* FindBlockingModal(ImGuiWindow* window) ///
///
/// /// /// Popups, Modals /// /// /// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing) /// should be positioned behind that modal window, unless the window was created inside the modal begin-stack. /// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent. /// - WindowA // FindBlockingModal() returns Modal1 /// - WindowB // .. returns Modal1 /// - Modal1 // .. returns Modal2 /// - WindowC // .. returns Modal2 /// - WindowD // .. returns Modal2 /// - Modal2 // .. returns Modal2 /// - WindowE // .. returns NULL /// Notes: /// - FindBlockingModal(NULL) == NULL is generally equivalent to GetTopMostPopupModal() == NULL. /// Only difference is here we check for ->Active/WasActive but it may be unnecessary. /// /// public static unsafe ImGuiWindowPtr FindBlockingModal(ImGuiWindowPtr window) => PInvoke.FindBlockingModal_internal(window); /// /// /// C++: /// imgui_internal.h:3492 /// , /// imgui.cpp:13118 ///
ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window) ///
///
/// /// /// Popups, Modals /// /// public static unsafe float2 FindBestWindowPosForPopup(ImGuiWindowPtr window) => PInvoke.FindBestWindowPosForPopup_internal(window); /// /// /// C++: /// imgui_internal.h:3493 /// , /// imgui.cpp:13022 ///
/// ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) ///
///
/// /// /// Popups, Modals /// /// /// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) /// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. /// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor /// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. /// this allows us to have tooltips/popups displayed out of the parent viewport.) /// /// public static unsafe float2 FindBestWindowPosForPopupEx( in float2 refPos, in float2 size, Ptr lastDir, in floatRect rOuter, in floatRect rAvoid, ImGuiPopupPositionPolicy policy ) { fixed (floatRect* rAvoid_fixed = &rAvoid) { fixed (floatRect* rOuter_fixed = &rOuter) { fixed (float2* size_fixed = &size) { fixed (float2* refPos_fixed = &refPos) { return PInvoke.FindBestWindowPosForPopupEx_internal( refPos_fixed, size_fixed, (ImGuiDir*)lastDir, rOuter_fixed, rAvoid_fixed, policy ); } } } } } /// /// /// C++: /// imgui_internal.h:3496 /// , /// imgui.cpp:12450 ///
/// bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags) ///
///
/// /// /// Tooltips /// /// public static unsafe bool BeginTooltipEx( ImGuiTooltipFlags tooltipFlags, ImGuiWindowFlags extraWindowFlags ) => PInvoke.BeginTooltipEx_internal(tooltipFlags, extraWindowFlags); /// /// /// C++: /// imgui_internal.h:3497 /// , /// imgui.cpp:15159 ///
bool BeginTooltipHidden() ///
///
/// /// /// Tooltips /// /// public static unsafe bool BeginTooltipHidden() => PInvoke.BeginTooltipHidden_internal(); /// /// /// C++: /// imgui_internal.h:3500 /// , /// imgui_widgets.cpp:8912 ///
/// bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags) ///
///
/// /// /// Menus /// /// /// Important: calling order matters! /// FIXME: Somehow overlapping with docking tech. /// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts) /// /// public static unsafe bool BeginViewportSideBar( ImString name, ImGuiViewportPtr viewport, ImGuiDir dir, float size, ImGuiWindowFlags windowFlags ) { fixed (byte* name_fixed = name) { return PInvoke.BeginViewportSideBar_internal(name_fixed, viewport, dir, size, windowFlags); } } /// /// /// C++: /// imgui_internal.h:3501 /// , /// imgui_widgets.cpp:9020 ///
bool BeginMenuEx(const char* label, const char* icon, bool enabled = true) ///
///
/// /// /// Menus /// /// public static unsafe bool BeginMenuEx(ImString label, ImString icon, bool enabled = true) { fixed (byte* icon_fixed = icon) { fixed (byte* label_fixed = label) { return PInvoke.BeginMenuEx_internal(label_fixed, icon_fixed, enabled); } } } /// /// /// C++: /// imgui_internal.h:3502 /// , /// imgui_widgets.cpp:9255 ///
/// bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true) ///
///
/// /// /// Menus /// /// public static unsafe bool MenuItemEx( ImString label, ImString icon, ImString shortcut = default, bool selected = false, bool enabled = true ) { fixed (byte* shortcut_fixed = shortcut) { fixed (byte* icon_fixed = icon) { fixed (byte* label_fixed = label) { return PInvoke.MenuItemEx_internal( label_fixed, icon_fixed, shortcut_fixed, selected, enabled ); } } } } /// /// /// C++: /// imgui_internal.h:3505 /// , /// imgui_widgets.cpp:1982 ///
bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags) ///
///
/// /// /// Combos /// /// public static unsafe bool BeginComboPopup(ImGuiID popupId, in floatRect bb, ImGuiComboFlags flags) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.BeginComboPopup_internal(popupId, bb_fixed, flags); } } /// /// /// C++: /// imgui_internal.h:3506 /// , /// imgui_widgets.cpp:2056 ///
bool BeginComboPreview() ///
///
/// /// /// Combos /// /// /// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements /// (Experimental, see GitHub issues: #1658, #4168) /// /// public static unsafe bool BeginComboPreview() => PInvoke.BeginComboPreview_internal(); /// /// /// C++: /// imgui_internal.h:3507 /// , /// imgui_widgets.cpp:2083 ///
void EndComboPreview() ///
///
/// /// /// Combos /// /// public static unsafe void EndComboPreview() => PInvoke.EndComboPreview_internal(); /// /// /// C++: /// imgui_internal.h:3510 /// , /// imgui.cpp:14019 ///
void NavInitWindow(ImGuiWindow* window, bool force_reinit) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// This needs to be called before we submit any widget (aka in or before Begin) /// /// public static unsafe void NavInitWindow(ImGuiWindowPtr window, bool forceReinit) => PInvoke.NavInitWindow_internal(window, forceReinit); /// /// /// C++: /// imgui_internal.h:3511 /// , /// imgui.cpp:14298 ///
void NavInitRequestApplyResult() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void NavInitRequestApplyResult() => PInvoke.NavInitRequestApplyResult_internal(); /// /// /// C++: /// imgui_internal.h:3512 /// , /// imgui.cpp:13878 ///
bool NavMoveRequestButNoResultYet() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe bool NavMoveRequestButNoResultYet() => PInvoke.NavMoveRequestButNoResultYet_internal(); /// /// /// C++: /// imgui_internal.h:3513 /// , /// imgui.cpp:13885 ///
/// void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// FIXME: ScoringRect is not set /// /// public static unsafe void NavMoveRequestSubmit( ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags ) => PInvoke.NavMoveRequestSubmit_internal(moveDir, clipDir, moveFlags, scrollFlags); /// /// /// C++: /// imgui_internal.h:3514 /// , /// imgui.cpp:13939 ///
/// void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// Forward will reuse the move request again on the next frame (generally with modifications done to /// it) /// /// public static unsafe void NavMoveRequestForward( ImGuiDir moveDir, ImGuiDir clipDir, ImGuiNavMoveFlags moveFlags, ImGuiScrollFlags scrollFlags ) => PInvoke.NavMoveRequestForward_internal(moveDir, clipDir, moveFlags, scrollFlags); /// /// /// C++: /// imgui_internal.h:3515 /// , /// imgui.cpp:13910 ///
void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void NavMoveRequestResolveWithLastItem(ImGuiNavItemDataPtr result) => PInvoke.NavMoveRequestResolveWithLastItem_internal(result); /// /// /// C++: /// imgui_internal.h:3516 /// , /// imgui.cpp:13919 ///
/// void NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, const ImGuiTreeNodeStackData* tree_node_data) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// Called by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsToParent /// /// public static unsafe void NavMoveRequestResolveWithPastTreeNode( ImGuiNavItemDataPtr result, ImGuiTreeNodeStackDataPtr treeNodeData ) => PInvoke.NavMoveRequestResolveWithPastTreeNode_internal(result, treeNodeData); /// /// /// C++: /// imgui_internal.h:3517 /// , /// imgui.cpp:13931 ///
void NavMoveRequestCancel() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void NavMoveRequestCancel() => PInvoke.NavMoveRequestCancel_internal(); /// /// /// C++: /// imgui_internal.h:3518 /// , /// imgui.cpp:14498 ///
void NavMoveRequestApplyResult() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// Apply result from previous frame navigation directional move request. Always called from NavUpdate() /// /// public static unsafe void NavMoveRequestApplyResult() => PInvoke.NavMoveRequestApplyResult_internal(); /// /// /// C++: /// imgui_internal.h:3519 /// , /// imgui.cpp:13953 ///
void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire /// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. /// /// public static unsafe void NavMoveRequestTryWrapping(ImGuiWindowPtr window, ImGuiNavMoveFlags moveFlags) => PInvoke.NavMoveRequestTryWrapping_internal(window, moveFlags); /// /// /// C++: /// imgui_internal.h:3520 /// , /// imgui.cpp:13494 ///
void NavHighlightActivated(ImGuiID id) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void NavHighlightActivated(ImGuiID id) => PInvoke.NavHighlightActivated_internal(id); /// /// /// C++: /// imgui_internal.h:3521 /// , /// imgui.cpp:13501 ///
void NavClearPreferredPosForAxis(ImGuiAxis axis) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void NavClearPreferredPosForAxis(ImGuiAxis axis) => PInvoke.NavClearPreferredPosForAxis_internal(axis); /// /// /// C++: /// imgui_internal.h:3522 /// , /// imgui.cpp:13473 ///
void SetNavCursorVisibleAfterMove() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// (was called NavRestoreHighlightAfterMove() before 1.91.4) /// /// public static unsafe void SetNavCursorVisibleAfterMove() => PInvoke.SetNavCursorVisibleAfterMove_internal(); /// /// /// C++: /// imgui_internal.h:3523 /// , /// imgui.cpp:13727 ///
void NavUpdateCurrentWindowIsScrollPushableX() ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// /// True when current work location may be scrolled horizontally when moving left / right. /// This is generally always true UNLESS within a column. We don't have a vertical equivalent. /// /// public static unsafe void NavUpdateCurrentWindowIsScrollPushableX() => PInvoke.NavUpdateCurrentWindowIsScrollPushableX_internal(); /// /// /// C++: /// imgui_internal.h:3524 /// , /// imgui.cpp:13481 ///
void SetNavWindow(ImGuiWindow* window) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void SetNavWindow(ImGuiWindowPtr window) => PInvoke.SetNavWindow_internal(window); /// /// /// C++: /// imgui_internal.h:3525 /// , /// imgui.cpp:13507 ///
/// void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void SetNavID( ImGuiID id, ImGuiNavLayer navLayer, ImGuiID focusScopeId, in floatRect rectRel ) { fixed (floatRect* rectRel_fixed = &rectRel) { PInvoke.SetNavID_internal(id, navLayer, focusScopeId, rectRel_fixed); } } /// /// /// C++: /// imgui_internal.h:3526 /// , /// imgui.cpp:9143 ///
void SetNavFocusScope(ImGuiID focus_scope_id) ///
///
/// /// /// Keyboard/Gamepad Navigation /// /// public static unsafe void SetNavFocusScope(ImGuiID focusScopeId) => PInvoke.SetNavFocusScope_internal(focusScopeId); /// /// /// Focus last item (no selection/activation). /// /// /// C++: /// imgui_internal.h:3531 /// , /// imgui.cpp:9171 ///
void FocusItem() ///
///
/// /// /// Focus/Activation /// This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are /// much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones. /// /// /// Focus = move navigation cursor, set scrolling, set focus window. /// /// public static unsafe void FocusItem() => PInvoke.FocusItem_internal(); /// /// /// Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the /// next frame when the item is encountered again. Was called 'ActivateItem()' before 1.89.7. /// /// /// C++: /// imgui_internal.h:3532 /// , /// imgui.cpp:9189 ///
void ActivateItemByID(ImGuiID id) ///
///
/// /// /// Focus/Activation /// This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are /// much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones. /// /// public static unsafe void ActivateItemByID(ImGuiID id) => PInvoke.ActivateItemByID_internal(id); /// /// /// C++: /// imgui_internal.h:3536 ///
inline bool IsNamedKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsNamedKey(ImGuiKey key) => PInvoke.IsNamedKey_internal(key); /// /// /// C++: /// imgui_internal.h:3537 ///
inline bool IsNamedKeyOrMod(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsNamedKeyOrMod(ImGuiKey key) => PInvoke.IsNamedKeyOrMod_internal(key); /// /// /// C++: /// imgui_internal.h:3538 ///
inline bool IsLegacyKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsLegacyKey(ImGuiKey key) => PInvoke.IsLegacyKey_internal(key); /// /// /// C++: /// imgui_internal.h:3539 ///
inline bool IsKeyboardKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsKeyboardKey(ImGuiKey key) => PInvoke.IsKeyboardKey_internal(key); /// /// /// C++: /// imgui_internal.h:3540 ///
inline bool IsGamepadKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsGamepadKey(ImGuiKey key) => PInvoke.IsGamepadKey_internal(key); /// /// /// C++: /// imgui_internal.h:3541 ///
inline bool IsMouseKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsMouseKey(ImGuiKey key) => PInvoke.IsMouseKey_internal(key); /// /// /// C++: /// imgui_internal.h:3542 ///
inline bool IsAliasKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsAliasKey(ImGuiKey key) => PInvoke.IsAliasKey_internal(key); /// /// /// C++: /// imgui_internal.h:3543 ///
inline bool IsLRModKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe bool IsLRModKey(ImGuiKey key) => PInvoke.IsLRModKey_internal(key); /// /// /// C++: /// imgui_internal.h:3544 /// , /// imgui.cpp:9781 ///
ImGuiKeyChord FixupKeyChord(ImGuiKeyChord key_chord) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe ImGuiKeyChord FixupKeyChord(ImGuiKeyChord keyChord) => PInvoke.FixupKeyChord_internal(keyChord); /// /// /// C++: /// imgui_internal.h:3545 ///
inline ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) ///
///
/// /// /// Inputs /// FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. /// /// public static unsafe ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key) => PInvoke.ConvertSingleModFlagToKey_internal(key); /// /// /// C++: /// imgui_internal.h:3554 /// , /// imgui.cpp:9790 ///
ImGuiKeyData* GetKeyData(ImGuiContext* ctx, ImGuiKey key) ///
///
public static unsafe ImGuiKeyDataPtr GetKeyData(ImGuiContextPtr ctx, ImGuiKey key) => PInvoke.GetKeyData_internal_0(ctx, key); /// /// /// C++: /// imgui_internal.h:3555 ///
inline ImGuiKeyData* GetKeyData(ImGuiKey key) ///
///
public static unsafe ImGuiKeyDataPtr GetKeyData(ImGuiKey key) => PInvoke.GetKeyData_internal_1(key); /// /// /// C++: /// imgui_internal.h:3556 /// , /// imgui.cpp:9844 ///
const char* GetKeyChordName(ImGuiKeyChord key_chord) ///
///
/// /// /// Return untranslated names: on macOS, Cmd key will show as Ctrl, Ctrl key will show as super. /// Lifetime of return value: valid until next call to same function. /// /// public static unsafe Ptr GetKeyChordName(ImGuiKeyChord keyChord) => PInvoke.GetKeyChordName_internal(keyChord); /// /// /// C++: /// imgui_internal.h:3557 ///
inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) ///
///
public static unsafe ImGuiKey MouseButtonToKey(ImGuiMouseButton button) => PInvoke.MouseButtonToKey_internal(button); /// /// /// C++: /// imgui_internal.h:3558 /// , /// imgui.cpp:10355 ///
bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f) ///
///
/// /// /// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. /// [Internal] This doesn't test if the button is pressed /// /// public static unsafe bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lockThreshold = -1f) => PInvoke.IsMouseDragPastThreshold_internal(button, lockThreshold); /// /// /// C++: /// imgui_internal.h:3559 /// , /// imgui.cpp:9906 ///
/// ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) ///
///
/// /// /// Return 2D vector representing the combination of four cardinal direction, with analog value support /// (for e.g. ImGuiKey_GamepadLStick* values). /// /// public static unsafe float2 GetKeyMagnitude2d( ImGuiKey keyLeft, ImGuiKey keyRight, ImGuiKey keyUp, ImGuiKey keyDown ) => PInvoke.GetKeyMagnitude2d_internal(keyLeft, keyRight, keyUp, keyDown); /// /// /// C++: /// imgui_internal.h:3560 /// , /// imgui.cpp:14102 ///
float GetNavTweakPressedAmount(ImGuiAxis axis) ///
///
public static unsafe float GetNavTweakPressedAmount(ImGuiAxis axis) => PInvoke.GetNavTweakPressedAmount_internal(axis); /// /// /// C++: /// imgui_internal.h:3561 /// , /// imgui.cpp:9868 ///
int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) ///
///
/// /// /// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) /// t1 = current time (e.g.: g.Time) /// An event is triggered at: /// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N /// /// public static unsafe int CalcTypematicRepeatAmount( float t0, float t1, float repeatDelay, float repeatRate ) => PInvoke.CalcTypematicRepeatAmount_internal(t0, t1, repeatDelay, repeatRate); /// /// /// C++: /// imgui_internal.h:3562 /// , /// imgui.cpp:9882 ///
/// void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) ///
///
public static unsafe void GetTypematicRepeatRate( ImGuiInputFlags flags, Ptr repeatDelay, Ptr repeatRate ) => PInvoke.GetTypematicRepeatRate_internal(flags, (float*)repeatDelay, (float*)repeatRate); /// /// /// C++: /// imgui_internal.h:3563 /// , /// imgui.cpp:10381 ///
void TeleportMousePos(const ImVec2& pos) ///
///
/// /// /// This is called TeleportMousePos() and not SetMousePos() to emphasis that setting MousePosPrev will effectively clear mouse delta as well. /// It is expected you only call this if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) is set and supported by backend. /// /// public static unsafe void TeleportMousePos(in float2 pos) { fixed (float2* pos_fixed = &pos) { PInvoke.TeleportMousePos_internal(pos_fixed); } } /// /// /// C++: /// imgui_internal.h:3564 /// , /// imgui.cpp:6436 ///
void SetActiveIdUsingAllKeyboardKeys() ///
///
/// /// /// This is a shortcut for not taking ownership of 100+ keys, frequently used by drag operations. /// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version if needed? /// /// public static unsafe void SetActiveIdUsingAllKeyboardKeys() => PInvoke.SetActiveIdUsingAllKeyboardKeys_internal(); /// /// /// C++: /// imgui_internal.h:3565 ///
inline bool IsActiveIdUsingNavDir(ImGuiDir dir) ///
///
public static unsafe bool IsActiveIdUsingNavDir(ImGuiDir dir) => PInvoke.IsActiveIdUsingNavDir_internal(dir); /// /// /// C++: /// imgui_internal.h:3578 /// , /// imgui.cpp:10961 ///
ImGuiID GetKeyOwner(ImGuiKey key) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// public static unsafe ImGuiID GetKeyOwner(ImGuiKey key) => PInvoke.GetKeyOwner_internal(key); /// /// /// C++: /// imgui_internal.h:3579 /// , /// imgui.cpp:11014 ///
void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// /// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. /// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. /// - SetKeyOwner(..., None) : clears owner /// - SetKeyOwner(..., Any, !Lock) : illegal (assert) /// - SetKeyOwner(..., Any or None, Lock) : set lock /// /// public static unsafe void SetKeyOwner(ImGuiKey key, ImGuiID ownerId, ImGuiInputFlags flags = default) => PInvoke.SetKeyOwner_internal(key, ownerId, flags); /// /// /// C++: /// imgui_internal.h:3580 /// , /// imgui.cpp:11031 ///
/// void SetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags = 0) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// /// Rarely used helper /// /// public static unsafe void SetKeyOwnersForKeyChord( ImGuiKeyChord key, ImGuiID ownerId, ImGuiInputFlags flags = default ) => PInvoke.SetKeyOwnersForKeyChord_internal(key, ownerId, flags); /// /// /// Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || /// IsItemActive()) { SetKeyOwner(key, GetItemID());'. /// /// /// C++: /// imgui_internal.h:3581 /// , /// imgui.cpp:11046 ///
void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// /// This is more or less equivalent to: /// if (IsItemHovered() || IsItemActive()) /// SetKeyOwner(key, GetItemID()); /// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. /// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. /// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. /// /// public static unsafe void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) => PInvoke.SetItemKeyOwner_internal(key, flags); /// /// /// Test that key is either not owned, either owned by 'owner_id' /// /// /// C++: /// imgui_internal.h:3582 /// , /// imgui.cpp:10981 ///
bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// /// TestKeyOwner(..., ID) : (owner == None || owner == ID) /// TestKeyOwner(..., None) : (owner == None) /// TestKeyOwner(..., Any) : no owner test /// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. /// /// public static unsafe bool TestKeyOwner(ImGuiKey key, ImGuiID ownerId) => PInvoke.TestKeyOwner_internal(key, ownerId); /// /// /// C++: /// imgui_internal.h:3583 ///
inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key) ///
///
/// /// /// [EXPERIMENTAL] Low-Level: Key/Input Ownership /// - The idea is that instead of "eating" a given input, we can link to an owner id. /// - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). /// - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID. /// - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). /// - Input ownership is automatically released on the frame after a key is released. Therefore: /// - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). /// - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). /// - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. /// - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. /// Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. /// /// public static unsafe ImGuiKeyOwnerDataPtr GetKeyOwnerData(ImGuiContextPtr ctx, ImGuiKey key) => PInvoke.GetKeyOwnerData_internal(ctx, key); /// /// /// C++: /// imgui_internal.h:3591 /// , /// imgui.cpp:10176 ///
bool IsKeyDown(ImGuiKey key, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsKeyDown(ImGuiKey key, ImGuiID ownerId) => PInvoke.IsKeyDown_internal(key, ownerId); /// /// /// Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so /// would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. /// /// /// C++: /// imgui_internal.h:3592 /// , /// imgui.cpp:10192 ///
bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// /// Important: unlike legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this /// requires EXPLICIT repeat. /// /// public static unsafe bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID ownerId = default) => PInvoke.IsKeyPressed_internal(key, flags, ownerId); /// /// /// C++: /// imgui_internal.h:3593 /// , /// imgui.cpp:10236 ///
bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsKeyReleased(ImGuiKey key, ImGuiID ownerId) => PInvoke.IsKeyReleased_internal(key, ownerId); /// /// /// C++: /// imgui_internal.h:3594 /// , /// imgui.cpp:11073 ///
/// bool IsKeyChordPressed(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id = 0) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// /// This is equivalent to comparing KeyMods + doing a IsKeyPressed() /// /// public static unsafe bool IsKeyChordPressed( ImGuiKeyChord keyChord, ImGuiInputFlags flags, ImGuiID ownerId = default ) => PInvoke.IsKeyChordPressed_internal(keyChord, flags, ownerId); /// /// /// C++: /// imgui_internal.h:3595 /// , /// imgui.cpp:10253 ///
bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsMouseDown(ImGuiMouseButton button, ImGuiID ownerId) => PInvoke.IsMouseDown_internal(button, ownerId); /// /// /// C++: /// imgui_internal.h:3596 /// , /// imgui.cpp:10265 ///
/// bool IsMouseClicked(ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID owner_id = 0) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsMouseClicked( ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID ownerId = default ) => PInvoke.IsMouseClicked_internal(button, flags, ownerId); /// /// /// C++: /// imgui_internal.h:3597 /// , /// imgui.cpp:10294 ///
bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsMouseReleased(ImGuiMouseButton button, ImGuiID ownerId) => PInvoke.IsMouseReleased_internal(button, ownerId); /// /// /// C++: /// imgui_internal.h:3598 /// , /// imgui.cpp:10319 ///
bool IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID owner_id) ///
///
/// /// /// [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership /// - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. /// - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) /// - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. /// Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. /// - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. /// /// public static unsafe bool IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID ownerId) => PInvoke.IsMouseDoubleClicked_internal(button, ownerId); /// /// /// C++: /// imgui_internal.h:3614 /// , /// imgui.cpp:11128 ///
bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id) ///
///
/// /// /// Shortcut Testing & Routing /// - Set Shortcut() and SetNextItemShortcut() in imgui.h /// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(), /// allowing the system to decide where to route the input among other route-aware calls. /// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check) /// - When using one of the routing option: /// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.) /// - Routes are requested given a chord (key + modifiers) and a routing policy. /// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. /// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window). /// - Multiple read sites may use the same owner id can all access the granted route. /// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location. /// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute() /// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused. /// /// public static unsafe bool Shortcut(ImGuiKeyChord keyChord, ImGuiInputFlags flags, ImGuiID ownerId) => PInvoke.Shortcut_internal(keyChord, flags, ownerId); /// /// /// owner_id needs to be explicit and cannot be 0 /// /// /// C++: /// imgui_internal.h:3615 /// , /// imgui.cpp:10076 ///
/// bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id) ///
///
/// /// /// Shortcut Testing & Routing /// - Set Shortcut() and SetNextItemShortcut() in imgui.h /// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(), /// allowing the system to decide where to route the input among other route-aware calls. /// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check) /// - When using one of the routing option: /// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.) /// - Routes are requested given a chord (key + modifiers) and a routing policy. /// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. /// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window). /// - Multiple read sites may use the same owner id can all access the granted route. /// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location. /// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute() /// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused. /// /// /// Request a desired route for an input chord (key + mods). /// Return true if the route is available this frame. /// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. /// (Conceptually this does a "Submit for next frame" + "Test for current frame". /// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) /// /// public static unsafe bool SetShortcutRouting( ImGuiKeyChord keyChord, ImGuiInputFlags flags, ImGuiID ownerId ) => PInvoke.SetShortcutRouting_internal(keyChord, flags, ownerId); /// /// /// C++: /// imgui_internal.h:3616 /// , /// imgui.cpp:10161 ///
bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) ///
///
/// /// /// Shortcut Testing & Routing /// - Set Shortcut() and SetNextItemShortcut() in imgui.h /// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(), /// allowing the system to decide where to route the input among other route-aware calls. /// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check) /// - When using one of the routing option: /// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.) /// - Routes are requested given a chord (key + modifiers) and a routing policy. /// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. /// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window). /// - Multiple read sites may use the same owner id can all access the granted route. /// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location. /// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute() /// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused. /// /// /// Currently unused by core (but used by tests) /// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. /// /// public static unsafe bool TestShortcutRouting(ImGuiKeyChord keyChord, ImGuiID ownerId) => PInvoke.TestShortcutRouting_internal(keyChord, ownerId); /// /// /// C++: /// imgui_internal.h:3617 /// , /// imgui.cpp:9964 ///
ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord) ///
///
/// /// /// Shortcut Testing & Routing /// - Set Shortcut() and SetNextItemShortcut() in imgui.h /// - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(), /// allowing the system to decide where to route the input among other route-aware calls. /// (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check) /// - When using one of the routing option: /// - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.) /// - Routes are requested given a chord (key + modifiers) and a routing policy. /// - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. /// - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window). /// - Multiple read sites may use the same owner id can all access the granted route. /// - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location. /// - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute() /// e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused. /// /// public static unsafe ImGuiKeyRoutingDataPtr GetShortcutRoutingData(ImGuiKeyChord keyChord) => PInvoke.GetShortcutRoutingData_internal(keyChord); /// /// /// C++: /// imgui_internal.h:3621 /// , /// imgui.cpp:17386 ///
void DockContextInitialize(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextInitialize(ImGuiContextPtr ctx) => PInvoke.DockContextInitialize_internal(ctx); /// /// /// C++: /// imgui_internal.h:3622 /// , /// imgui.cpp:17405 ///
void DockContextShutdown(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextShutdown(ImGuiContextPtr ctx) => PInvoke.DockContextShutdown_internal(ctx); /// /// /// Use root_id==0 to clear all /// /// /// C++: /// imgui_internal.h:3623 /// , /// imgui.cpp:17413 ///
void DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextClearNodes( ImGuiContextPtr ctx, ImGuiID rootId, bool clearSettingsRefs ) => PInvoke.DockContextClearNodes_internal(ctx, rootId, clearSettingsRefs); /// /// /// C++: /// imgui_internal.h:3624 /// , /// imgui.cpp:17423 ///
void DockContextRebuildNodes(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// [DEBUG] This function also acts as a defacto test to make sure we can rebuild from scratch without a glitch /// (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!) /// /// public static unsafe void DockContextRebuildNodes(ImGuiContextPtr ctx) => PInvoke.DockContextRebuildNodes_internal(ctx); /// /// /// C++: /// imgui_internal.h:3625 /// , /// imgui.cpp:17436 ///
void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// Docking context update function, called by NewFrame() /// /// public static unsafe void DockContextNewFrameUpdateUndocking(ImGuiContextPtr ctx) => PInvoke.DockContextNewFrameUpdateUndocking_internal(ctx); /// /// /// C++: /// imgui_internal.h:3626 /// , /// imgui.cpp:17479 ///
void DockContextNewFrameUpdateDocking(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// Docking context update function, called by NewFrame() /// /// public static unsafe void DockContextNewFrameUpdateDocking(ImGuiContextPtr ctx) => PInvoke.DockContextNewFrameUpdateDocking_internal(ctx); /// /// /// C++: /// imgui_internal.h:3627 /// , /// imgui.cpp:17512 ///
void DockContextEndFrame(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextEndFrame(ImGuiContextPtr ctx) => PInvoke.DockContextEndFrame_internal(ctx); /// /// /// C++: /// imgui_internal.h:3628 /// , /// imgui.cpp:17533 ///
ImGuiID DockContextGenNodeID(ImGuiContext* ctx) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe ImGuiID DockContextGenNodeID(ImGuiContextPtr ctx) => PInvoke.DockContextGenNodeID_internal(ctx); /// /// /// C++: /// imgui_internal.h:3629 /// , /// imgui.cpp:17732 ///
/// void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextQueueDock( ImGuiContextPtr ctx, ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payload, ImGuiDir splitDir, float splitRatio, bool splitOuter ) => PInvoke.DockContextQueueDock_internal( ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ); /// /// /// C++: /// imgui_internal.h:3630 /// , /// imgui.cpp:17746 ///
void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextQueueUndockWindow(ImGuiContextPtr ctx, ImGuiWindowPtr window) => PInvoke.DockContextQueueUndockWindow_internal(ctx, window); /// /// /// C++: /// imgui_internal.h:3631 /// , /// imgui.cpp:17754 ///
void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextQueueUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) => PInvoke.DockContextQueueUndockNode_internal(ctx, node); /// /// /// C++: /// imgui_internal.h:3632 /// , /// imgui.cpp:17931 ///
/// void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextProcessUndockWindow( ImGuiContextPtr ctx, ImGuiWindowPtr window, bool clearPersistentDockingRef = true ) => PInvoke.DockContextProcessUndockWindow_internal(ctx, window, clearPersistentDockingRef); /// /// /// C++: /// imgui_internal.h:3633 /// , /// imgui.cpp:17947 ///
void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockContextProcessUndockNode(ImGuiContextPtr ctx, ImGuiDockNodePtr node) => PInvoke.DockContextProcessUndockNode_internal(ctx, node); /// /// /// C++: /// imgui_internal.h:3634 /// , /// imgui.cpp:17989 ///
/// bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// This is mostly used for automation. /// /// public static unsafe bool DockContextCalcDropPosForDocking( ImGuiWindowPtr target, ImGuiDockNodePtr targetNode, ImGuiWindowPtr payloadWindow, ImGuiDockNodePtr payloadNode, ImGuiDir splitDir, bool splitOuter, out float2 outPos ) { fixed (float2* outPos_fixed = &outPos) { return PInvoke.DockContextCalcDropPosForDocking_internal( target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter, outPos_fixed ); } } /// /// /// C++: /// imgui_internal.h:3635 /// , /// imgui.cpp:17528 ///
ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe ImGuiDockNodePtr DockContextFindNodeByID(ImGuiContextPtr ctx, ImGuiID id) => PInvoke.DockContextFindNodeByID_internal(ctx, id); /// /// /// C++: /// imgui_internal.h:3636 /// , /// imgui.cpp:18823 ///
/// void DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// Default handler for g.DockNodeWindowMenuHandler(): display the list of windows for a given dock-node. /// This is exceptionally stored in a function pointer to also user applications to tweak this menu (undocumented) /// Custom overrides may want to decorate, group, sort entries. /// Please note those are internal structures: if you copy this expect occasional breakage. /// (if you don't need to modify the "Tabs.Size == 1" behavior/path it is recommend you call this function in your handler) /// /// public static unsafe void DockNodeWindowMenuHandler_Default( ImGuiContextPtr ctx, ImGuiDockNodePtr node, ImGuiTabBarPtr tabBar ) => PInvoke.DockNodeWindowMenuHandler_Default_internal(ctx, node, tabBar); /// /// /// C++: /// imgui_internal.h:3637 /// , /// imgui.cpp:18865 ///
bool DockNodeBeginAmendTabBar(ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// User helper to append/amend into a dock node tab bar. Most commonly used to add e.g. a "+" button. /// /// public static unsafe bool DockNodeBeginAmendTabBar(ImGuiDockNodePtr node) => PInvoke.DockNodeBeginAmendTabBar_internal(node); /// /// /// C++: /// imgui_internal.h:3638 /// , /// imgui.cpp:18881 ///
void DockNodeEndAmendTabBar() ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void DockNodeEndAmendTabBar() => PInvoke.DockNodeEndAmendTabBar_internal(); /// /// /// C++: /// imgui_internal.h:3639 ///
inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe ImGuiDockNodePtr DockNodeGetRootNode(ImGuiDockNodePtr node) => PInvoke.DockNodeGetRootNode_internal(node); /// /// /// C++: /// imgui_internal.h:3640 ///
inline bool DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe bool DockNodeIsInHierarchyOf(ImGuiDockNodePtr node, ImGuiDockNodePtr parent) => PInvoke.DockNodeIsInHierarchyOf_internal(node, parent); /// /// /// C++: /// imgui_internal.h:3641 ///
inline int DockNodeGetDepth(const ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe int DockNodeGetDepth(ImGuiDockNodePtr node) => PInvoke.DockNodeGetDepth_internal(node); /// /// /// C++: /// imgui_internal.h:3642 ///
inline ImGuiID DockNodeGetWindowMenuButtonId(const ImGuiDockNode* node) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe ImGuiID DockNodeGetWindowMenuButtonId(ImGuiDockNodePtr node) => PInvoke.DockNodeGetWindowMenuButtonId_internal(node); /// /// /// C++: /// imgui_internal.h:3643 ///
inline ImGuiDockNode* GetWindowDockNode() ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe ImGuiDockNodePtr GetWindowDockNode() => PInvoke.GetWindowDockNode_internal(); /// /// /// C++: /// imgui_internal.h:3644 /// , /// imgui.cpp:20587 ///
bool GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe bool GetWindowAlwaysWantOwnTabBar(ImGuiWindowPtr window) => PInvoke.GetWindowAlwaysWantOwnTabBar_internal(window); /// /// /// C++: /// imgui_internal.h:3645 /// , /// imgui.cpp:20647 ///
void BeginDocked(ImGuiWindow* window, bool* p_open) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void BeginDocked(ImGuiWindowPtr window, ref bool pOpen) { fixed (bool* pOpen_fixed = &pOpen) { PInvoke.BeginDocked_internal(window, (Bool8*)pOpen_fixed); } } /// /// /// C++: /// imgui_internal.h:3645 /// , /// imgui.cpp:20647 ///
void BeginDocked(ImGuiWindow* window, bool* p_open) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void BeginDocked(ImGuiWindowPtr window) => PInvoke.BeginDocked_internal(window, null); /// /// /// C++: /// imgui_internal.h:3646 /// , /// imgui.cpp:20773 ///
void BeginDockableDragDropSource(ImGuiWindow* window) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void BeginDockableDragDropSource(ImGuiWindowPtr window) => PInvoke.BeginDockableDragDropSource_internal(window); /// /// /// C++: /// imgui_internal.h:3647 /// , /// imgui.cpp:20805 ///
void BeginDockableDragDropTarget(ImGuiWindow* window) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// public static unsafe void BeginDockableDragDropTarget(ImGuiWindowPtr window) => PInvoke.BeginDockableDragDropTarget_internal(window); /// /// /// C++: /// imgui_internal.h:3648 /// , /// imgui.cpp:19956 ///
void SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond) ///
///
/// /// /// Docking /// (some functions are only declared in imgui.cpp, see Docking section) /// /// /// [Internal] Called via SetNextWindowDockID() /// /// public static unsafe void SetWindowDock(ImGuiWindowPtr window, ImGuiID dockId, ImGuiCond cond) => PInvoke.SetWindowDock_internal(window, dockId, cond); /// /// /// C++: /// imgui_internal.h:3659 /// , /// imgui.cpp:20169 ///
void DockBuilderDockWindow(const char* window_name, ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderDockWindow(ImString windowName, ImGuiID nodeId) { fixed (byte* windowName_fixed = windowName) { PInvoke.DockBuilderDockWindow_internal(windowName_fixed, nodeId); } } /// /// /// C++: /// imgui_internal.h:3660 /// , /// imgui.cpp:20195 ///
ImGuiDockNode*DockBuilderGetNode(ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe ImGuiDockNodePtr DockBuilderGetNode(ImGuiID nodeId) => PInvoke.DockBuilderGetNode_internal(nodeId); /// /// /// C++: /// imgui_internal.h:3661 ///
inline ImGuiDockNode* DockBuilderGetCentralNode(ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe ImGuiDockNodePtr DockBuilderGetCentralNode(ImGuiID nodeId) => PInvoke.DockBuilderGetCentralNode_internal(nodeId); /// /// /// C++: /// imgui_internal.h:3662 /// , /// imgui.cpp:20229 ///
ImGuiID DockBuilderAddNode(ImGuiID node_id = 0, ImGuiDockNodeFlags flags = 0) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// /// Make sure to use the ImGuiDockNodeFlags_DockSpace flag to create a dockspace node! Otherwise this will create a floating node! /// - Floating node: you can then call DockBuilderSetNodePos()/DockBuilderSetNodeSize() to position and size the floating node. /// - Dockspace node: calling DockBuilderSetNodePos() is unnecessary. /// - If you intend to split a node immediately after creation using DockBuilderSplitNode(), make sure to call DockBuilderSetNodeSize() beforehand! /// For various reason, the splitting code currently needs a base size otherwise space may not be allocated as precisely as you would expect. /// - Use (id == 0) to let the system allocate a node identifier. /// - Existing node with a same id will be removed. /// /// public static unsafe ImGuiID DockBuilderAddNode( ImGuiID nodeId = default, ImGuiDockNodeFlags flags = default ) => PInvoke.DockBuilderAddNode_internal(nodeId, flags); /// /// /// Remove node and all its child, undock all windows /// /// /// C++: /// imgui_internal.h:3663 /// , /// imgui.cpp:20252 ///
void DockBuilderRemoveNode(ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderRemoveNode(ImGuiID nodeId) => PInvoke.DockBuilderRemoveNode_internal(nodeId); /// /// /// C++: /// imgui_internal.h:3664 /// , /// imgui.cpp:20342 ///
/// void DockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs = true) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderRemoveNodeDockedWindows( ImGuiID nodeId, bool clearSettingsRefs = true ) => PInvoke.DockBuilderRemoveNodeDockedWindows_internal(nodeId, clearSettingsRefs); /// /// /// Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root /// node (node_id). /// /// /// C++: /// imgui_internal.h:3665 /// , /// imgui.cpp:20272 ///
void DockBuilderRemoveNodeChildNodes(ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// /// root_id = 0 to remove all, root_id != 0 to remove child of given node. /// /// public static unsafe void DockBuilderRemoveNodeChildNodes(ImGuiID nodeId) => PInvoke.DockBuilderRemoveNodeChildNodes_internal(nodeId); /// /// /// C++: /// imgui_internal.h:3666 /// , /// imgui.cpp:20201 ///
void DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderSetNodePos(ImGuiID nodeId, float2 pos) => PInvoke.DockBuilderSetNodePos_internal(nodeId, pos); /// /// /// C++: /// imgui_internal.h:3667 /// , /// imgui.cpp:20211 ///
void DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderSetNodeSize(ImGuiID nodeId, float2 size) => PInvoke.DockBuilderSetNodeSize_internal(nodeId, size); /// /// /// Create 2 child nodes in this parent node. /// /// /// C++: /// imgui_internal.h:3668 /// , /// imgui.cpp:20379 ///
/// ImGuiID DockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// /// If 'out_id_at_dir' or 'out_id_at_opposite_dir' are non NULL, the function will write out the ID of the two new nodes created. /// Return value is ID of the node at the specified direction, so same as (*out_id_at_dir) if that pointer is set. /// FIXME-DOCK: We are not exposing nor using split_outer. /// /// public static unsafe ImGuiID DockBuilderSplitNode( ImGuiID nodeId, ImGuiDir splitDir, float sizeRatioForNodeAtDir, out ImGuiID outIdAtDir, out ImGuiID outIdAtOppositeDir ) { fixed (ImGuiID* outIdAtOppositeDir_fixed = &outIdAtOppositeDir) { fixed (ImGuiID* outIdAtDir_fixed = &outIdAtDir) { return PInvoke.DockBuilderSplitNode_internal( nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir_fixed, outIdAtOppositeDir_fixed ); } } } /// /// /// C++: /// imgui_internal.h:3669 /// , /// imgui.cpp:20490 ///
/// void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector<const char*>* in_window_remap_pairs) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// /// FIXME: Will probably want to change this signature, in particular how the window remapping pairs are /// passed. /// /// public static unsafe void DockBuilderCopyDockSpace( ImGuiID srcDockspaceId, ImGuiID dstDockspaceId, Ptr>> inWindowRemapPairs ) => PInvoke.DockBuilderCopyDockSpace_internal( srcDockspaceId, dstDockspaceId, (ImVector>*)inWindowRemapPairs ); /// /// /// C++: /// imgui_internal.h:3670 /// , /// imgui.cpp:20438 ///
/// void DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector<ImGuiID>* out_node_remap_pairs) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderCopyNode( ImGuiID srcNodeId, ImGuiID dstNodeId, out ImVector outNodeRemapPairs ) { fixed (ImVector* outNodeRemapPairs_fixed = &outNodeRemapPairs) { PInvoke.DockBuilderCopyNode_internal(srcNodeId, dstNodeId, outNodeRemapPairs_fixed); } } /// /// /// C++: /// imgui_internal.h:3671 /// , /// imgui.cpp:20456 ///
void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// public static unsafe void DockBuilderCopyWindowSettings(ImString srcName, ImString dstName) { fixed (byte* dstName_fixed = dstName) { fixed (byte* srcName_fixed = srcName) { PInvoke.DockBuilderCopyWindowSettings_internal(srcName_fixed, dstName_fixed); } } } /// /// /// C++: /// imgui_internal.h:3672 /// , /// imgui.cpp:20570 ///
void DockBuilderFinish(ImGuiID node_id) ///
///
/// /// /// Docking - Builder function needs to be generally called before the node is used/submitted. /// - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. /// - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. /// - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). /// You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. /// - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. /// - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure /// to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. /// - Call DockBuilderFinish() after you are done. /// /// /// FIXME-DOCK: This is awkward because in series of split user is likely to loose access to its root /// node. /// /// public static unsafe void DockBuilderFinish(ImGuiID nodeId) => PInvoke.DockBuilderFinish_internal(nodeId); /// /// /// C++: /// imgui_internal.h:3682 /// , /// imgui.cpp:9121 ///
void PushFocusScope(ImGuiID id) ///
///
/// /// /// [EXPERIMENTAL] Focus Scope /// This is generally used to identify a unique input location (for e.g. a selection set) /// There is one per window (automatically set in Begin), but: /// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. /// So in order to identify a set multiple lists in same window may each need a focus scope. /// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() /// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. /// We don't use the ID Stack for this as it is common to want them separate. /// /// public static unsafe void PushFocusScope(ImGuiID id) => PInvoke.PushFocusScope_internal(id); /// /// /// C++: /// imgui_internal.h:3683 /// , /// imgui.cpp:9131 ///
void PopFocusScope() ///
///
/// /// /// [EXPERIMENTAL] Focus Scope /// This is generally used to identify a unique input location (for e.g. a selection set) /// There is one per window (automatically set in Begin), but: /// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. /// So in order to identify a set multiple lists in same window may each need a focus scope. /// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() /// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. /// We don't use the ID Stack for this as it is common to want them separate. /// /// public static unsafe void PopFocusScope() => PInvoke.PopFocusScope_internal(); /// /// /// Focus scope we are outputting into, set by PushFocusScope() /// /// /// C++: /// imgui_internal.h:3684 ///
inline ImGuiID GetCurrentFocusScope() ///
///
/// /// /// [EXPERIMENTAL] Focus Scope /// This is generally used to identify a unique input location (for e.g. a selection set) /// There is one per window (automatically set in Begin), but: /// - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. /// So in order to identify a set multiple lists in same window may each need a focus scope. /// If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() /// - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. /// We don't use the ID Stack for this as it is common to want them separate. /// /// public static unsafe ImGuiID GetCurrentFocusScope() => PInvoke.GetCurrentFocusScope_internal(); /// /// /// C++: /// imgui_internal.h:3687 /// , /// imgui.cpp:15137 ///
bool IsDragDropActive() ///
///
/// /// /// Drag and Drop /// /// public static unsafe bool IsDragDropActive() => PInvoke.IsDragDropActive_internal(); /// /// /// C++: /// imgui_internal.h:3688 /// , /// imgui.cpp:15353 ///
bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) ///
///
/// /// /// Drag and Drop /// /// public static unsafe bool BeginDragDropTargetCustom(in floatRect bb, ImGuiID id) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.BeginDragDropTargetCustom_internal(bb_fixed, id); } } /// /// /// C++: /// imgui_internal.h:3689 /// , /// imgui.cpp:15143 ///
void ClearDragDrop() ///
///
/// /// /// Drag and Drop /// /// public static unsafe void ClearDragDrop() => PInvoke.ClearDragDrop_internal(); /// /// /// C++: /// imgui_internal.h:3690 /// , /// imgui.cpp:15412 ///
bool IsDragDropPayloadBeingAccepted() ///
///
/// /// /// Drag and Drop /// /// public static unsafe bool IsDragDropPayloadBeingAccepted() => PInvoke.IsDragDropPayloadBeingAccepted_internal(); /// /// /// C++: /// imgui_internal.h:3691 /// , /// imgui.cpp:15460 ///
void RenderDragDropTargetRect(const ImRect& bb, const ImRect& item_clip_rect) ///
///
/// /// /// Drag and Drop /// /// /// FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target. /// /// public static unsafe void RenderDragDropTargetRect(in floatRect bb, in floatRect itemClipRect) { fixed (floatRect* itemClipRect_fixed = &itemClipRect) { fixed (floatRect* bb_fixed = &bb) { PInvoke.RenderDragDropTargetRect_internal(bb_fixed, itemClipRect_fixed); } } } /// /// /// C++: /// imgui_internal.h:3696 /// , /// imgui_widgets.cpp:7329 ///
/// ImGuiTypingSelectRequest* GetTypingSelectRequest(ImGuiTypingSelectFlags flags = ImGuiTypingSelectFlags_None) ///
///
/// /// /// Typing-Select API /// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature) /// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!) /// /// /// [Experimental] Currently not exposed in public API. /// Consume character inputs and return search request, if any. /// This would typically only be called on the focused window or location you want to grab inputs for, e.g. /// if (ImGui::IsWindowFocused(...)) /// if (ImGuiTypingSelectRequest* req = ImGui::GetTypingSelectRequest()) /// focus_idx = ImGui::TypingSelectFindMatch(req, my_items.size(), [](void*, int n) { return my_items[n]->Name; }, &my_items, -1); /// However the code is written in a way where calling it from multiple locations is safe (e.g. to obtain buffer). /// /// public static unsafe ImGuiTypingSelectRequestPtr GetTypingSelectRequest( ImGuiTypingSelectFlags flags = default ) => PInvoke.GetTypingSelectRequest_internal(flags); /// /// /// C++: /// imgui_internal.h:3697 /// , /// imgui_widgets.cpp:7439 ///
/// int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) ///
///
/// /// /// Typing-Select API /// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature) /// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!) /// /// /// Default handler for finding a result for typing-select. You may implement your own. /// You might want to display a tooltip to visualize the current request SearchBuffer /// When SingleCharMode is set: /// - it is better to NOT display a tooltip of other on-screen display indicator. /// - the index of the currently focused item is required. /// if your SetNextItemSelectionUserData() values are indices, you can obtain it from ImGuiMultiSelectIO::NavIdItem, otherwise from g.NavLastValidSelectionUserData. /// /// public static unsafe int TypingSelectFindMatch( ImGuiTypingSelectRequestPtr req, int itemsCount, nint getItemNameFunc, Ptr userData, int navItemIdx ) => PInvoke.TypingSelectFindMatch_internal(req, itemsCount, getItemNameFunc, userData, navItemIdx); /// /// /// C++: /// imgui_internal.h:3698 /// , /// imgui_widgets.cpp:7454 ///
/// int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) ///
///
/// /// /// Typing-Select API /// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature) /// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!) /// /// /// Special handling when a single character is repeated: perform search on a single letter and goes to /// next. /// /// public static unsafe int TypingSelectFindNextSingleCharMatch( ImGuiTypingSelectRequestPtr req, int itemsCount, nint getItemNameFunc, Ptr userData, int navItemIdx ) => PInvoke.TypingSelectFindNextSingleCharMatch_internal( req, itemsCount, getItemNameFunc, userData, navItemIdx ); /// /// /// C++: /// imgui_internal.h:3699 /// , /// imgui_widgets.cpp:7479 ///
/// int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data) ///
///
/// /// /// Typing-Select API /// (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature) /// (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!) /// /// public static unsafe int TypingSelectFindBestLeadingMatch( ImGuiTypingSelectRequestPtr req, int itemsCount, nint getItemNameFunc, Ptr userData ) => PInvoke.TypingSelectFindBestLeadingMatch_internal(req, itemsCount, getItemNameFunc, userData); /// /// /// C++: /// imgui_internal.h:3702 /// , /// imgui_widgets.cpp:7589 ///
/// bool BeginBoxSelect(const ImRect& scope_rect, ImGuiWindow* window, ImGuiID box_select_id, ImGuiMultiSelectFlags ms_flags) ///
///
/// /// /// Box-Select API /// /// public static unsafe bool BeginBoxSelect( in floatRect scopeRect, ImGuiWindowPtr window, ImGuiID boxSelectId, ImGuiMultiSelectFlags msFlags ) { fixed (floatRect* scopeRect_fixed = &scopeRect) { return PInvoke.BeginBoxSelect_internal(scopeRect_fixed, window, boxSelectId, msFlags); } } /// /// /// C++: /// imgui_internal.h:3703 /// , /// imgui_widgets.cpp:7635 ///
void EndBoxSelect(const ImRect& scope_rect, ImGuiMultiSelectFlags ms_flags) ///
///
/// /// /// Box-Select API /// /// public static unsafe void EndBoxSelect(in floatRect scopeRect, ImGuiMultiSelectFlags msFlags) { fixed (floatRect* scopeRect_fixed = &scopeRect) { PInvoke.EndBoxSelect_internal(scopeRect_fixed, msFlags); } } /// /// /// C++: /// imgui_internal.h:3706 /// , /// imgui_widgets.cpp:7942 ///
/// void MultiSelectItemHeader(ImGuiID id, bool* p_selected, ImGuiButtonFlags* p_button_flags) ///
///
/// /// /// Multi-Select API /// /// /// In charge of: /// - Applying SetAll for submitted items. /// - Applying SetRange for submitted items and record end points. /// - Altering button behavior flags to facilitate use with drag and drop. /// /// public static unsafe void MultiSelectItemHeader( ImGuiID id, ref bool pSelected, Ptr pButtonFlags ) { fixed (bool* pSelected_fixed = &pSelected) { PInvoke.MultiSelectItemHeader_internal( id, (Bool8*)pSelected_fixed, (ImGuiButtonFlags*)pButtonFlags ); } } /// /// /// C++: /// imgui_internal.h:3707 /// , /// imgui_widgets.cpp:8011 ///
void MultiSelectItemFooter(ImGuiID id, bool* p_selected, bool* p_pressed) ///
///
/// /// /// Multi-Select API /// /// /// In charge of: /// - Auto-select on navigation. /// - Box-select toggle handling. /// - Right-click handling. /// - Altering selection based on Ctrl/Shift modifiers, both for keyboard and mouse. /// - Record current selection state for RangeSrc /// This is all rather complex, best to run and refer to "widgets_multiselect_xxx" tests in imgui_test_suite. /// /// public static unsafe void MultiSelectItemFooter(ImGuiID id, ref bool pSelected, Ptr pPressed) { fixed (bool* pSelected_fixed = &pSelected) { PInvoke.MultiSelectItemFooter_internal(id, (Bool8*)pSelected_fixed, (Bool8*)pPressed); } } /// /// /// C++: /// imgui_internal.h:3708 /// , /// imgui_widgets.cpp:8208 ///
void MultiSelectAddSetAll(ImGuiMultiSelectTempData* ms, bool selected) ///
///
/// /// /// Multi-Select API /// /// public static unsafe void MultiSelectAddSetAll(ImGuiMultiSelectTempDataPtr ms, bool selected) => PInvoke.MultiSelectAddSetAll_internal(ms, selected); /// /// /// C++: /// imgui_internal.h:3709 /// , /// imgui_widgets.cpp:8215 ///
/// void MultiSelectAddSetRange(ImGuiMultiSelectTempData* ms, bool selected, int range_dir, ImGuiSelectionUserData first_item, ImGuiSelectionUserData last_item) ///
///
/// /// /// Multi-Select API /// /// public static unsafe void MultiSelectAddSetRange( ImGuiMultiSelectTempDataPtr ms, bool selected, int rangeDir, ulong firstItem, ulong lastItem ) => PInvoke.MultiSelectAddSetRange_internal(ms, selected, rangeDir, firstItem, lastItem); /// /// /// C++: /// imgui_internal.h:3710 ///
inline ImGuiBoxSelectState* GetBoxSelectState(ImGuiID id) ///
///
/// /// /// Multi-Select API /// /// public static unsafe ImGuiBoxSelectStatePtr GetBoxSelectState(ImGuiID id) => PInvoke.GetBoxSelectState_internal(id); /// /// /// C++: /// imgui_internal.h:3711 ///
inline ImGuiMultiSelectState* GetMultiSelectState(ImGuiID id) ///
///
/// /// /// Multi-Select API /// /// public static unsafe ImGuiMultiSelectStatePtr GetMultiSelectState(ImGuiID id) => PInvoke.GetMultiSelectState_internal(id); /// /// /// C++: /// imgui_internal.h:3714 /// , /// imgui_tables.cpp:4144 ///
void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// /// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, /// they would meddle many times with the underlying ImDrawCmd. /// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let /// the subsequent single call to SetCurrentChannel() does it things once. /// /// public static unsafe void SetWindowClipRectBeforeSetChannel(ImGuiWindowPtr window, in floatRect clipRect) { fixed (floatRect* clipRect_fixed = &clipRect) { PInvoke.SetWindowClipRectBeforeSetChannel_internal(window, clipRect_fixed); } } /// /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with /// EndColumns(). /// /// /// C++: /// imgui_internal.h:3715 /// , /// imgui_tables.cpp:4331 ///
void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe void BeginColumns(ImString strId, int count, ImGuiOldColumnFlags flags = default) { fixed (byte* strId_fixed = strId) { PInvoke.BeginColumns_internal(strId_fixed, count, flags); } } /// /// /// close columns /// /// /// C++: /// imgui_internal.h:3716 /// , /// imgui_tables.cpp:4466 ///
void EndColumns() ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe void EndColumns() => PInvoke.EndColumns_internal(); /// /// /// C++: /// imgui_internal.h:3717 /// , /// imgui_tables.cpp:4268 ///
void PushColumnClipRect(int column_index) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe void PushColumnClipRect(int columnIndex) => PInvoke.PushColumnClipRect_internal(columnIndex); /// /// /// C++: /// imgui_internal.h:3718 /// , /// imgui_tables.cpp:4280 ///
void PushColumnsBackground() ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// /// Get into the columns background draw command (which is generally the same draw command as before we /// called BeginColumns) /// /// public static unsafe void PushColumnsBackground() => PInvoke.PushColumnsBackground_internal(); /// /// /// C++: /// imgui_internal.h:3719 /// , /// imgui_tables.cpp:4293 ///
void PopColumnsBackground() ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe void PopColumnsBackground() => PInvoke.PopColumnsBackground_internal(); /// /// /// C++: /// imgui_internal.h:3720 /// , /// imgui_tables.cpp:4318 ///
ImGuiID GetColumnsID(const char* str_id, int count) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe ImGuiID GetColumnsID(ImString strId, int count) { fixed (byte* strId_fixed = strId) { return PInvoke.GetColumnsID_internal(strId_fixed, count); } } /// /// /// C++: /// imgui_internal.h:3721 /// , /// imgui_tables.cpp:4305 ///
ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe ImGuiOldColumnsPtr FindOrCreateColumns(ImGuiWindowPtr window, ImGuiID id) => PInvoke.FindOrCreateColumns_internal(window, id); /// /// /// C++: /// imgui_internal.h:3722 /// , /// imgui_tables.cpp:4164 ///
float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe float GetColumnOffsetFromNorm(ImGuiOldColumnsPtr columns, float offsetNorm) => PInvoke.GetColumnOffsetFromNorm_internal(columns, offsetNorm); /// /// /// C++: /// imgui_internal.h:3723 /// , /// imgui_tables.cpp:4169 ///
float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) ///
///
/// /// /// Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) /// /// public static unsafe float GetColumnNormFromOffset(ImGuiOldColumnsPtr columns, float offset) => PInvoke.GetColumnNormFromOffset_internal(columns, offset); /// /// /// C++: /// imgui_internal.h:3726 /// , /// imgui_tables.cpp:3478 ///
void TableOpenContextMenu(int column_n = -1) ///
///
/// /// /// Tables: Candidates for public API /// /// /// Use -1 to open menu not specific to a given column. /// /// public static unsafe void TableOpenContextMenu(int columnN = -1) => PInvoke.TableOpenContextMenu_internal(columnN); /// /// /// C++: /// imgui_internal.h:3727 /// , /// imgui_tables.cpp:2314 ///
void TableSetColumnWidth(int column_n, float width) ///
///
/// /// /// Tables: Candidates for public API /// /// /// 'width' = inner column width, without padding /// /// public static unsafe void TableSetColumnWidth(int columnN, float width) => PInvoke.TableSetColumnWidth_internal(columnN, width); /// /// /// C++: /// imgui_internal.h:3728 /// , /// imgui_tables.cpp:2928 ///
/// void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) ///
///
/// /// /// Tables: Candidates for public API /// /// /// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert /// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. /// /// public static unsafe void TableSetColumnSortDirection( int columnN, ImGuiSortDirection sortDirection, bool appendToSortSpecs ) => PInvoke.TableSetColumnSortDirection_internal(columnN, sortDirection, appendToSortSpecs); /// /// /// Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason /// why this is not public yet. /// /// /// C++: /// imgui_internal.h:3729 /// , /// imgui_tables.cpp:1813 ///
int TableGetHoveredRow() ///
///
/// /// /// Tables: Candidates for public API /// /// /// Return -1 when table is not hovered. Return maxrow+1 if in table but below last submitted row. /// *IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value. /// This difference with is the reason why this is not public yet. /// /// public static unsafe int TableGetHoveredRow() => PInvoke.TableGetHoveredRow_internal(); /// /// /// C++: /// imgui_internal.h:3730 /// , /// imgui_tables.cpp:3070 ///
float TableGetHeaderRowHeight() ///
///
/// /// /// Tables: Candidates for public API /// /// public static unsafe float TableGetHeaderRowHeight() => PInvoke.TableGetHeaderRowHeight_internal(); /// /// /// C++: /// imgui_internal.h:3731 /// , /// imgui_tables.cpp:3086 ///
float TableGetHeaderAngledMaxLabelWidth() ///
///
/// /// /// Tables: Candidates for public API /// /// public static unsafe float TableGetHeaderAngledMaxLabelWidth() => PInvoke.TableGetHeaderAngledMaxLabelWidth_internal(); /// /// /// C++: /// imgui_internal.h:3732 /// , /// imgui_tables.cpp:2461 ///
void TablePushBackgroundChannel() ///
///
/// /// /// Tables: Candidates for public API /// /// /// Bg2 is used by Selectable (and possibly other widgets) to render to the background. /// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. /// /// public static unsafe void TablePushBackgroundChannel() => PInvoke.TablePushBackgroundChannel_internal(); /// /// /// C++: /// imgui_internal.h:3733 /// , /// imgui_tables.cpp:2473 ///
void TablePopBackgroundChannel() ///
///
/// /// /// Tables: Candidates for public API /// /// public static unsafe void TablePopBackgroundChannel() => PInvoke.TablePopBackgroundChannel_internal(); /// /// /// C++: /// imgui_internal.h:3734 /// , /// imgui_tables.cpp:2485 ///
void TablePushColumnChannel(int column_n) ///
///
/// /// /// Tables: Candidates for public API /// /// /// Also see TableBeginCell() /// /// public static unsafe void TablePushColumnChannel(int columnN) => PInvoke.TablePushColumnChannel_internal(columnN); /// /// /// C++: /// imgui_internal.h:3735 /// , /// imgui_tables.cpp:2499 ///
void TablePopColumnChannel() ///
///
/// /// /// Tables: Candidates for public API /// /// public static unsafe void TablePopColumnChannel() => PInvoke.TablePopColumnChannel_internal(); /// /// /// C++: /// imgui_internal.h:3736 /// , /// imgui_tables.cpp:3332 ///
/// void TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label_width, const ImGuiTableHeaderData* data, int data_count) ///
///
/// /// /// Tables: Candidates for public API /// /// /// Important: data must be fed left to right /// /// public static unsafe void TableAngledHeadersRowEx( ImGuiID rowId, float angle, float maxLabelWidth, ReadOnlySpan data ) { fixed (ImGuiTableHeaderData* data_fixed = data) { PInvoke.TableAngledHeadersRowEx_internal(rowId, angle, maxLabelWidth, data_fixed, data.Length); } } /// /// /// C++: /// imgui_internal.h:3739 ///
inline ImGuiTable* GetCurrentTable() ///
///
/// /// /// Tables: Internals /// /// public static unsafe ImGuiTablePtr GetCurrentTable() => PInvoke.GetCurrentTable_internal(); /// /// /// C++: /// imgui_internal.h:3740 /// , /// imgui_tables.cpp:304 ///
ImGuiTable* TableFindByID(ImGuiID id) ///
///
/// /// /// Tables: Internals /// /// public static unsafe ImGuiTablePtr TableFindByID(ImGuiID id) => PInvoke.TableFindByID_internal(id); /// /// /// C++: /// imgui_internal.h:3741 /// , /// imgui_tables.cpp:317 ///
/// bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f) ///
///
/// /// /// Tables: Internals /// /// public static unsafe bool BeginTableEx( ImString name, ImGuiID id, int columnsCount, ImGuiTableFlags flags = default, in float2? outerSize = default, float innerWidth = 0f ) { var outerSize_default = outerSize ?? new float2(0f, 0f); fixed (byte* name_fixed = name) { return PInvoke.BeginTableEx_internal( name_fixed, id, columnsCount, flags, &outerSize_default, innerWidth ); } } /// /// /// C++: /// imgui_internal.h:3742 /// , /// imgui_tables.cpp:655 ///
void TableBeginInitMemory(ImGuiTable* table, int columns_count) ///
///
/// /// /// Tables: Internals /// /// /// For reference, the average total _allocation count_ for a table is: /// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables[]) /// + 1 (for table->RawData allocated below) /// + 1 (for table->ColumnsNames, if names are used) /// Shared allocations for the maximum number of simultaneously nested tables (generally a very small number) /// + 1 (for table->Splitter._Channels) /// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) /// Where active_channels_count is variable but often == columns_count or == columns_count + 1, see TableSetupDrawChannels() for details. /// Unused channels don't perform their +2 allocations. /// /// public static unsafe void TableBeginInitMemory(ImGuiTablePtr table, int columnsCount) => PInvoke.TableBeginInitMemory_internal(table, columnsCount); /// /// /// C++: /// imgui_internal.h:3743 /// , /// imgui_tables.cpp:677 ///
void TableBeginApplyRequests(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Apply queued resizing/reordering/hiding requests /// /// public static unsafe void TableBeginApplyRequests(ImGuiTablePtr table) => PInvoke.TableBeginApplyRequests_internal(table); /// /// /// C++: /// imgui_internal.h:3744 /// , /// imgui_tables.cpp:2529 ///
void TableSetupDrawChannels(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Allocate draw channels. Called by TableUpdateLayout() /// - We allocate them following storage order instead of display order so reordering columns won't needlessly /// increase overall dormant memory cost. /// - We isolate headers draw commands in their own channels instead of just altering clip rects. /// This is in order to facilitate merging of draw commands. /// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. /// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other /// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. /// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for /// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). /// Draw channel allocation (before merging): /// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) /// - Clip --> 2+D+N channels /// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) /// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) /// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. /// /// public static unsafe void TableSetupDrawChannels(ImGuiTablePtr table) => PInvoke.TableSetupDrawChannels_internal(table); /// /// /// C++: /// imgui_internal.h:3745 /// , /// imgui_tables.cpp:803 ///
void TableUpdateLayout(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Layout columns for the frame. This is in essence the followup to BeginTable() and this is our largest function. /// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() and other TableSetupXXXXX() functions to be called first. /// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. /// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? /// /// public static unsafe void TableUpdateLayout(ImGuiTablePtr table) => PInvoke.TableUpdateLayout_internal(table); /// /// /// C++: /// imgui_internal.h:3746 /// , /// imgui_tables.cpp:1285 ///
void TableUpdateBorders(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() /// - Set table->HoveredColumnBorder with a short delay/timer to reduce visual feedback noise. /// /// public static unsafe void TableUpdateBorders(ImGuiTablePtr table) => PInvoke.TableUpdateBorders_internal(table); /// /// /// C++: /// imgui_internal.h:3747 /// , /// imgui_tables.cpp:2419 ///
void TableUpdateColumnsWeightFromWidth(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe void TableUpdateColumnsWeightFromWidth(ImGuiTablePtr table) => PInvoke.TableUpdateColumnsWeightFromWidth_internal(table); /// /// /// C++: /// imgui_internal.h:3748 /// , /// imgui_tables.cpp:2780 ///
void TableDrawBorders(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in /// TableEndRow) /// /// public static unsafe void TableDrawBorders(ImGuiTablePtr table) => PInvoke.TableDrawBorders_internal(table); /// /// /// C++: /// imgui_internal.h:3749 /// , /// imgui_tables.cpp:3516 ///
/// void TableDrawDefaultContextMenu(ImGuiTable* table, ImGuiTableFlags flags_for_section_to_display) ///
///
/// /// /// Tables: Internals /// /// /// - ImGuiTableFlags_Hideable -> display columns visibility menu items /// It means if you have a custom context menus you can call this section and omit some sections, and add your own. /// /// public static unsafe void TableDrawDefaultContextMenu( ImGuiTablePtr table, ImGuiTableFlags flagsForSectionToDisplay ) => PInvoke.TableDrawDefaultContextMenu_internal(table, flagsForSectionToDisplay); /// /// /// C++: /// imgui_internal.h:3750 /// , /// imgui_tables.cpp:3497 ///
bool TableBeginContextMenuPopup(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe bool TableBeginContextMenuPopup(ImGuiTablePtr table) => PInvoke.TableBeginContextMenuPopup_internal(table); /// /// /// C++: /// imgui_internal.h:3751 /// , /// imgui_tables.cpp:2597 ///
void TableMergeDrawChannels(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// This function is particularly tricky to understand.. take a breath. /// /// public static unsafe void TableMergeDrawChannels(ImGuiTablePtr table) => PInvoke.TableMergeDrawChannels_internal(table); /// /// /// C++: /// imgui_internal.h:3752 ///
inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) ///
///
/// /// /// Tables: Internals /// /// public static unsafe ImGuiTableInstanceDataPtr TableGetInstanceData(ImGuiTablePtr table, int instanceNo) => PInvoke.TableGetInstanceData_internal(table, instanceNo); /// /// /// C++: /// imgui_internal.h:3753 ///
inline ImGuiID TableGetInstanceID(ImGuiTable* table, int instance_no) ///
///
/// /// /// Tables: Internals /// /// public static unsafe ImGuiID TableGetInstanceID(ImGuiTablePtr table, int instanceNo) => PInvoke.TableGetInstanceID_internal(table, instanceNo); /// /// /// C++: /// imgui_internal.h:3754 /// , /// imgui_tables.cpp:2961 ///
void TableSortSpecsSanitize(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe void TableSortSpecsSanitize(ImGuiTablePtr table) => PInvoke.TableSortSpecsSanitize_internal(table); /// /// /// C++: /// imgui_internal.h:3755 /// , /// imgui_tables.cpp:3027 ///
void TableSortSpecsBuild(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe void TableSortSpecsBuild(ImGuiTablePtr table) => PInvoke.TableSortSpecsBuild_internal(table); /// /// /// C++: /// imgui_internal.h:3756 /// , /// imgui_tables.cpp:2914 ///
ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column) ///
///
/// /// /// Tables: Internals /// /// public static unsafe ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumnPtr column) => PInvoke.TableGetColumnNextSortDirection_internal(column); /// /// /// C++: /// imgui_internal.h:3757 /// , /// imgui_tables.cpp:2902 ///
void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) ///
///
/// /// /// Tables: Internals /// /// /// Fix sort direction if currently set on a value which is unavailable (e.g. activating /// NoSortAscending/NoSortDescending) /// /// public static unsafe void TableFixColumnSortDirection(ImGuiTablePtr table, ImGuiTableColumnPtr column) => PInvoke.TableFixColumnSortDirection_internal(table, column); /// /// /// C++: /// imgui_internal.h:3758 /// , /// imgui_tables.cpp:2297 ///
float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) ///
///
/// /// /// Tables: Internals /// /// /// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field /// /// public static unsafe float TableGetColumnWidthAuto(ImGuiTablePtr table, ImGuiTableColumnPtr column) => PInvoke.TableGetColumnWidthAuto_internal(table, column); /// /// /// C++: /// imgui_internal.h:3759 /// , /// imgui_tables.cpp:1916 ///
void TableBeginRow(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// [Internal] Only called by TableNextRow() /// /// public static unsafe void TableBeginRow(ImGuiTablePtr table) => PInvoke.TableBeginRow_internal(table); /// /// /// C++: /// imgui_internal.h:3760 /// , /// imgui_tables.cpp:1953 ///
void TableEndRow(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// [Internal] Called by TableNextRow() /// /// public static unsafe void TableEndRow(ImGuiTablePtr table) => PInvoke.TableEndRow_internal(table); /// /// /// C++: /// imgui_internal.h:3761 /// , /// imgui_tables.cpp:2171 ///
void TableBeginCell(ImGuiTable* table, int column_n) ///
///
/// /// /// Tables: Internals /// /// /// [Internal] Called by TableSetColumnIndex()/TableNextColumn() /// This is called very frequently, so we need to be mindful of unnecessary overhead. /// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. /// /// public static unsafe void TableBeginCell(ImGuiTablePtr table, int columnN) => PInvoke.TableBeginCell_internal(table, columnN); /// /// /// C++: /// imgui_internal.h:3762 /// , /// imgui_tables.cpp:2227 ///
void TableEndCell(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() /// /// public static unsafe void TableEndCell(ImGuiTablePtr table) => PInvoke.TableEndCell_internal(table); /// /// /// C++: /// imgui_internal.h:3763 /// , /// imgui_tables.cpp:1778 ///
ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n) ///
///
/// /// /// Tables: Internals /// /// /// Return the cell rectangle based on currently known height. /// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. /// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. /// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right /// columns report a small offset so their CellBgRect can extend up to the outer border. /// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. /// /// public static unsafe floatRect TableGetCellBgRect(ImGuiTablePtr table, int columnN) => PInvoke.TableGetCellBgRect_internal(table, columnN); /// /// /// C++: /// imgui_internal.h:3764 /// , /// imgui_tables.cpp:1725 ///
const char* TableGetColumnName(const ImGuiTable* table, int column_n) ///
///
/// /// /// Tables: Internals /// /// public static unsafe Ptr TableGetColumnName(ImGuiTablePtr table, int columnN) => PInvoke.TableGetColumnName_internal(table, columnN); /// /// /// C++: /// imgui_internal.h:3765 /// , /// imgui_tables.cpp:1793 ///
ImGuiID TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no = 0) ///
///
/// /// /// Tables: Internals /// /// /// Return the resizing ID for the right-side of the given column. /// /// public static unsafe ImGuiID TableGetColumnResizeID(ImGuiTablePtr table, int columnN, int instanceNo = 0) => PInvoke.TableGetColumnResizeID_internal(table, columnN, instanceNo); /// /// /// C++: /// imgui_internal.h:3766 /// , /// imgui_tables.cpp:2265 ///
float TableCalcMaxColumnWidth(const ImGuiTable* table, int column_n) ///
///
/// /// /// Tables: Internals /// /// /// Maximum column content width given current layout. Use column->MinX so this value differs on a /// per-column basis. /// /// public static unsafe float TableCalcMaxColumnWidth(ImGuiTablePtr table, int columnN) => PInvoke.TableCalcMaxColumnWidth_internal(table, columnN); /// /// /// C++: /// imgui_internal.h:3767 /// , /// imgui_tables.cpp:2397 ///
void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) ///
///
/// /// /// Tables: Internals /// /// /// Disable clipping then auto-fit, will take 2 frames /// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) /// /// public static unsafe void TableSetColumnWidthAutoSingle(ImGuiTablePtr table, int columnN) => PInvoke.TableSetColumnWidthAutoSingle_internal(table, columnN); /// /// /// C++: /// imgui_internal.h:3768 /// , /// imgui_tables.cpp:2407 ///
void TableSetColumnWidthAutoAll(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe void TableSetColumnWidthAutoAll(ImGuiTablePtr table) => PInvoke.TableSetColumnWidthAutoAll_internal(table); /// /// /// C++: /// imgui_internal.h:3769 /// , /// imgui_tables.cpp:3946 ///
void TableRemove(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Remove Table (currently only used by TestEngine) /// /// public static unsafe void TableRemove(ImGuiTablePtr table) => PInvoke.TableRemove_internal(table); /// /// /// C++: /// imgui_internal.h:3770 /// , /// imgui_tables.cpp:3958 ///
void TableGcCompactTransientBuffers(ImGuiTable* table) ///
///
/// /// /// Tables: Internals /// /// /// Free up/compact internal Table buffers for when it gets unused /// /// public static unsafe void TableGcCompactTransientBuffers(ImGuiTablePtr table) => PInvoke.TableGcCompactTransientBuffers_internal_0(table); /// /// /// C++: /// imgui_internal.h:3771 /// , /// imgui_tables.cpp:3973 ///
void TableGcCompactTransientBuffers(ImGuiTableTempData* table) ///
///
/// /// /// Tables: Internals /// /// public static unsafe void TableGcCompactTransientBuffers(ImGuiTableTempDataPtr table) => PInvoke.TableGcCompactTransientBuffers_internal_1(table); /// /// /// C++: /// imgui_internal.h:3772 /// , /// imgui_tables.cpp:3980 ///
void TableGcCompactSettings() ///
///
/// /// /// Tables: Internals /// /// /// Compact and remove unused settings data (currently only used by TestEngine) /// /// public static unsafe void TableGcCompactSettings() => PInvoke.TableGcCompactSettings_internal(); /// /// /// C++: /// imgui_internal.h:3775 /// , /// imgui_tables.cpp:3747 ///
void TableLoadSettings(ImGuiTable* table) ///
///
/// /// /// Tables: Settings /// /// public static unsafe void TableLoadSettings(ImGuiTablePtr table) => PInvoke.TableLoadSettings_internal(table); /// /// /// C++: /// imgui_internal.h:3776 /// , /// imgui_tables.cpp:3692 ///
void TableSaveSettings(ImGuiTable* table) ///
///
/// /// /// Tables: Settings /// /// public static unsafe void TableSaveSettings(ImGuiTablePtr table) => PInvoke.TableSaveSettings_internal(table); /// /// /// C++: /// imgui_internal.h:3777 /// , /// imgui_tables.cpp:3684 ///
void TableResetSettings(ImGuiTable* table) ///
///
/// /// /// Tables: Settings /// /// /// Restore initial state of table (with or without saved settings) /// /// public static unsafe void TableResetSettings(ImGuiTablePtr table) => PInvoke.TableResetSettings_internal(table); /// /// /// C++: /// imgui_internal.h:3778 /// , /// imgui_tables.cpp:3669 ///
ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table) ///
///
/// /// /// Tables: Settings /// /// /// Get settings for a given table, NULL if none /// /// public static unsafe ImGuiTableSettingsPtr TableGetBoundSettings(ImGuiTablePtr table) => PInvoke.TableGetBoundSettings_internal(table); /// /// /// C++: /// imgui_internal.h:3779 /// , /// imgui_tables.cpp:3924 ///
void TableSettingsAddSettingsHandler() ///
///
/// /// /// Tables: Settings /// /// public static unsafe void TableSettingsAddSettingsHandler() => PInvoke.TableSettingsAddSettingsHandler_internal(); /// /// /// C++: /// imgui_internal.h:3780 /// , /// imgui_tables.cpp:3649 ///
ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count) ///
///
/// /// /// Tables: Settings /// /// public static unsafe ImGuiTableSettingsPtr TableSettingsCreate(ImGuiID id, int columnsCount) => PInvoke.TableSettingsCreate_internal(id, columnsCount); /// /// /// C++: /// imgui_internal.h:3781 /// , /// imgui_tables.cpp:3658 ///
ImGuiTableSettings* TableSettingsFindByID(ImGuiID id) ///
///
/// /// /// Tables: Settings /// /// /// Find existing settings /// /// public static unsafe ImGuiTableSettingsPtr TableSettingsFindByID(ImGuiID id) => PInvoke.TableSettingsFindByID_internal(id); /// /// /// C++: /// imgui_internal.h:3784 ///
inline ImGuiTabBar* GetCurrentTabBar() ///
///
/// /// /// Tab Bars /// /// public static unsafe ImGuiTabBarPtr GetCurrentTabBar() => PInvoke.GetCurrentTabBar_internal(); /// /// /// C++: /// imgui_internal.h:3785 /// , /// imgui_widgets.cpp:9458 ///
bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags) ///
///
/// /// /// Tab Bars /// /// public static unsafe bool BeginTabBarEx(ImGuiTabBarPtr tabBar, in floatRect bb, ImGuiTabBarFlags flags) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.BeginTabBarEx_internal(tabBar, bb_fixed, flags); } } /// /// /// C++: /// imgui_internal.h:3786 /// , /// imgui_widgets.cpp:9858 ///
ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) ///
///
/// /// /// Tab Bars /// /// public static unsafe ImGuiTabItemPtr TabBarFindTabByID(ImGuiTabBarPtr tabBar, ImGuiID tabId) => PInvoke.TabBarFindTabByID_internal(tabBar, tabId); /// /// /// C++: /// imgui_internal.h:3787 /// , /// imgui_widgets.cpp:9868 ///
ImGuiTabItem* TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order) ///
///
/// /// /// Tab Bars /// /// /// Order = visible order, not submission order! (which is tab->BeginOrder) /// /// public static unsafe ImGuiTabItemPtr TabBarFindTabByOrder(ImGuiTabBarPtr tabBar, int order) => PInvoke.TabBarFindTabByOrder_internal(tabBar, order); /// /// /// C++: /// imgui_internal.h:3788 /// , /// imgui_widgets.cpp:9876 ///
ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar) ///
///
/// /// /// Tab Bars /// /// /// FIXME: See references to #2304 in TODO.txt /// /// public static unsafe ImGuiTabItemPtr TabBarFindMostRecentlySelectedTabForActiveWindow( ImGuiTabBarPtr tabBar ) => PInvoke.TabBarFindMostRecentlySelectedTabForActiveWindow_internal(tabBar); /// /// /// C++: /// imgui_internal.h:3789 /// , /// imgui_widgets.cpp:9889 ///
ImGuiTabItem* TabBarGetCurrentTab(ImGuiTabBar* tab_bar) ///
///
/// /// /// Tab Bars /// /// public static unsafe ImGuiTabItemPtr TabBarGetCurrentTab(ImGuiTabBarPtr tabBar) => PInvoke.TabBarGetCurrentTab_internal(tabBar); /// /// /// C++: /// imgui_internal.h:3790 ///
inline int TabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) ///
///
/// /// /// Tab Bars /// /// public static unsafe int TabBarGetTabOrder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) => PInvoke.TabBarGetTabOrder_internal(tabBar, tab); /// /// /// C++: /// imgui_internal.h:3791 /// , /// imgui_widgets.cpp:9896 ///
const char* TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) ///
///
/// /// /// Tab Bars /// /// public static unsafe Ptr TabBarGetTabName(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) => PInvoke.TabBarGetTabName_internal(tabBar, tab); /// /// /// C++: /// imgui_internal.h:3792 /// , /// imgui_widgets.cpp:9908 ///
/// void TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window) ///
///
/// /// /// Tab Bars /// /// /// The purpose of this call is to register tab in advance so we can control their order at the time they appear. /// Otherwise calling this is unnecessary as tabs are appending as needed by the BeginTabItem() function. /// /// public static unsafe void TabBarAddTab( ImGuiTabBarPtr tabBar, ImGuiTabItemFlags tabFlags, ImGuiWindowPtr window ) => PInvoke.TabBarAddTab_internal(tabBar, tabFlags, window); /// /// /// C++: /// imgui_internal.h:3793 /// , /// imgui_widgets.cpp:9928 ///
void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) ///
///
/// /// /// Tab Bars /// /// /// The *TabId fields are already set by the docking system _before_ the actual TabItem was created, so /// we clear them regardless. /// /// public static unsafe void TabBarRemoveTab(ImGuiTabBarPtr tabBar, ImGuiID tabId) => PInvoke.TabBarRemoveTab_internal(tabBar, tabId); /// /// /// C++: /// imgui_internal.h:3794 /// , /// imgui_widgets.cpp:9938 ///
void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) ///
///
/// /// /// Tab Bars /// /// /// Called on manual closure attempt /// /// public static unsafe void TabBarCloseTab(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) => PInvoke.TabBarCloseTab_internal(tabBar, tab); /// /// /// C++: /// imgui_internal.h:3795 /// , /// imgui_widgets.cpp:10002 ///
void TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabBarQueueFocus(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab) => PInvoke.TabBarQueueFocus_internal_0(tabBar, tab); /// /// /// C++: /// imgui_internal.h:3796 /// , /// imgui_widgets.cpp:10007 ///
void TabBarQueueFocus(ImGuiTabBar* tab_bar, const char* tab_name) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabBarQueueFocus(ImGuiTabBarPtr tabBar, ImString tabName) { fixed (byte* tabName_fixed = tabName) { PInvoke.TabBarQueueFocus_internal_1(tabBar, tabName_fixed); } } /// /// /// C++: /// imgui_internal.h:3797 /// , /// imgui_widgets.cpp:10014 ///
void TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabBarQueueReorder(ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, int offset) => PInvoke.TabBarQueueReorder_internal(tabBar, tab, offset); /// /// /// C++: /// imgui_internal.h:3798 /// , /// imgui_widgets.cpp:10022 ///
/// void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImVec2 mouse_pos) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabBarQueueReorderFromMousePos( ImGuiTabBarPtr tabBar, ImGuiTabItemPtr tab, float2 mousePos ) => PInvoke.TabBarQueueReorderFromMousePos_internal(tabBar, tab, mousePos); /// /// /// C++: /// imgui_internal.h:3799 /// , /// imgui_widgets.cpp:10058 ///
bool TabBarProcessReorder(ImGuiTabBar* tab_bar) ///
///
/// /// /// Tab Bars /// /// public static unsafe bool TabBarProcessReorder(ImGuiTabBarPtr tabBar) => PInvoke.TabBarProcessReorder_internal(tabBar); /// /// /// C++: /// imgui_internal.h:3800 /// , /// imgui_widgets.cpp:10279 ///
/// bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) ///
///
/// /// /// Tab Bars /// /// public static unsafe bool TabItemEx( ImGuiTabBarPtr tabBar, ImString label, ref bool pOpen, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow ) { fixed (bool* pOpen_fixed = &pOpen) { fixed (byte* label_fixed = label) { return PInvoke.TabItemEx_internal( tabBar, label_fixed, (Bool8*)pOpen_fixed, flags, dockedWindow ); } } } /// /// /// C++: /// imgui_internal.h:3800 /// , /// imgui_widgets.cpp:10279 ///
/// bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) ///
///
/// /// /// Tab Bars /// /// public static unsafe bool TabItemEx( ImGuiTabBarPtr tabBar, ImString label, ImGuiTabItemFlags flags, ImGuiWindowPtr dockedWindow ) { fixed (byte* label_fixed = label) { return PInvoke.TabItemEx_internal(tabBar, label_fixed, null, flags, dockedWindow); } } /// /// /// C++: /// imgui_internal.h:3801 /// , /// imgui_widgets.cpp:10262 ///
void TabItemSpacing(const char* str_id, ImGuiTabItemFlags flags, float width) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabItemSpacing(ImString strId, ImGuiTabItemFlags flags, float width) { fixed (byte* strId_fixed = strId) { PInvoke.TabItemSpacing_internal(strId_fixed, flags, width); } } /// /// /// C++: /// imgui_internal.h:3802 /// , /// imgui_widgets.cpp:10612 ///
ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) ///
///
/// /// /// Tab Bars /// /// public static unsafe float2 TabItemCalcSize(ImString label, bool hasCloseButtonOrUnsavedMarker) { fixed (byte* label_fixed = label) { return PInvoke.TabItemCalcSize_internal_0(label_fixed, hasCloseButtonOrUnsavedMarker); } } /// /// /// C++: /// imgui_internal.h:3803 /// , /// imgui_widgets.cpp:10624 ///
ImVec2 TabItemCalcSize(ImGuiWindow* window) ///
///
/// /// /// Tab Bars /// /// public static unsafe float2 TabItemCalcSize(ImGuiWindowPtr window) => PInvoke.TabItemCalcSize_internal_1(window); /// /// /// C++: /// imgui_internal.h:3804 /// , /// imgui_widgets.cpp:10629 ///
/// void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) ///
///
/// /// /// Tab Bars /// /// public static unsafe void TabItemBackground( ImDrawListPtr drawList, in floatRect bb, ImGuiTabItemFlags flags, ImColor8 col ) { fixed (floatRect* bb_fixed = &bb) { PInvoke.TabItemBackground_internal(drawList, bb_fixed, flags, col); } } /// /// /// C++: /// imgui_internal.h:3805 /// , /// imgui_widgets.cpp:10656 ///
/// void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) ///
///
/// /// /// Tab Bars /// /// /// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic /// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. /// /// public static unsafe void TabItemLabelAndCloseButton( ImDrawListPtr drawList, in floatRect bb, ImGuiTabItemFlags flags, float2 framePadding, ImString label, ImGuiID tabId, ImGuiID closeButtonId, bool isContentsVisible, out bool outJustClosed, out bool outTextClipped ) { fixed (bool* outTextClipped_fixed = &outTextClipped) { fixed (bool* outJustClosed_fixed = &outJustClosed) { fixed (byte* label_fixed = label) { fixed (floatRect* bb_fixed = &bb) { PInvoke.TabItemLabelAndCloseButton_internal( drawList, bb_fixed, flags, framePadding, label_fixed, tabId, closeButtonId, isContentsVisible, (Bool8*)outJustClosed_fixed, (Bool8*)outTextClipped_fixed ); } } } } } /// /// /// C++: /// imgui_internal.h:3810 /// , /// imgui.cpp:3769 ///
/// void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Internal ImGui functions to render text /// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() /// /// public static unsafe void RenderText(float2 pos, ImString text, bool hideTextAfterHash = true) { fixed (byte* text_fixed = text) { PInvoke.RenderText_internal(pos, text_fixed, text_fixed + text.Length, hideTextAfterHash); } } /// /// /// C++: /// imgui_internal.h:3811 /// , /// imgui.cpp:3795 ///
/// void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe void RenderTextWrapped(float2 pos, ImString text, float wrapWidth) { fixed (byte* text_fixed = text) { PInvoke.RenderTextWrapped_internal(pos, text_fixed, text_fixed + text.Length, wrapWidth); } } /// /// /// C++: /// imgui_internal.h:3812 /// , /// imgui.cpp:3844 ///
/// void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe void RenderTextClipped( in float2 posMin, in float2 posMax, ImString text, Ptr textSizeIfKnown, in float2? align = default, Ptr clipRect = default ) { var align_default = align ?? new float2(0f, 0f); fixed (byte* text_fixed = text) { fixed (float2* posMax_fixed = &posMax) { fixed (float2* posMin_fixed = &posMin) { PInvoke.RenderTextClipped_internal( posMin_fixed, posMax_fixed, text_fixed, text_fixed + text.Length, (float2*)textSizeIfKnown, &align_default, (floatRect*)clipRect ); } } } } /// /// /// C++: /// imgui_internal.h:3813 /// , /// imgui.cpp:3816 ///
/// void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Default clip_rect uses (pos_min,pos_max) /// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) /// FIXME-OPT: Since we have or calculate text_size we could coarse clip whole block immediately, especially for text above draw_list->DrawList. /// Effectively as this is called from widget doing their own coarse clipping it's not very valuable presently. Next time function will take /// better advantage of the render function taking size into account for coarse clipping. /// /// public static unsafe void RenderTextClippedEx( ImDrawListPtr drawList, in float2 posMin, in float2 posMax, ImString text, Ptr textSizeIfKnown, in float2? align = default, Ptr clipRect = default ) { var align_default = align ?? new float2(0f, 0f); fixed (byte* text_fixed = text) { fixed (float2* posMax_fixed = &posMax) { fixed (float2* posMin_fixed = &posMin) { PInvoke.RenderTextClippedEx_internal( drawList, posMin_fixed, posMax_fixed, text_fixed, text_fixed + text.Length, (float2*)textSizeIfKnown, &align_default, (floatRect*)clipRect ); } } } } /// /// /// C++: /// imgui_internal.h:3814 /// , /// imgui.cpp:3863 ///
/// void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Another overly complex function until we reorganize everything into a nice all-in-one helper. /// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) from 'ellipsis_max_x' which may be beyond it. /// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. /// (BREAKING) On 2025/04/16 we removed the 'float clip_max_x' parameters which was preceeding 'float ellipsis_max' and was the same value for 99% of users. /// /// public static unsafe void RenderTextEllipsis( ImDrawListPtr drawList, in float2 posMin, in float2 posMax, float ellipsisMaxX, ImString text, Ptr textSizeIfKnown ) { fixed (byte* text_fixed = text) { fixed (float2* posMax_fixed = &posMax) { fixed (float2* posMin_fixed = &posMin) { PInvoke.RenderTextEllipsis_internal( drawList, posMin_fixed, posMax_fixed, ellipsisMaxX, text_fixed, text_fixed + text.Length, (float2*)textSizeIfKnown ); } } } } /// /// /// C++: /// imgui_internal.h:3815 /// , /// imgui.cpp:3914 ///
/// void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool borders = true, float rounding = 0.0f) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Render a rectangle shaped with optional rounding and borders /// /// public static unsafe void RenderFrame( float2 pMin, float2 pMax, uint fillCol, bool borders = true, float rounding = 0f ) => PInvoke.RenderFrame_internal(pMin, pMax, fillCol, borders, rounding); /// /// /// C++: /// imgui_internal.h:3816 /// , /// imgui.cpp:3927 ///
void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe void RenderFrameBorder(float2 pMin, float2 pMax, float rounding = 0f) => PInvoke.RenderFrameBorder_internal(pMin, pMax, rounding); /// /// /// C++: /// imgui_internal.h:3817 /// , /// imgui_draw.cpp:5983 ///
/// void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Helper for ColorPicker4() /// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. /// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. /// FIXME: uses ImGui::GetColorU32 /// /// public static unsafe void RenderColorRectWithAlphaCheckerboard( ImDrawListPtr drawList, float2 pMin, float2 pMax, uint fillCol, float gridStep, float2 gridOff, float rounding = 0f, ImDrawFlags flags = default ) => PInvoke.RenderColorRectWithAlphaCheckerboard_internal( drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags ); /// /// /// Navigation highlight /// /// /// C++: /// imgui_internal.h:3818 /// , /// imgui.cpp:3939 ///
/// void RenderNavCursor(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe void RenderNavCursor( in floatRect bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = default ) { fixed (floatRect* bb_fixed = &bb) { PInvoke.RenderNavCursor_internal(bb_fixed, id, flags); } } /// /// /// Find the optional ## from which we stop displaying text. /// /// /// C++: /// imgui_internal.h:3822 /// , /// imgui.cpp:3756 ///
const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe Ptr FindRenderedTextEnd(ImString text) { fixed (byte* text_fixed = text) { return PInvoke.FindRenderedTextEnd_internal(text_fixed, text_fixed + text.Length); } } /// /// /// C++: /// imgui_internal.h:3823 /// , /// imgui.cpp:3973 ///
/// void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// public static unsafe void RenderMouseCursor( float2 pos, float scale, ImGuiMouseCursor mouseCursor, uint colFill, uint colBorder, uint colShadow ) => PInvoke.RenderMouseCursor_internal(pos, scale, mouseCursor, colFill, colBorder, colShadow); /// /// /// C++: /// imgui_internal.h:3826 /// , /// imgui_draw.cpp:5810 ///
/// void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// /// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be /// positioned). To e.g. denote expanded/collapsed state /// /// public static unsafe void RenderArrow( ImDrawListPtr drawList, float2 pos, ImColor8 col, ImGuiDir dir, float scale = 1f ) => PInvoke.RenderArrow_internal(drawList, pos, col, dir, scale); /// /// /// C++: /// imgui_internal.h:3827 /// , /// imgui_draw.cpp:5841 ///
void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// public static unsafe void RenderBullet(ImDrawListPtr drawList, float2 pos, ImColor8 col) => PInvoke.RenderBullet_internal(drawList, pos, col); /// /// /// C++: /// imgui_internal.h:3828 /// , /// imgui_draw.cpp:5847 ///
void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// public static unsafe void RenderCheckMark(ImDrawListPtr drawList, float2 pos, ImColor8 col, float sz) => PInvoke.RenderCheckMark_internal(drawList, pos, col, sz); /// /// /// C++: /// imgui_internal.h:3829 /// , /// imgui_draw.cpp:5863 ///
/// void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// /// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y /// is length on each side. /// /// public static unsafe void RenderArrowPointingAt( ImDrawListPtr drawList, float2 pos, float2 halfSz, ImGuiDir direction, ImColor8 col ) => PInvoke.RenderArrowPointingAt_internal(drawList, pos, halfSz, direction, col); /// /// /// C++: /// imgui_internal.h:3830 /// , /// imgui_draw.cpp:5877 ///
void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// /// This is less wide than RenderArrow() and we use in dock nodes instead of the regular RenderArrow() to denote a change of functionality, /// and because the saved space means that the left-most tab label can stay at exactly the same position as the label of a loose window. /// /// public static unsafe void RenderArrowDockMenu( ImDrawListPtr drawList, float2 pMin, float sz, ImColor8 col ) => PInvoke.RenderArrowDockMenu_internal(drawList, pMin, sz, col); /// /// /// C++: /// imgui_internal.h:3831 /// , /// imgui_draw.cpp:5892 ///
/// void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// /// FIXME: Cleanup and move code to ImDrawList. /// /// public static unsafe void RenderRectFilledRangeH( ImDrawListPtr drawList, in floatRect rect, ImColor8 col, float xStartNorm, float xEndNorm, float rounding ) { fixed (floatRect* rect_fixed = &rect) { PInvoke.RenderRectFilledRangeH_internal(drawList, rect_fixed, col, xStartNorm, xEndNorm, rounding); } } /// /// /// C++: /// imgui_internal.h:3832 /// , /// imgui_draw.cpp:5952 ///
/// void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// public static unsafe void RenderRectFilledWithHole( ImDrawListPtr drawList, in floatRect outer, in floatRect inner, ImColor8 col, float rounding ) { fixed (floatRect* inner_fixed = &inner) { fixed (floatRect* outer_fixed = &outer) { PInvoke.RenderRectFilledWithHole_internal(drawList, outer_fixed, inner_fixed, col, rounding); } } } /// /// /// C++: /// imgui_internal.h:3833 /// , /// imgui_draw.cpp:5968 ///
/// ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold) ///
///
/// /// /// Render helpers (those functions don't access any ImGui state!) /// /// public static unsafe ImDrawFlags CalcRoundingFlagsForRectInRect( in floatRect rIn, in floatRect rOuter, float threshold ) { fixed (floatRect* rOuter_fixed = &rOuter) { fixed (floatRect* rIn_fixed = &rIn) { return PInvoke.CalcRoundingFlagsForRectInRect_internal(rIn_fixed, rOuter_fixed, threshold); } } } /// /// /// C++: /// imgui_internal.h:3836 /// , /// imgui_widgets.cpp:160 ///
void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0) ///
///
/// /// /// Widgets: Text /// /// public static unsafe void TextEx(ImString text, ImGuiTextFlags flags = default) { fixed (byte* text_fixed = text) { PInvoke.TextEx_internal(text_fixed, text_fixed + text.Length, flags); } } /// /// /// FIXME-WIP: Works but API is likely to be reworked. This is designed for 1 item on the line. (#7024) /// /// /// C++: /// imgui_internal.h:3837 /// , /// imgui_widgets.cpp:342 ///
void TextAligned(float align_x, float size_x, const char* fmt, ...) ///
///
/// /// /// Widgets: Text /// /// public static unsafe void TextAligned(float alignX, float sizeX, ImString text) { fixed (byte* text_fixed = text) { PInvoke.TextAligned_internal(alignX, sizeX, text_fixed); } } /// /// /// C++: /// imgui_internal.h:3841 /// , /// imgui_widgets.cpp:767 ///
/// bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0) ///
///
/// /// /// Widgets /// /// public static unsafe bool ButtonEx( ImString label, in float2? sizeArg = default, ImGuiButtonFlags flags = default ) { var sizeArg_default = sizeArg ?? new float2(0f, 0f); fixed (byte* label_fixed = label) { return PInvoke.ButtonEx_internal(label_fixed, &sizeArg_default, flags); } } /// /// /// C++: /// imgui_internal.h:3842 /// , /// imgui_widgets.cpp:851 ///
/// bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0) ///
///
/// /// /// Widgets /// /// public static unsafe bool ArrowButtonEx( ImString strId, ImGuiDir dir, float2 sizeArg, ImGuiButtonFlags flags = default ) { fixed (byte* strId_fixed = strId) { return PInvoke.ArrowButtonEx_internal(strId_fixed, dir, sizeArg, flags); } } /// /// /// C++: /// imgui_internal.h:3843 /// , /// imgui_widgets.cpp:1156 ///
/// bool ImageButtonEx(ImGuiID id, ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags = 0) ///
///
/// /// /// Widgets /// /// public static unsafe bool ImageButtonEx( ImGuiID id, ImTextureRef texRef, in float2 imageSize, in float2 uv0, in float2 uv1, in float4 bgCol, in float4 tintCol, ImGuiButtonFlags flags = default ) { fixed (float4* tintCol_fixed = &tintCol) { fixed (float4* bgCol_fixed = &bgCol) { fixed (float2* uv1_fixed = &uv1) { fixed (float2* uv0_fixed = &uv0) { fixed (float2* imageSize_fixed = &imageSize) { return PInvoke.ImageButtonEx_internal( id, texRef, imageSize_fixed, uv0_fixed, uv1_fixed, bgCol_fixed, tintCol_fixed, flags ); } } } } } } /// /// /// C++: /// imgui_internal.h:3844 /// , /// imgui_widgets.cpp:1622 ///
void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1.0f) ///
///
/// /// /// Widgets /// /// /// Horizontal/vertical separating line /// FIXME: Surprisingly, this seemingly trivial widget is a victim of many different legacy/tricky layout issues. /// Note how thickness == 1.0f is handled specifically as not moving CursorPos by 'thickness', but other values are. /// /// public static unsafe void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1f) => PInvoke.SeparatorEx_internal(flags, thickness); /// /// /// C++: /// imgui_internal.h:3845 /// , /// imgui_widgets.cpp:1704 ///
/// void SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width) ///
///
/// /// /// Widgets /// /// public static unsafe void SeparatorTextEx(ImGuiID id, ImString label, ImString labelEnd, float extraWidth) { fixed (byte* labelEnd_fixed = labelEnd) { fixed (byte* label_fixed = label) { PInvoke.SeparatorTextEx_internal(id, label_fixed, labelEnd_fixed, extraWidth); } } } /// /// /// C++: /// imgui_internal.h:3846 /// , /// imgui_widgets.cpp:1329 ///
bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) ///
///
/// /// /// Widgets /// /// public static unsafe bool CheckboxFlags(ImString label, Ptr flags, long flagsValue) { fixed (byte* label_fixed = label) { return PInvoke.CheckboxFlags_internal_0(label_fixed, (long*)flags, flagsValue); } } /// /// /// C++: /// imgui_internal.h:3847 /// , /// imgui_widgets.cpp:1334 ///
bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) ///
///
/// /// /// Widgets /// /// public static unsafe bool CheckboxFlags(ImString label, Ptr flags, ulong flagsValue) { fixed (byte* label_fixed = label) { return PInvoke.CheckboxFlags_internal_1(label_fixed, (ulong*)flags, flagsValue); } } /// /// /// C++: /// imgui_internal.h:3850 /// , /// imgui_widgets.cpp:886 ///
bool CloseButton(ImGuiID id, const ImVec2& pos) ///
///
/// /// /// Widgets: Window Decorations /// /// /// Button to close a window /// /// public static unsafe bool CloseButton(ImGuiID id, in float2 pos) { fixed (float2* pos_fixed = &pos) { return PInvoke.CloseButton_internal(id, pos_fixed); } } /// /// /// C++: /// imgui_internal.h:3851 /// , /// imgui_widgets.cpp:924 ///
bool CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node) ///
///
/// /// /// Widgets: Window Decorations /// /// /// The Collapse button also functions as a Dock Menu button. /// /// public static unsafe bool CollapseButton(ImGuiID id, in float2 pos, ImGuiDockNodePtr dockNode) { fixed (float2* pos_fixed = &pos) { return PInvoke.CollapseButton_internal(id, pos_fixed, dockNode); } } /// /// /// C++: /// imgui_internal.h:3852 /// , /// imgui_widgets.cpp:977 ///
void Scrollbar(ImGuiAxis axis) ///
///
/// /// /// Widgets: Window Decorations /// /// public static unsafe void Scrollbar(ImGuiAxis axis) => PInvoke.Scrollbar_internal(axis); /// /// /// C++: /// imgui_internal.h:3853 /// , /// imgui_widgets.cpp:1012 ///
/// bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags draw_rounding_flags = 0) ///
///
/// /// /// Widgets: Window Decorations /// /// /// Vertical/Horizontal scrollbar /// The entire piece of code below is rather confusing because: /// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) /// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar /// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. /// Still, the code should probably be made simpler.. /// /// public static unsafe bool ScrollbarEx( in floatRect bb, ImGuiID id, ImGuiAxis axis, Ptr pScrollV, long availV, long contentsV, ImDrawFlags drawRoundingFlags = default ) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.ScrollbarEx_internal( bb_fixed, id, axis, (long*)pScrollV, availV, contentsV, drawRoundingFlags ); } } /// /// /// C++: /// imgui_internal.h:3854 /// , /// imgui_widgets.cpp:962 ///
ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) ///
///
/// /// /// Widgets: Window Decorations /// /// /// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is /// set. /// /// public static unsafe floatRect GetWindowScrollbarRect(ImGuiWindowPtr window, ImGuiAxis axis) => PInvoke.GetWindowScrollbarRect_internal(window, axis); /// /// /// C++: /// imgui_internal.h:3855 /// , /// imgui_widgets.cpp:956 ///
ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) ///
///
/// /// /// Widgets: Window Decorations /// /// public static unsafe ImGuiID GetWindowScrollbarID(ImGuiWindowPtr window, ImGuiAxis axis) => PInvoke.GetWindowScrollbarID_internal(window, axis); /// /// /// 0..3: corners /// /// /// C++: /// imgui_internal.h:3856 /// , /// imgui.cpp:6967 ///
ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n) ///
///
/// /// /// Widgets: Window Decorations /// /// /// 0..3: corners (Lower-right, Lower-left, Unused, Unused) /// /// public static unsafe ImGuiID GetWindowResizeCornerID(ImGuiWindowPtr window, int n) => PInvoke.GetWindowResizeCornerID_internal(window, n); /// /// /// C++: /// imgui_internal.h:3857 /// , /// imgui.cpp:6977 ///
ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) ///
///
/// /// /// Widgets: Window Decorations /// /// /// Borders (Left, Right, Up, Down) /// /// public static unsafe ImGuiID GetWindowResizeBorderID(ImGuiWindowPtr window, ImGuiDir dir) => PInvoke.GetWindowResizeBorderID_internal(window, dir); /// /// /// C++: /// imgui_internal.h:3860 /// , /// imgui_widgets.cpp:541 ///
/// bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0) ///
///
/// /// /// Widgets low-level behaviors /// /// /// - FIXME: For refactor we could output flags, incl mouse hovered vs nav keyboard vs nav triggered etc. /// And better standardize how widgets use 'GetColor32((held && hovered) ? ... : hovered ? ...)' vs 'GetColor32(held ? ... : hovered ? ...);' /// For mouse feedback we typically prefer the 'held && hovered' test, but for nav feedback not always. Outputting hovered=true on Activation may be misleading. /// - Since v1.91.2 (Sept 2024) we included io.ConfigDebugHighlightIdConflicts feature. /// One idiom which was previously valid which will now emit a warning is when using multiple overlaid ButtonBehavior() /// with same ID and different MouseButton (see #8030). You can fix it by: /// (1) switching to use a single ButtonBehavior() with multiple _MouseButton flags. /// or (2) surrounding those calls with PushItemFlag(ImGuiItemFlags_AllowDuplicateId, true); ... PopItemFlag() /// /// public static unsafe bool ButtonBehavior( in floatRect bb, ImGuiID id, out bool outHovered, out bool outHeld, ImGuiButtonFlags flags = default ) { fixed (bool* outHeld_fixed = &outHeld) { fixed (bool* outHovered_fixed = &outHovered) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.ButtonBehavior_internal( bb_fixed, id, (Bool8*)outHovered_fixed, (Bool8*)outHeld_fixed, flags ); } } } } /// /// /// C++: /// imgui_internal.h:3861 /// , /// imgui_widgets.cpp:2635 ///
/// bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) ///
///
/// /// /// Widgets low-level behaviors /// /// public static unsafe bool DragBehavior( ImGuiID id, ImGuiDataType dataType, Ptr pV, float vSpeed, Ptr pMin, Ptr pMax, ImString format, ImGuiSliderFlags flags ) { fixed (byte* format_fixed = format) { return PInvoke.DragBehavior_internal(id, dataType, pV, vSpeed, pMin, pMax, format_fixed, flags); } } /// /// /// C++: /// imgui_internal.h:3862 /// , /// imgui_widgets.cpp:3240 ///
/// bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) ///
///
/// /// /// Widgets low-level behaviors /// /// /// For 32-bit and larger types, slider bounds are limited to half the natural type range. /// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. /// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. /// /// public static unsafe bool SliderBehavior( in floatRect bb, ImGuiID id, ImGuiDataType dataType, Ptr pV, Ptr pMin, Ptr pMax, ImString format, ImGuiSliderFlags flags, out floatRect outGrabBb ) { fixed (floatRect* outGrabBb_fixed = &outGrabBb) { fixed (byte* format_fixed = format) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.SliderBehavior_internal( bb_fixed, id, dataType, pV, pMin, pMax, format_fixed, flags, outGrabBb_fixed ); } } } } /// /// /// C++: /// imgui_internal.h:3863 /// , /// imgui_widgets.cpp:1770 ///
/// bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0) ///
///
/// /// /// Widgets low-level behaviors /// /// /// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, /// which can be convenient to reduce visual noise. /// /// public static unsafe bool SplitterBehavior( in floatRect bb, ImGuiID id, ImGuiAxis axis, Ptr size1, Ptr size2, float minSize1, float minSize2, float hoverExtend = 0f, float hoverVisibilityDelay = 0f, uint bgCol = default ) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.SplitterBehavior_internal( bb_fixed, id, axis, (float*)size1, (float*)size2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, bgCol ); } } /// /// /// C++: /// imgui_internal.h:3866 /// , /// imgui_widgets.cpp:6644 ///
/// bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL) ///
///
/// /// /// Widgets: Tree Nodes /// /// /// When using public API, currently 'id == storage_id' is always true, but we separate the values to /// facilitate advanced user code doing storage queries outside of UI loop. /// /// public static unsafe bool TreeNodeBehavior( ImGuiID id, ImGuiTreeNodeFlags flags, ImString label, ImString labelEnd = default ) { fixed (byte* labelEnd_fixed = labelEnd) { fixed (byte* label_fixed = label) { return PInvoke.TreeNodeBehavior_internal(id, flags, label_fixed, labelEnd_fixed); } } } /// /// /// C++: /// imgui_internal.h:3867 /// , /// imgui_widgets.cpp:6927 ///
void TreeNodeDrawLineToChildNode(const ImVec2& target_pos) ///
///
/// /// /// Widgets: Tree Nodes /// /// /// Draw horizontal line from our parent node /// This is only called for visible child nodes so we are not too fussy anymore about performances /// /// public static unsafe void TreeNodeDrawLineToChildNode(in float2 targetPos) { fixed (float2* targetPos_fixed = &targetPos) { PInvoke.TreeNodeDrawLineToChildNode_internal(targetPos_fixed); } } /// /// /// C++: /// imgui_internal.h:3868 /// , /// imgui_widgets.cpp:6957 ///
void TreeNodeDrawLineToTreePop(const ImGuiTreeNodeStackData* data) ///
///
/// /// /// Widgets: Tree Nodes /// /// /// Draw vertical line of the hierarchy /// /// public static unsafe void TreeNodeDrawLineToTreePop(ImGuiTreeNodeStackDataPtr data) => PInvoke.TreeNodeDrawLineToTreePop_internal(data); /// /// /// C++: /// imgui_internal.h:3869 /// , /// imgui_widgets.cpp:6999 ///
void TreePushOverrideID(ImGuiID id) ///
///
/// /// /// Widgets: Tree Nodes /// /// public static unsafe void TreePushOverrideID(ImGuiID id) => PInvoke.TreePushOverrideID_internal(id); /// /// /// C++: /// imgui_internal.h:3870 /// , /// imgui_widgets.cpp:6559 ///
bool TreeNodeGetOpen(ImGuiID storage_id) ///
///
/// /// /// Widgets: Tree Nodes /// /// public static unsafe bool TreeNodeGetOpen(ImGuiID storageId) => PInvoke.TreeNodeGetOpen_internal(storageId); /// /// /// C++: /// imgui_internal.h:3871 /// , /// imgui_widgets.cpp:6566 ///
void TreeNodeSetOpen(ImGuiID storage_id, bool open) ///
///
/// /// /// Widgets: Tree Nodes /// /// public static unsafe void TreeNodeSetOpen(ImGuiID storageId, bool open) => PInvoke.TreeNodeSetOpen_internal(storageId, open); /// /// /// Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. /// /// /// C++: /// imgui_internal.h:3872 /// , /// imgui_widgets.cpp:6573 ///
bool TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags) ///
///
/// /// /// Widgets: Tree Nodes /// /// public static unsafe bool TreeNodeUpdateNextOpen(ImGuiID storageId, ImGuiTreeNodeFlags flags) => PInvoke.TreeNodeUpdateNextOpen_internal(storageId, flags); /// /// /// C++: /// imgui_internal.h:3885 /// , /// imgui_widgets.cpp:2258 ///
const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type) ///
///
/// /// /// Data type helpers /// /// public static unsafe ImGuiDataTypeInfoPtr DataTypeGetInfo(ImGuiDataType dataType) => PInvoke.DataTypeGetInfo_internal(dataType); /// /// /// C++: /// imgui_internal.h:3886 /// , /// imgui_widgets.cpp:2264 ///
/// int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) ///
///
/// /// /// Data type helpers /// /// public static unsafe int DataTypeFormatString( ReadOnlySpan buf, int bufSize, ImGuiDataType dataType, Ptr pData, ImString format ) { fixed (byte* format_fixed = format) { fixed (byte* buf_fixed = buf) { return PInvoke.DataTypeFormatString_internal(buf_fixed, bufSize, dataType, pData, format_fixed); } } } /// /// /// C++: /// imgui_internal.h:3887 /// , /// imgui_widgets.cpp:2287 ///
/// void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2) ///
///
/// /// /// Data type helpers /// /// public static unsafe void DataTypeApplyOp(ImGuiDataType dataType, int op, Ptr output, Ptr arg1, Ptr arg2) => PInvoke.DataTypeApplyOp_internal(dataType, op, output, arg1, arg2); /// /// /// C++: /// imgui_internal.h:3888 /// , /// imgui_widgets.cpp:2339 ///
/// bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format, void* p_data_when_empty = NULL) ///
///
/// /// /// Data type helpers /// /// /// User can input math operators (e.g. +100) to edit a numerical values. /// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. /// /// public static unsafe bool DataTypeApplyFromText( ReadOnlySpan buf, ImGuiDataType dataType, Ptr pData, ImString format, Ptr pDataWhenEmpty = default ) { fixed (byte* format_fixed = format) { fixed (byte* buf_fixed = buf) { return PInvoke.DataTypeApplyFromText_internal( buf_fixed, dataType, pData, format_fixed, pDataWhenEmpty ); } } } /// /// /// C++: /// imgui_internal.h:3889 /// , /// imgui_widgets.cpp:2396 ///
int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) ///
///
/// /// /// Data type helpers /// /// public static unsafe int DataTypeCompare(ImGuiDataType dataType, Ptr arg1, Ptr arg2) => PInvoke.DataTypeCompare_internal(dataType, arg1, arg2); /// /// /// C++: /// imgui_internal.h:3890 /// , /// imgui_widgets.cpp:2425 ///
/// bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) ///
///
/// /// /// Data type helpers /// /// public static unsafe bool DataTypeClamp(ImGuiDataType dataType, Ptr pData, Ptr pMin, Ptr pMax) => PInvoke.DataTypeClamp_internal(dataType, pData, pMin, pMax); /// /// /// C++: /// imgui_internal.h:3891 /// , /// imgui_widgets.cpp:2445 ///
bool DataTypeIsZero(ImGuiDataType data_type, const void* p_data) ///
///
/// /// /// Data type helpers /// /// public static unsafe bool DataTypeIsZero(ImGuiDataType dataType, Ptr pData) => PInvoke.DataTypeIsZero_internal(dataType, pData); /// /// /// C++: /// imgui_internal.h:3894 /// , /// imgui_widgets.cpp:4522 ///
/// bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL) ///
///
/// /// /// InputText /// /// /// Edit a string of text /// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". /// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match /// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. /// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. /// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h /// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are /// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) /// /// public static unsafe bool InputTextEx( ImString label, ImString hint, ReadOnlySpan buf, int bufSize, in float2 sizeArg, ImGuiInputTextFlags flags, ImGuiInputTextCallback? callback = default, Ptr userData = default ) { fixed (float2* sizeArg_fixed = &sizeArg) { fixed (byte* buf_fixed = buf) { fixed (byte* hint_fixed = hint) { fixed (byte* label_fixed = label) { return PInvoke.InputTextEx_internal( label_fixed, hint_fixed, buf_fixed, bufSize, sizeArg_fixed, flags, callback == null ? 0 : Marshal.GetFunctionPointerForDelegate(callback), userData ); } } } } } /// /// /// C++: /// imgui_internal.h:3894 /// , /// imgui_widgets.cpp:4522 ///
/// bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL) ///
///
/// /// /// InputText /// /// /// Edit a string of text /// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". /// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match /// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. /// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. /// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h /// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are /// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) /// /// public static unsafe bool InputTextEx( ImString label, ImString hint, ReadOnlySpan buf, int bufSize, in float2 sizeArg, ImGuiInputTextFlags flags, delegate* unmanaged[Cdecl] callback, Ptr userData = default ) { fixed (float2* sizeArg_fixed = &sizeArg) { fixed (byte* buf_fixed = buf) { fixed (byte* hint_fixed = hint) { fixed (byte* label_fixed = label) { return PInvoke.InputTextEx_internal( label_fixed, hint_fixed, buf_fixed, bufSize, sizeArg_fixed, flags, (nint)callback, userData ); } } } } } /// /// /// C++: /// imgui_internal.h:3895 /// , /// imgui_widgets.cpp:4494 ///
void InputTextDeactivateHook(ImGuiID id) ///
///
/// /// /// InputText /// /// /// As InputText() retain textual data and we currently provide a path for user to not retain it (via local variables) /// we need some form of hook to reapply data back to user buffer on deactivation frame. (#4714) /// It would be more desirable that we discourage users from taking advantage of the "user not retaining data" trick, /// but that more likely be attractive when we do have _NoLiveEdit flag available. /// /// public static unsafe void InputTextDeactivateHook(ImGuiID id) => PInvoke.InputTextDeactivateHook_internal(id); /// /// /// C++: /// imgui_internal.h:3896 /// , /// imgui_widgets.cpp:3671 ///
/// bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) ///
///
/// /// /// InputText /// /// /// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) /// FIXME: Facilitate using this in variety of other situations. /// FIXME: Among other things, setting ImGuiItemFlags_AllowDuplicateId in LastItemData is currently correct but /// the expected relationship between TempInputXXX functions and LastItemData is a little fishy. /// /// public static unsafe bool TempInputText( in floatRect bb, ImGuiID id, ImString label, ReadOnlySpan buf, int bufSize, ImGuiInputTextFlags flags ) { fixed (byte* buf_fixed = buf) { fixed (byte* label_fixed = label) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.TempInputText_internal(bb_fixed, id, label_fixed, buf_fixed, bufSize, flags); } } } } /// /// /// C++: /// imgui_internal.h:3897 /// , /// imgui_widgets.cpp:3695 ///
/// bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL) ///
///
/// /// /// InputText /// /// /// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! /// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. /// However this may not be ideal for all uses, as some user code may break on out of bound values. /// /// public static unsafe bool TempInputScalar( in floatRect bb, ImGuiID id, ImString label, ImGuiDataType dataType, Ptr pData, ImString format, Ptr pClampMin = default, Ptr pClampMax = default ) { fixed (byte* format_fixed = format) { fixed (byte* label_fixed = label) { fixed (floatRect* bb_fixed = &bb) { return PInvoke.TempInputScalar_internal( bb_fixed, id, label_fixed, dataType, pData, format_fixed, pClampMin, pClampMax ); } } } } /// /// /// C++: /// imgui_internal.h:3898 ///
inline bool TempInputIsActive(ImGuiID id) ///
///
/// /// /// InputText /// /// public static unsafe bool TempInputIsActive(ImGuiID id) => PInvoke.TempInputIsActive_internal(id); /// /// /// Get input text state if active /// /// /// C++: /// imgui_internal.h:3899 ///
inline ImGuiInputTextState* GetInputTextState(ImGuiID id) ///
///
/// /// /// InputText /// /// public static unsafe ImGuiInputTextStatePtr GetInputTextState(ImGuiID id) => PInvoke.GetInputTextState_internal(id); /// /// /// C++: /// imgui_internal.h:3900 /// , /// imgui_widgets.cpp:3737 ///
void SetNextItemRefVal(ImGuiDataType data_type, void* p_data) ///
///
/// /// /// InputText /// /// public static unsafe void SetNextItemRefVal(ImGuiDataType dataType, Ptr pData) => PInvoke.SetNextItemRefVal_internal(dataType, pData); /// /// /// This may be useful to apply workaround that a based on distinguish whenever an item is active as a /// text input field. /// /// /// C++: /// imgui_internal.h:3901 ///
inline bool IsItemActiveAsInputText() ///
///
/// /// /// InputText /// /// public static unsafe bool IsItemActiveAsInputText() => PInvoke.IsItemActiveAsInputText_internal(); /// /// /// C++: /// imgui_internal.h:3904 /// , /// imgui_widgets.cpp:6324 ///
void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) ///
///
/// /// /// Color /// /// /// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. /// /// public static unsafe void ColorTooltip(ImString text, Ptr col, ImGuiColorEditFlags flags) { fixed (byte* text_fixed = text) { PInvoke.ColorTooltip_internal(text_fixed, (float*)col, flags); } } /// /// /// C++: /// imgui_internal.h:3905 /// , /// imgui_widgets.cpp:6360 ///
void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) ///
///
/// /// /// Color /// /// public static unsafe void ColorEditOptionsPopup(Ptr col, ImGuiColorEditFlags flags) => PInvoke.ColorEditOptionsPopup_internal((float*)col, flags); /// /// /// C++: /// imgui_internal.h:3906 /// , /// imgui_widgets.cpp:6414 ///
void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) ///
///
/// /// /// Color /// /// public static unsafe void ColorPickerOptionsPopup(Ptr refCol, ImGuiColorEditFlags flags) => PInvoke.ColorPickerOptionsPopup_internal((float*)refCol, flags); /// /// /// C++: /// imgui_internal.h:3909 /// , /// imgui_widgets.cpp:8573 ///
/// int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg) ///
///
/// /// /// Plot /// /// public static unsafe int PlotEx( ImGuiPlotType plotType, ImString label, nint valuesGetter, Ptr data, int valuesCount, int valuesOffset, ImString overlayText, float scaleMin, float scaleMax, in float2 sizeArg ) { fixed (float2* sizeArg_fixed = &sizeArg) { fixed (byte* overlayText_fixed = overlayText) { fixed (byte* label_fixed = label) { return PInvoke.PlotEx_internal( plotType, label_fixed, valuesGetter, data, valuesCount, valuesOffset, overlayText_fixed, scaleMin, scaleMax, sizeArg_fixed ); } } } } /// /// /// C++: /// imgui_internal.h:3912 /// , /// imgui_draw.cpp:2349 ///
/// void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) ///
///
/// /// /// Shade functions (write over already created vertices) /// /// /// Generic linear color gradient, write to RGB fields, leave A untouched. /// /// public static unsafe void ShadeVertsLinearColorGradientKeepAlpha( ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, float2 gradientP0, float2 gradientP1, uint col0, uint col1 ) => PInvoke.ShadeVertsLinearColorGradientKeepAlpha_internal( drawList, vertStartIdx, vertEndIdx, gradientP0, gradientP1, col0, col1 ); /// /// /// C++: /// imgui_internal.h:3913 /// , /// imgui_draw.cpp:2373 ///
/// void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) ///
///
/// /// /// Shade functions (write over already created vertices) /// /// /// Distribute UV over (a, b) rectangle /// /// public static unsafe void ShadeVertsLinearUV( ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, in float2 a, in float2 b, in float2 uvA, in float2 uvB, bool clamp ) { fixed (float2* uvB_fixed = &uvB) { fixed (float2* uvA_fixed = &uvA) { fixed (float2* b_fixed = &b) { fixed (float2* a_fixed = &a) { PInvoke.ShadeVertsLinearUV_internal( drawList, vertStartIdx, vertEndIdx, a_fixed, b_fixed, uvA_fixed, uvB_fixed, clamp ); } } } } } /// /// /// C++: /// imgui_internal.h:3914 /// , /// imgui_draw.cpp:2397 ///
/// void ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out) ///
///
/// /// /// Shade functions (write over already created vertices) /// /// public static unsafe void ShadeVertsTransformPos( ImDrawListPtr drawList, int vertStartIdx, int vertEndIdx, in float2 pivotIn, float cosA, float sinA, in float2 pivotOut ) { fixed (float2* pivotOut_fixed = &pivotOut) { fixed (float2* pivotIn_fixed = &pivotIn) { PInvoke.ShadeVertsTransformPos_internal( drawList, vertStartIdx, vertEndIdx, pivotIn_fixed, cosA, sinA, pivotOut_fixed ); } } } /// /// /// C++: /// imgui_internal.h:3917 /// , /// imgui.cpp:4573 ///
void GcCompactTransientMiscBuffers() ///
///
/// /// /// Garbage collection /// /// public static unsafe void GcCompactTransientMiscBuffers() => PInvoke.GcCompactTransientMiscBuffers_internal(); /// /// /// C++: /// imgui_internal.h:3918 /// , /// imgui.cpp:4589 ///
void GcCompactTransientWindowBuffers(ImGuiWindow* window) ///
///
/// /// /// Garbage collection /// /// /// Free up/compact internal window buffers, we can use this when a window becomes unused. /// Not freed: /// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) /// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. /// /// public static unsafe void GcCompactTransientWindowBuffers(ImGuiWindowPtr window) => PInvoke.GcCompactTransientWindowBuffers_internal(window); /// /// /// C++: /// imgui_internal.h:3919 /// , /// imgui.cpp:4601 ///
void GcAwakeTransientWindowBuffers(ImGuiWindow* window) ///
///
/// /// /// Garbage collection /// /// public static unsafe void GcAwakeTransientWindowBuffers(ImGuiWindowPtr window) => PInvoke.GcAwakeTransientWindowBuffers_internal(window); /// /// /// C++: /// imgui_internal.h:3922 /// , /// imgui.cpp:11512 ///
bool ErrorLog(const char* msg) ///
///
/// /// /// Error handling, State Recovery /// /// public static unsafe bool ErrorLog(ImString msg) { fixed (byte* msg_fixed = msg) { return PInvoke.ErrorLog_internal(msg_fixed); } } /// /// /// C++: /// imgui_internal.h:3923 /// , /// imgui.cpp:11371 ///
void ErrorRecoveryStoreState(ImGuiErrorRecoveryState* state_out) ///
///
/// /// /// Error handling, State Recovery /// /// /// Save current stack sizes. Called e.g. by NewFrame() and by Begin() but may be called for manual /// recovery. /// /// public static unsafe void ErrorRecoveryStoreState(ImGuiErrorRecoveryStatePtr stateOut) => PInvoke.ErrorRecoveryStoreState_internal(stateOut); /// /// /// C++: /// imgui_internal.h:3924 /// , /// imgui.cpp:11390 ///
void ErrorRecoveryTryToRecoverState(const ImGuiErrorRecoveryState* state_in) ///
///
/// /// /// Error handling, State Recovery /// /// /// Chosen name "Try to recover" over e.g. "Restore" to suggest this is not a 100% guaranteed recovery. /// Called by e.g. EndFrame() but may be called for manual recovery. /// Attempt to recover full window stack. /// /// public static unsafe void ErrorRecoveryTryToRecoverState(ImGuiErrorRecoveryStatePtr stateIn) => PInvoke.ErrorRecoveryTryToRecoverState_internal(stateIn); /// /// /// C++: /// imgui_internal.h:3925 /// , /// imgui.cpp:11428 ///
void ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryState* state_in) ///
///
/// /// /// Error handling, State Recovery /// /// /// Called by e.g. End() but may be called for manual recovery. /// Read '// Error Handling [BETA]' block in imgui_internal.h for details. /// Attempt to recover from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. /// /// public static unsafe void ErrorRecoveryTryToRecoverWindowState(ImGuiErrorRecoveryStatePtr stateIn) => PInvoke.ErrorRecoveryTryToRecoverWindowState_internal(stateIn); /// /// /// C++: /// imgui_internal.h:3926 /// , /// imgui.cpp:11224 ///
void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() ///
///
/// /// /// Error handling, State Recovery /// /// /// Advanced: /// - For reference, old logic was causing issues because it meant that SetCursorScreenPos(GetCursorScreenPos()) /// had a side-effect on layout! In particular this caused problem to compute group boundaries. /// e.g. BeginGroup() + SomeItem() + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() would cause the /// group to be taller because auto-sizing generally adds padding on bottom and right side. /// - While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. /// Using vertical alignment patterns would frequently trigger this sorts of issue. /// - See https://github.com/ocornut/imgui/issues/5548 for more details. /// /// public static unsafe void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() => PInvoke.ErrorCheckUsingSetCursorPosToExtendParentBoundaries_internal(); /// /// /// C++: /// imgui_internal.h:3927 /// , /// imgui.cpp:11557 ///
void ErrorCheckEndFrameFinalizeErrorTooltip() ///
///
/// /// /// Error handling, State Recovery /// /// public static unsafe void ErrorCheckEndFrameFinalizeErrorTooltip() => PInvoke.ErrorCheckEndFrameFinalizeErrorTooltip_internal(); /// /// /// C++: /// imgui_internal.h:3928 /// , /// imgui.cpp:11610 ///
bool BeginErrorTooltip() ///
///
/// /// /// Error handling, State Recovery /// /// /// Pseudo-tooltip. Follow mouse until CTRL is held. When CTRL is held we lock position, allowing to /// click it. /// /// public static unsafe bool BeginErrorTooltip() => PInvoke.BeginErrorTooltip_internal(); /// /// /// C++: /// imgui_internal.h:3929 /// , /// imgui.cpp:11634 ///
void EndErrorTooltip() ///
///
/// /// /// Error handling, State Recovery /// /// public static unsafe void EndErrorTooltip() => PInvoke.EndErrorTooltip_internal(); /// /// /// size >= 0 : alloc, size = -1 : free /// /// /// C++: /// imgui_internal.h:3932 /// , /// imgui.cpp:5040 ///
void DebugAllocHook(ImGuiDebugAllocInfo* info, int frame_count, void* ptr, size_t size) ///
///
/// /// /// Debug Tools /// /// /// We record the number of allocation in recent frames, as a way to audit/sanitize our guiding /// principles of "no allocations on idle/repeating frames" /// /// public static unsafe void DebugAllocHook( ImGuiDebugAllocInfoPtr info, int frameCount, Ptr ptr, nuint size ) => PInvoke.DebugAllocHook_internal(info, frameCount, ptr, size); /// /// /// C++: /// imgui_internal.h:3933 /// , /// imgui.cpp:23364 ///
void DebugDrawCursorPos(ImU32 col = IM_COL32(255, 0, 0, 255)) ///
///
/// /// /// Debug Tools /// /// /// Draw a small cross at current CursorPos in current window's DrawList /// /// public static unsafe void DebugDrawCursorPos(ImColor8? col = default) { var col_default = col ?? 4278190335; PInvoke.DebugDrawCursorPos_internal(col_default); } /// /// /// C++: /// imgui_internal.h:3934 /// , /// imgui.cpp:23374 ///
void DebugDrawLineExtents(ImU32 col = IM_COL32(255, 0, 0, 255)) ///
///
/// /// /// Debug Tools /// /// /// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList /// /// public static unsafe void DebugDrawLineExtents(ImColor8? col = default) { var col_default = col ?? 4278190335; PInvoke.DebugDrawLineExtents_internal(col_default); } /// /// /// C++: /// imgui_internal.h:3935 /// , /// imgui.cpp:23387 ///
void DebugDrawItemRect(ImU32 col = IM_COL32(255, 0, 0, 255)) ///
///
/// /// /// Debug Tools /// /// /// Draw last item rect in ForegroundDrawList (so it is always visible) /// /// public static unsafe void DebugDrawItemRect(ImColor8? col = default) { var col_default = col ?? 4278190335; PInvoke.DebugDrawItemRect_internal(col_default); } /// /// /// C++: /// imgui_internal.h:3936 /// , /// imgui.cpp:23338 ///
void DebugTextUnformattedWithLocateItem(const char* line_begin, const char* line_end) ///
///
/// /// /// Debug Tools /// /// /// Display line, search for 0xXXXXXXXX identifiers and call DebugLocateItemOnHover() when hovered. /// /// public static unsafe void DebugTextUnformattedWithLocateItem(ImString lineBegin, ImString lineEnd) { fixed (byte* lineEnd_fixed = lineEnd) { fixed (byte* lineBegin_fixed = lineBegin) { PInvoke.DebugTextUnformattedWithLocateItem_internal(lineBegin_fixed, lineEnd_fixed); } } } /// /// /// Call sparingly: only 1 at the same time! /// /// /// C++: /// imgui_internal.h:3937 /// , /// imgui.cpp:23397 ///
void DebugLocateItem(ImGuiID target_id) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugLocateItem(ImGuiID targetId) => PInvoke.DebugLocateItem_internal(targetId); /// /// /// Only call on reaction to a mouse Hover: because only 1 at the same time! /// /// /// C++: /// imgui_internal.h:3938 /// , /// imgui.cpp:23406 ///
void DebugLocateItemOnHover(ImGuiID target_id) ///
///
/// /// /// Debug Tools /// /// /// FIXME: Doesn't work over through a modal window, because they clear HoveredWindow. /// /// public static unsafe void DebugLocateItemOnHover(ImGuiID targetId) => PInvoke.DebugLocateItemOnHover_internal(targetId); /// /// /// C++: /// imgui_internal.h:3939 /// , /// imgui.cpp:23423 ///
void DebugLocateItemResolveWithLastItem() ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugLocateItemResolveWithLastItem() => PInvoke.DebugLocateItemResolveWithLastItem_internal(); /// /// /// C++: /// imgui_internal.h:3940 /// , /// imgui.cpp:22467 ///
void DebugBreakClearData() ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugBreakClearData() => PInvoke.DebugBreakClearData_internal(); /// /// /// C++: /// imgui_internal.h:3941 /// , /// imgui.cpp:22490 ///
bool DebugBreakButton(const char* label, const char* description_of_location) ///
///
/// /// /// Debug Tools /// /// /// Special button that doesn't take focus, doesn't take input owner, and can be activated without a click etc. /// In order to reduce interferences with the contents we are trying to debug into. /// /// public static unsafe bool DebugBreakButton(ImString label, ImString descriptionOfLocation) { fixed (byte* descriptionOfLocation_fixed = descriptionOfLocation) { fixed (byte* label_fixed = label) { return PInvoke.DebugBreakButton_internal(label_fixed, descriptionOfLocation_fixed); } } } /// /// /// C++: /// imgui_internal.h:3942 /// , /// imgui.cpp:22476 ///
void DebugBreakButtonTooltip(bool keyboard_only, const char* description_of_location) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugBreakButtonTooltip(bool keyboardOnly, ImString descriptionOfLocation) { fixed (byte* descriptionOfLocation_fixed = descriptionOfLocation) { PInvoke.DebugBreakButtonTooltip_internal(keyboardOnly, descriptionOfLocation_fixed); } } /// /// /// C++: /// imgui_internal.h:3943 /// , /// imgui.cpp:21599 ///
void ShowFontAtlas(ImFontAtlas* atlas) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] List fonts in a font atlas and display its texture /// /// public static unsafe void ShowFontAtlas(ImFontAtlasPtr atlas) => PInvoke.ShowFontAtlas_internal(atlas); /// /// /// C++: /// imgui_internal.h:3944 /// , /// imgui.cpp:23523 ///
/// void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] ID Stack tool: hooks called by GetID() family functions /// /// public static unsafe void DebugHookIdInfo(ImGuiID id, ImGuiDataType dataType, Ptr dataId, Ptr dataIdEnd) => PInvoke.DebugHookIdInfo_internal(id, dataType, dataId, dataIdEnd); /// /// /// C++: /// imgui_internal.h:3945 /// , /// imgui.cpp:22526 ///
void DebugNodeColumns(ImGuiOldColumns* columns) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display contents of Columns /// /// public static unsafe void DebugNodeColumns(ImGuiOldColumnsPtr columns) => PInvoke.DebugNodeColumns_internal(columns); /// /// /// C++: /// imgui_internal.h:3946 /// , /// imgui.cpp:22566 ///
void DebugNodeDockNode(ImGuiDockNode* node, const char* label) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display contents of ImDockNode /// /// public static unsafe void DebugNodeDockNode(ImGuiDockNodePtr node, ImString label) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeDockNode_internal(node, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3947 /// , /// imgui.cpp:22625 ///
/// void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display contents of ImDrawList /// Note that both 'window' and 'viewport' may be NULL here. Viewport is generally null of destroyed popups which previously owned a viewport. /// /// public static unsafe void DebugNodeDrawList( ImGuiWindowPtr window, ImGuiViewportPPtr viewport, ImDrawListPtr drawList, ImString label ) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeDrawList_internal(window, viewport, drawList, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3948 /// , /// imgui.cpp:22720 ///
/// void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display mesh/aabb of a ImDrawCmd /// /// public static unsafe void DebugNodeDrawCmdShowMeshAndBoundingBox( out ImDrawList outDrawList, ImDrawListPtr drawList, ImDrawCmdPtr drawCmd, bool showMesh, bool showAabb ) { fixed (ImDrawList* outDrawList_fixed = &outDrawList) { PInvoke.DebugNodeDrawCmdShowMeshAndBoundingBox_internal( outDrawList_fixed, drawList, drawCmd, showMesh, showAabb ); } } /// /// /// C++: /// imgui_internal.h:3949 /// , /// imgui.cpp:22765 ///
void DebugNodeFont(ImFont* font) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display details for a single font, called by ShowStyleEditor(). /// /// public static unsafe void DebugNodeFont(ImFontPtr font) => PInvoke.DebugNodeFont_internal(font); /// /// /// C++: /// imgui_internal.h:3950 /// , /// imgui.cpp:22914 ///
void DebugNodeFontGlyphesForSrcMask(ImFont* font, ImFontBaked* baked, int src_mask) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeFontGlyphesForSrcMask( ImFontPtr font, ImFontBakedPtr baked, int srcMask ) => PInvoke.DebugNodeFontGlyphesForSrcMask_internal(font, baked, srcMask); /// /// /// C++: /// imgui_internal.h:3951 /// , /// imgui.cpp:22965 ///
void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeFontGlyph(ImFontPtr font, ImFontGlyphPtr glyph) => PInvoke.DebugNodeFontGlyph_internal(font, glyph); /// /// /// ID used to facilitate persisting the "current" texture. /// /// /// C++: /// imgui_internal.h:3952 /// , /// imgui.cpp:21752 ///
/// void DebugNodeTexture(ImTextureData* tex, int int_id, const ImFontAtlasRect* highlight_rect = NULL) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeTexture( ImTextureDataPtr tex, int intId, ImFontAtlasRectPtr highlightRect = default ) => PInvoke.DebugNodeTexture_internal(tex, intId, highlightRect); /// /// /// C++: /// imgui_internal.h:3953 /// , /// imgui.cpp:22982 ///
void DebugNodeStorage(ImGuiStorage* storage, const char* label) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display contents of ImGuiStorage /// /// public static unsafe void DebugNodeStorage(ImGuiStoragePtr storage, ImString label) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeStorage_internal(storage, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3954 /// , /// imgui.cpp:22995 ///
void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) ///
///
/// /// /// Debug Tools /// /// /// [DEBUG] Display contents of ImGuiTabBar /// /// public static unsafe void DebugNodeTabBar(ImGuiTabBarPtr tabBar, ImString label) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeTabBar_internal(tabBar, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3955 /// , /// imgui_tables.cpp:4016 ///
void DebugNodeTable(ImGuiTable* table) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeTable(ImGuiTablePtr table) => PInvoke.DebugNodeTable_internal(table); /// /// /// C++: /// imgui_internal.h:3956 /// , /// imgui_tables.cpp:4090 ///
void DebugNodeTableSettings(ImGuiTableSettings* settings) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeTableSettings(ImGuiTableSettingsPtr settings) => PInvoke.DebugNodeTableSettings_internal(settings); /// /// /// C++: /// imgui_internal.h:3957 /// , /// imgui_widgets.cpp:5489 ///
void DebugNodeInputTextState(ImGuiInputTextState* state) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeInputTextState(ImGuiInputTextStatePtr state) => PInvoke.DebugNodeInputTextState_internal(state); /// /// /// C++: /// imgui_internal.h:3958 /// , /// imgui_widgets.cpp:7497 ///
void DebugNodeTypingSelectState(ImGuiTypingSelectState* state) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeTypingSelectState(ImGuiTypingSelectStatePtr state) => PInvoke.DebugNodeTypingSelectState_internal(state); /// /// /// C++: /// imgui_internal.h:3959 /// , /// imgui_widgets.cpp:8232 ///
void DebugNodeMultiSelectState(ImGuiMultiSelectState* state) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeMultiSelectState(ImGuiMultiSelectStatePtr state) => PInvoke.DebugNodeMultiSelectState_internal(state); /// /// /// C++: /// imgui_internal.h:3960 /// , /// imgui.cpp:23080 ///
void DebugNodeWindow(ImGuiWindow* window, const char* label) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeWindow(ImGuiWindowPtr window, ImString label) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeWindow_internal(window, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3961 /// , /// imgui.cpp:23157 ///
void DebugNodeWindowSettings(ImGuiWindowSettings* settings) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeWindowSettings(ImGuiWindowSettingsPtr settings) => PInvoke.DebugNodeWindowSettings_internal(settings); /// /// /// C++: /// imgui_internal.h:3962 /// , /// imgui.cpp:23167 ///
void DebugNodeWindowsList(ImVector<ImGuiWindow*>* windows, const char* label) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeWindowsList(Ptr> windows, ImString label) { fixed (byte* label_fixed = label) { PInvoke.DebugNodeWindowsList_internal((ImVector*)windows, label_fixed); } } /// /// /// C++: /// imgui_internal.h:3963 /// , /// imgui.cpp:23181 ///
/// void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) ///
///
/// /// /// Debug Tools /// /// /// FIXME-OPT: This is technically suboptimal, but it is simpler this way. /// /// public static unsafe void DebugNodeWindowsListByBeginStackParent( Ptr windows, int windowsSize, ImGuiWindowPtr parentInBeginStack ) => PInvoke.DebugNodeWindowsListByBeginStackParent_internal( (ImGuiWindow**)windows, windowsSize, parentInBeginStack ); /// /// /// C++: /// imgui_internal.h:3964 /// , /// imgui.cpp:23035 ///
void DebugNodeViewport(ImGuiViewportP* viewport) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodeViewport(ImGuiViewportPPtr viewport) => PInvoke.DebugNodeViewport_internal(viewport); /// /// /// C++: /// imgui_internal.h:3965 /// , /// imgui.cpp:23072 ///
void DebugNodePlatformMonitor(ImGuiPlatformMonitor* monitor, const char* label, int idx) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugNodePlatformMonitor(ImGuiPlatformMonitorPtr monitor, ImString label, int idx) { fixed (byte* label_fixed = label) { PInvoke.DebugNodePlatformMonitor_internal(monitor, label_fixed, idx); } } /// /// /// C++: /// imgui_internal.h:3966 /// , /// imgui.cpp:21459 ///
void DebugRenderKeyboardPreview(ImDrawList* draw_list) ///
///
/// /// /// Debug Tools /// /// /// Draw an arbitrary US keyboard layout to visualize translated keys /// /// public static unsafe void DebugRenderKeyboardPreview(ImDrawListPtr drawList) => PInvoke.DebugRenderKeyboardPreview_internal(drawList); /// /// /// C++: /// imgui_internal.h:3967 /// , /// imgui.cpp:21390 ///
/// void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) ///
///
/// /// /// Debug Tools /// /// public static unsafe void DebugRenderViewportThumbnail( ImDrawListPtr drawList, ImGuiViewportPPtr viewport, in floatRect bb ) { fixed (floatRect* bb_fixed = &bb) { PInvoke.DebugRenderViewportThumbnail_internal(drawList, viewport, bb_fixed); } } /// /// /// C++: /// imgui_internal.h:579 ///
ImVec2 GetCenter() const ///
///
public static unsafe float2 GetCenter(Ptr target) => PInvoke.ImRect_GetCenter_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:580 ///
ImVec2 GetSize() const ///
///
public static unsafe float2 GetSize(Ptr target) => PInvoke.ImRect_GetSize_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:581 ///
float GetWidth() const ///
///
public static unsafe float GetWidth(Ptr target) => PInvoke.ImRect_GetWidth_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:582 ///
float GetHeight() const ///
///
public static unsafe float GetHeight(Ptr target) => PInvoke.ImRect_GetHeight_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:583 ///
float GetArea() const ///
///
public static unsafe float GetArea(Ptr target) => PInvoke.ImRect_GetArea_internal((floatRect*)target); /// /// /// Top-left /// /// /// C++: /// imgui_internal.h:584 ///
ImVec2 GetTL() const ///
///
public static unsafe float2 GetTL(Ptr target) => PInvoke.ImRect_GetTL_internal((floatRect*)target); /// /// /// Top-right /// /// /// C++: /// imgui_internal.h:585 ///
ImVec2 GetTR() const ///
///
public static unsafe float2 GetTR(Ptr target) => PInvoke.ImRect_GetTR_internal((floatRect*)target); /// /// /// Bottom-left /// /// /// C++: /// imgui_internal.h:586 ///
ImVec2 GetBL() const ///
///
public static unsafe float2 GetBL(Ptr target) => PInvoke.ImRect_GetBL_internal((floatRect*)target); /// /// /// Bottom-right /// /// /// C++: /// imgui_internal.h:587 ///
ImVec2 GetBR() const ///
///
public static unsafe float2 GetBR(Ptr target) => PInvoke.ImRect_GetBR_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:588 ///
bool Contains(const ImVec2& p) const ///
///
public static unsafe bool Contains(Ptr target, in float2 p) { fixed (float2* p_fixed = &p) { return PInvoke.ImRect_Contains_internal_0((floatRect*)target, p_fixed); } } /// /// /// C++: /// imgui_internal.h:589 ///
bool Contains(const ImRect& r) const ///
///
public static unsafe bool Contains(Ptr target, in floatRect r) { fixed (floatRect* r_fixed = &r) { return PInvoke.ImRect_Contains_internal_1((floatRect*)target, r_fixed); } } /// /// /// C++: /// imgui_internal.h:590 ///
bool ContainsWithPad(const ImVec2& p, const ImVec2& pad) const ///
///
public static unsafe bool ContainsWithPad(Ptr target, in float2 p, in float2 pad) { fixed (float2* pad_fixed = &pad) { fixed (float2* p_fixed = &p) { return PInvoke.ImRect_ContainsWithPad_internal((floatRect*)target, p_fixed, pad_fixed); } } } /// /// /// C++: /// imgui_internal.h:591 ///
bool Overlaps(const ImRect& r) const ///
///
public static unsafe bool Overlaps(Ptr target, in floatRect r) { fixed (floatRect* r_fixed = &r) { return PInvoke.ImRect_Overlaps_internal((floatRect*)target, r_fixed); } } /// /// /// C++: /// imgui_internal.h:592 ///
void Add(const ImVec2& p) ///
///
public static unsafe void Add(Ptr target, in float2 p) { fixed (float2* p_fixed = &p) { PInvoke.ImRect_Add_internal_0((floatRect*)target, p_fixed); } } /// /// /// C++: /// imgui_internal.h:593 ///
void Add(const ImRect& r) ///
///
public static unsafe void Add(Ptr target, in floatRect r) { fixed (floatRect* r_fixed = &r) { PInvoke.ImRect_Add_internal_1((floatRect*)target, r_fixed); } } /// /// /// C++: /// imgui_internal.h:594 ///
void Expand(const float amount) ///
///
public static unsafe void Expand(Ptr target, float amount) => PInvoke.ImRect_Expand_internal_0((floatRect*)target, amount); /// /// /// C++: /// imgui_internal.h:595 ///
void Expand(const ImVec2& amount) ///
///
public static unsafe void Expand(Ptr target, in float2 amount) { fixed (float2* amount_fixed = &amount) { PInvoke.ImRect_Expand_internal_1((floatRect*)target, amount_fixed); } } /// /// /// C++: /// imgui_internal.h:596 ///
void Translate(const ImVec2& d) ///
///
public static unsafe void Translate(Ptr target, in float2 d) { fixed (float2* d_fixed = &d) { PInvoke.ImRect_Translate_internal((floatRect*)target, d_fixed); } } /// /// /// C++: /// imgui_internal.h:597 ///
void TranslateX(float dx) ///
///
public static unsafe void TranslateX(Ptr target, float dx) => PInvoke.ImRect_TranslateX_internal((floatRect*)target, dx); /// /// /// C++: /// imgui_internal.h:598 ///
void TranslateY(float dy) ///
///
public static unsafe void TranslateY(Ptr target, float dy) => PInvoke.ImRect_TranslateY_internal((floatRect*)target, dy); /// /// /// Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not /// for display. /// /// /// C++: /// imgui_internal.h:599 ///
void ClipWith(const ImRect& r) ///
///
public static unsafe void ClipWith(Ptr target, in floatRect r) { fixed (floatRect* r_fixed = &r) { PInvoke.ImRect_ClipWith_internal((floatRect*)target, r_fixed); } } /// /// /// Full version, ensure both points are fully clipped. /// /// /// C++: /// imgui_internal.h:600 ///
void ClipWithFull(const ImRect& r) ///
///
public static unsafe void ClipWithFull(Ptr target, in floatRect r) { fixed (floatRect* r_fixed = &r) { PInvoke.ImRect_ClipWithFull_internal((floatRect*)target, r_fixed); } } /// /// /// C++: /// imgui_internal.h:601 ///
void Floor() ///
///
public static unsafe void Floor(Ptr target) => PInvoke.ImRect_Floor_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:602 ///
bool IsInverted() const ///
///
public static unsafe bool IsInverted(Ptr target) => PInvoke.ImRect_IsInverted_internal((floatRect*)target); /// /// /// C++: /// imgui_internal.h:603 ///
ImVec4 ToVec4() const ///
///
public static unsafe float4 ToVec4(Ptr target) => PInvoke.ImRect_ToVec4_internal((floatRect*)target); } } }